Bug 15524 - samba-tool drs replicate fails for vampire_dc
Summary: samba-tool drs replicate fails for vampire_dc
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-27 09:49 UTC by Andreas Schneider
Modified: 2023-11-28 14:48 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2023-11-27 09:49:34 UTC
make -j20 testenv SELFTEST_TESTENV="vampire_dc"

doesn't work when executed locally on openSUSE Tumbleweed or Fedora 39.

./bin/samba-tool drs replicate localdc localvampiredc --configfile=/home/asn/workspace/projects/samba/asn-fix/st/ad_dc_ntvfs/etc/smb.conf -UAdministrator CN=Configuration,DC=SAMBA,DC=EXAMPLE,DC=COM


2023-11-27T09:37:34.261776+00:00 magrathea [17277]:      drsuapi_DsReplicaSync: struct drsuapi_DsReplicaSync
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:         in: struct drsuapi_DsReplicaSync
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:             bind_handle              : *
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                 bind_handle: struct policy_handle
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                     handle_type              : 0x00000000 (0)
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                     uuid                     : 32119838-1264-40d0-8770-f4b3e14820ab
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:             level                    : 0x00000001 (1)
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:             req                      : *
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                 req                      : union drsuapi_DsReplicaSyncRequest(case 1)
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                 req1: struct drsuapi_DsReplicaSyncRequest1
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                     naming_context           : *
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                         naming_context: struct drsuapi_DsReplicaObjectIdentifier
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                             __ndr_size               : 0x00000090 (144)
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                             __ndr_size_sid           : 0x00000000 (0)
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                             guid                     : 00000000-0000-0000-0000-000000000000
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                             sid                      : S-0-0
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                             __ndr_size_dn            : 0x0000002b (43)
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                             dn                       : 'CN=Configuration,DC=SAMBA,DC=EXAMPLE,DC=COM'
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                     source_dsa_guid          : 17c12768-b5d4-4a4c-89e1-21ab9691a43f
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                     source_dsa_dns           : NULL
2023-11-27T09:37:34.261776+00:00 magrathea [17277]:                     options                  : 0x00000010 (16)




In the logs of the AD server we see:

mitkdc: dreplsrv_op_pull_source(WERR_SEM_TIMEOUT) for DC=DomainDnsZones,DC=samba,DC=example,DC=com
2023-11-27T09:38:30.448799+00:00 localdc.samba.example.com samba[17142]: dreplsrv_notify_op_callback: dreplsrv_notify: Failed to send DsReplicaSync to 17c12768-b5d4-4a4c-89e1-21ab9$
91a43f._msdcs.samba.example.com for DC=DomainDnsZones,DC=samba,DC=example,DC=com - NT_STATUS_IO_TIMEOUT : WERR_SEM_TIMEOUT
Comment 1 Andreas Schneider 2023-11-28 14:48:56 UTC
You can also reproduce it with the Ubuntu CI runners.