Bug 46109 - NT_STATUS_INVALID_PARAMETER in log.samba (kcc_topology)
NT_STATUS_INVALID_PARAMETER in log.samba (kcc_topology)
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Arvid Requate
Felix Botner
https://sambaxp.org/archive_data/Samb...
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-22 17:38 CET by Felix Botner
Modified: 2018-03-14 14:37 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
remove_kcctpl_test.patch (2.13 KB, patch)
2018-02-13 14:18 CET, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2018-01-22 17:38:25 CET
[2018/01/22 17:20:29.227194,  0, pid=16556] ../source4/dsdb/dns/dns_update.c:290(dnsupdate_nameupdate_done)
  ../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 24
[2018/01/22 17:20:37.581021,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:2730(kcctpl_get_spanning_tree_edges)
  ../source4/dsdb/kcc/kcc_topology.c:2730: failed to run Kruskal's algorithm: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:20:37.581754,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3283(kcctpl_create_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3283: failed get spanning tree edges: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:20:37.581784,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3504(kcctpl_create_intersite_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3504: failed to create connections: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:20:37.585586,  1, pid=16555] ../source4/dsdb/kcc/garbage_collect_tombstones.c:68(garbage_collect_tombstones_part)
  Doing a full scan on DC=ForestDnsZones,DC=four,DC=three and looking for deleted objects
[2018/01/22 17:20:37.587377,  1, pid=16555] ../source4/dsdb/kcc/garbage_collect_tombstones.c:68(garbage_collect_tombstones_part)
  Doing a full scan on DC=DomainDnsZones,DC=four,DC=three and looking for deleted objects
[2018/01/22 17:20:37.589729,  1, pid=16555] ../source4/dsdb/kcc/garbage_collect_tombstones.c:68(garbage_collect_tombstones_part)
  Doing a full scan on CN=Configuration,DC=four,DC=three and looking for deleted objects
[2018/01/22 17:20:37.627636,  1, pid=16555] ../source4/dsdb/kcc/garbage_collect_tombstones.c:68(garbage_collect_tombstones_part)
  Doing a full scan on DC=four,DC=three and looking for deleted objects
[2018/01/22 17:25:37.731851,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:2730(kcctpl_get_spanning_tree_edges)
  ../source4/dsdb/kcc/kcc_topology.c:2730: failed to run Kruskal's algorithm: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:25:37.731940,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3283(kcctpl_create_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3283: failed get spanning tree edges: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:25:37.731965,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3504(kcctpl_create_intersite_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3504: failed to create connections: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:30:37.837295,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:2730(kcctpl_get_spanning_tree_edges)
  ../source4/dsdb/kcc/kcc_topology.c:2730: failed to run Kruskal's algorithm: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:30:37.837386,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3283(kcctpl_create_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3283: failed get spanning tree edges: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:30:37.837414,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3504(kcctpl_create_intersite_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3504: failed to create connections: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:35:37.939876,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:2730(kcctpl_get_spanning_tree_edges)
  ../source4/dsdb/kcc/kcc_topology.c:2730: failed to run Kruskal's algorithm: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:35:37.939944,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3283(kcctpl_create_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3283: failed get spanning tree edges: NT_STATUS_INVALID_PARAMETER
[2018/01/22 17:35:37.939969,  1, pid=16555] ../source4/dsdb/kcc/kcc_topology.c:3504(kcctpl_create_intersite_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3504: failed to create connections: NT_STATUS_INVALID_PARAMETER
Comment 1 Arvid Requate univentionstaff 2018-02-12 21:22:10 CET
I think it's a harmless message, because:

1. "samba_kcc --verify --debug" says that things are ok.

2. The originating source code in kcc_topology.c has been removed completely in upstream Samba master ( https://git.samba.org/?p=samba.git;a=commit;h=3e1870c26c7cd339c66ace96cb0a7ddc2d1777f0 ) because: "Remove unused, untested KCC code". Actually the whole code is called from kcc_connection.c by calling a method named "kcctpl_test" and the logs show the characteristic message:
"Testing kcctpl_create_intersite_connection":

===================================================================
[2016/11/03 20:00:47.520576,  4, pid=10324] ../source4/dsdb/kcc/kcc_periodic.c:651(kccsrv_periodic_run)
  kccsrv_periodic_run(): update
[...]
[2016/11/03 20:00:47.530861,  5, pid=10324] ../source4/dsdb/kcc/kcc_topology.c:3546(kcctpl_test)
  Testing kcctpl_create_intersite_connection

[...]
[2016/11/03 20:00:47.554837,  1, pid=10324] ../source4/dsdb/kcc/kcc_topology.c:2730(kcctpl_get_spanning_tree_edges)
  ../source4/dsdb/kcc/kcc_topology.c:2730: failed to run Kruskal's algorithm: NT_STATUS_INVALID_PARAMETER
[2016/11/03 20:00:47.554916,  1, pid=10324] ../source4/dsdb/kcc/kcc_topology.c:3283(kcctpl_create_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3283: failed get spanning tree edges: NT_STATUS_INVALID_PARAMETER
[2016/11/03 20:00:47.554949,  1, pid=10324] ../source4/dsdb/kcc/kcc_topology.c:3504(kcctpl_create_intersite_connections)
  ../source4/dsdb/kcc/kcc_topology.c:3504: failed to create connections: NT_STATUS_INVALID_PARAMETER
[2016/11/03 20:00:47.555002,  4, pid=10324] ../source4/dsdb/kcc/kcc_topology.c:3549(kcctpl_test)
  NT_STATUS_INVALID_PARAMETER
[2016/11/03 20:00:47.556457,  4, pid=10324] ../source4/dsdb/kcc/kcc_connection.c:249(kccsrv_find_connections)
  found 1 existing nTDSConnection objects
[2016/11/03 20:00:47.556610,  2, pid=10320] ../source4/dsdb/repl/replicated_objects.c:1020(dsdb_replicated_objects_commit)
  Replicated 0 objects (0 linked attributes) for DC=ForestDnsZones,DC=ar41i1,DC=qa
[2016/11/03 20:00:47.556827,  4, pid=10324] ../source4/dsdb/kcc/kcc_connection.c:163(kccsrv_apply_connections)
  0 connections have been deleted
[2016/11/03 20:00:47.556866,  4, pid=10324] ../source4/dsdb/kcc/kcc_connection.c:180(kccsrv_apply_connections)
  0 connections have been added
===================================================================

Given this situation, I suggest to move forward and consider picking up the upstream patch at some later point in case someone is actually bothered by the message.
Comment 2 Arvid Requate univentionstaff 2018-02-13 14:18:02 CET
Created attachment 9385 [details]
remove_kcctpl_test.patch

This would be the simple patch, which applies cleanly to Samba 4.7.5.
Comment 3 Arvid Requate univentionstaff 2018-02-13 15:18:42 CET
Ok, I've rebuilt samba with that patch 70_remove_kcctpl_test.quilt.

Version: 2:4.7.5-1A~4.3.0.201802131427
Branch: ucs_4.3-0

The error messages are gone after the update.
Comment 4 Felix Botner univentionstaff 2018-02-14 14:59:19 CET
OK
Comment 5 Stefan Gohmann univentionstaff 2018-03-14 14:37:52 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".