Bugzilla – Bug 1197896
[Build 20220328] openQA test fails in yast2_samba
Last modified: 2022-08-02 14:50:18 UTC
## Observation Lots of errors are found in Yast logs, please check: /var/log/YaST2/y2log:2022-03-31 12:42:47 <3> openqa.ldaptest.org(4298) [agent-ldap] LdapAgent.cc(Execute):1283 Missing hostname of LDAPHost, aborting /var/log/YaST2/y2log:2022-03-31 12:42:47 <3> openqa.ldaptest.org(4298) [agent-ldap] LdapAgent.cc(Read):576 Ldap not initialized: use Execute(.ldap) first! /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option _cwm_attrib in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option _cwm_do_validate in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option custom_widget in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option fallback in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option handle in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option help in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option init in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option widget in description map of globalsettings /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option _cwm_attrib in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option _cwm_do_validate in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option add_unlisted in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option custom_widget in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option fallback in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option handle in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option help in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option init in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option store in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option validate_function in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option validate_type in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option widget in description map of passdb_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option _cwm_attrib in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option _cwm_do_validate in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option custom_widget in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option fallback in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option handle in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option help in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option init in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:43:37 <3> openqa.ldaptest.org(4298) [Ruby] modules/TablePopup.rb(ValidateValueType):132 Wrong type of option widget in description map of share_edit /var/log/YaST2/y2log:2022-03-31 12:44:03 <3> openqa.ldaptest.org(4298) [Perl] modules/SambaTrustDom.pm(SambaTrustDom::Establish):115 Cannot establish trusted domain relationship for 'suse.de' /var/log/YaST2/y2log:2022-03-31 12:44:03 <3> openqa.ldaptest.org(4298) [Ruby] samba-server/dialogs.rb(AddTrustedDomain):726 Cannot establish trusted domain relationship. /var/log/YaST2/y2log:2022-03-31 12:44:29 <3> openqa.ldaptest.org(4298) [Perl] modules/LdapServerAccess.pm(LdapServerAccess::InstallLdapServer):60 Package yast2-ldap-server is not available /var/log/YaST2/y2log:2022-03-31 12:44:29 <3> openqa.ldaptest.org(4298) [Perl] modules/LdapServerAccess.pm(LdapServerAccess::AddLdapSchemas):88 Cannot install yast2-ldap-server, not checking LDAP schemas /var/log/YaST2/y2log:2022-03-31 12:44:29 <3> openqa.ldaptest.org(4298) [Perl] modules/SambaBackendLDAP.pm(SambaBackendLDAP::installSchema):194 Add LDAP Samba3 schema failed /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".NAME [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".INTERFACETYPE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".MTU [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".BOOTPROTO [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".STARTMODE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".IFPLUGD_PRIORITY [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".LLADDR [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".ETHTOOL_OPTIONS [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".ZONE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_KEY_LENGTH [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_DEFAULT_KEY [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_ESSID [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_AUTH_MODE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_MODE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_WPA_PASSWORD [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_WPA_ANONID [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_WPA_DRIVER [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_WPA_PSK [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_WPA_IDENTITY [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_CA_CERT [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_CLIENT_CERT [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_CLIENT_KEY [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_CLIENT_KEY_PASSWORD [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_EAP_MODE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_EAP_AUTH [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_AP_SCANMODE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_AP [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_CHANNEL [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_NWID [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".WIRELESS_RATE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".IPOIB_MODE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".ETHERDEVICE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".VLAN_ID [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".BONDING_MASTER [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".BONDING_MODULE_OPTS [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".BRIDGE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".BRIDGE_PORTS [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".BRIDGE_STP [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".BRIDGE_FORWARDDELAY [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".TUNNEL [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".TUNNEL_SET_OWNER [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".TUNNEL_SET_GROUP [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".DHCLIENT_SET_HOSTNAME [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".NAME [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".INTERFACETYPE [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:51:15 <3> install(3862) [agent-ini] IniFile.cc(delValue):993 Delete: Invalid path .value."ens4".MTU [1] /var/log/YaST2/y2log-6.gz:2022-03-29 01:54:02 <3> install(3862) [Ruby] bootloader/bootloader_factory.rb(bootloader_by_name):84 Factory receive nil name openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-samba_ncurses@64bit fails in [yast2_samba](https://openqa.opensuse.org/tests/2275021/modules/yast2_samba/steps/141) ## Test suite description Samba test has to be excluded from ncurses suite until resolution of bsc#1146736. This test suite is to be executed in development groups. ## Reproducible Fails since (at least) Build [20200519](https://openqa.opensuse.org/tests/1275011) ## Expected result Last good: (unknown) (or more recent) ## Further details Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=samba_ncurses&version=Tumbleweed)
afaics the error really is at https://openqa.opensuse.org/tests/2275021#step/yast2_samba/78 where looking in the yast2 log it appears trying to start smbd (which fails to start) and in turn yast2-samba-server fails (giving the 'didn't finish err') [ 376.054804] smbd[4648]: smbd version 4.15.5-git.328.f1f29505d84SUSE-oS15.9-x86_64 started. [ 376.056333] smbd[4648]: Copyright Andrew Tridgell and the Samba Team 1992-2021 [ 376.088424] ns-slapd[4048]: [31/Mar/2022:12:44:32.818777214 -0400] - ERR - oc_check_allowed_sv - Entry "sambaDomainName=QA-SAMBA,dc=ldaptest,dc=org" -- attribute "sambaminpwdlength" not allowed [ 376.103658] smbd[4648]: [2022/03/31 12:44:32.832368, 0] ../../source3/passdb/pdb_ldap_util.c:320(smbldap_search_domain_info) [ 376.105120] smbd[4648]: smbldap_search_domain_info: Adding domain account policies for QA-SAMBA failed with NT_STATUS_UNSUCCESSFUL [ 376.115876] smbd[4648]: [2022/03/31 12:44:32.832465, 0] ../../source3/passdb/pdb_ldap.c:6779(pdb_ldapsam_init_common) [ 376.124389] systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE [ 376.125550] smbd[4648]: pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain. We cannot work reliably without it. [ 376.128861] systemd[1]: smb.service: Failed with result 'exit-code'. [ 376.129785] smbd[4648]: [2022/03/31 12:44:32.832501, 0] ../../source3/passdb/pdb_interface.c:181(make_pdb_method_name) [ 376.131479] systemd[1]: Failed to start Samba SMB Daemon. [ 376.132922] smbd[4648]: pdb backend ldapsam:ldap://localhost:389 did not correctly init (error was NT_STATUS_CANT_ACCESS_DOMAIN_INFO) [ 376.225062] dbus-daemon[615]: [system] Activating via systemd: service name='org.opensuse.Snapper' unit='snapperd.service' requested by ':1.92' (uid=0 pid=4653 comm="/usr/bin/snapper create --type=post --cleanup-algo") ns-slapd[4048]: [31/Mar/2022:12:44:32.818777214 -0400] - ERR - oc_check_allowed_sv - Entry "sambaDomainName=QA-SAMBA,dc=ldaptest,dc=org" -- attribute "sambaminpwdlength" not allowed is probably the real cause (but I confess I don't know where that comes from)
The problem is the samba schema bundled with 389-ds does not have this attribute definition: Openldap schema in samba-doc: > # grep -i sambaminpwdlength /usr/share/doc/packages/samba/examples/LDAP/samba.ldif > olcAttributeTypes: {35}( 1.3.6.1.4.1.7165.2.1.58 NAME 'sambaMinPwdLength' DESC > ase $ sambaMinPwdLength $ sambaPwdHistoryLength $ sambaLogonToChgPwd $ sambaM > # 389-ds bundled samba schemas: > # grep -i sambaminpwdlength /usr/share/dirsrv/schema/60samba3.ldif > # > # grep -i sambaminpwdlength /usr/share/dirsrv/data/60samba.ldif > # @William, pull request to https://github.com/389ds/389-ds-base right?
(In reply to Samuel Cabrero from comment #2) > The problem is the samba schema bundled with 389-ds does not have this > attribute definition: > > Openldap schema in samba-doc: > > # grep -i sambaminpwdlength /usr/share/doc/packages/samba/examples/LDAP/samba.ldif > > olcAttributeTypes: {35}( 1.3.6.1.4.1.7165.2.1.58 NAME 'sambaMinPwdLength' DESC > > ase $ sambaMinPwdLength $ sambaPwdHistoryLength $ sambaLogonToChgPwd $ sambaM > > # > > 389-ds bundled samba schemas: > > > # grep -i sambaminpwdlength /usr/share/dirsrv/schema/60samba3.ldif > > # > > # grep -i sambaminpwdlength /usr/share/dirsrv/data/60samba.ldif > > # > @William, pull request to https://github.com/389ds/389-ds-base right? The team is a bit picky about the format of commit messages and how the pr's are done, so I've done this on your behalf. https://github.com/389ds/389-ds-base/pull/5248
Merged upstream, will do the submit req shortly.
The samba schema shipped with 389-ds has been updated, closing bug.