Bug 1117643 - [Build 20181127] yast ldap server module does not report error about missing package
[Build 20181127] yast ldap server module does not report error about missing ...
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Samba
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: The 'Opening Windows to a Wider World' guys
The 'Opening Windows to a Wider World' guys
Depends on:
  Show dependency treegraph
Reported: 2018-11-28 12:22 UTC by Rodion Iafarov
Modified: 2019-07-02 13:58 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---

YaST logs (9.74 MB, application/x-compressed-tar)
2018-11-28 12:22 UTC, Rodion Iafarov
journalctl (204.39 KB, text/x-vhdl)
2019-04-16 12:31 UTC, Martin Loviska
y2logs from opensuse-Tumbleweed-DVD-x86_64-Build20190414-yast2_ncurses (9.05 MB, application/x-xz)
2019-04-16 12:33 UTC, Martin Loviska

Note You need to log in before you can comment on or make changes to this bug.
Description Rodion Iafarov 2018-11-28 12:22:30 UTC
Created attachment 791151 [details]
YaST logs

## Observation

In our test we do basic LDAP setup using YaST module, press Ok, and then application doesn't close and stays on the same screen. No errors reported.

There is an issue with 389-ds package being missing, (see https://bugzilla.opensuse.org/show_bug.cgi?id=1116552), but previously we got error reported: https://openqa.opensuse.org/tests/798945#step/yast2_samba/19
As of now app is open without notifying user about any issue.

Steps to reproduce:
1. Install TW with X11
2. Start yast ldap-server
3. Complete configuration and press Ok
4. No errors reported, initial screen is shown
5. Expected result: either error is shown why configuration failed, or window is closed after pressing ok.

Please, find logs in the attachment.

openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-yast2_ncurses@64bit fails in

## Reproducible

Fails since (at least) Build [20181118](https://openqa.opensuse.org/tests/800448)

## Expected result

Last good: [20181116](https://openqa.opensuse.org/tests/798945) (or more recent)

## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?flavor=DVD&arch=x86_64&test=yast2_ncurses&version=Tumbleweed&distri=opensuse&machine=64bit)
Comment 1 Stefan Schubert 2018-12-10 12:34:27 UTC
Is there also /root/yast2-auth-server-dir-setup.log available ?
Comment 2 Stefan Schubert 2018-12-11 08:30:46 UTC
(In reply to Stefan Schubert from comment #1)
> Is there also /root/yast2-auth-server-dir-setup.log available ?

Not needed anymore. I see the error :-)
Comment 4 Stefan Schubert 2018-12-11 08:43:48 UTC
The code does not check if the package installation has been successfully finished.:
Comment 5 Lukas Ocilka 2018-12-11 08:49:11 UTC
Well, yast-ldap-server is dead, for 4 years already
And Auth server is Peter's
Comment 9 Martin Loviska 2019-04-16 12:30:20 UTC
(In reply to Lukas Ocilka from comment #5)
> Well, yast-ldap-server is dead, for 4 years already
> And Auth server is Peter's

It looks like the yast2-auth-server, we are just calling the LDAP setup wizard using:
$ yast2 ldap-server

1. $ yast2
2. got to Network Services and Create New Directory Server

Afterward, configure Directory Server with TLS and hit OK.
Yast2 will print a message "Installing new instance, it may take a minute or two" and returns back to the filled form of LDAP settings wizard.
Pressing OK button does not let the user continue further.

From the logs, it looks like Yast is able to set the LDAP hostname, install missing required rpms, but there are many dbus eeror messages in the logs

Apr 16 07:39:42 openqa.ldaptest.org dbus-daemon[2959]: [system] Failed to reset fd limit before activating service: org.freedesktop.DBus.Error.AccessDenied: Failed to restore old fd limit: Operation not permitted
Apr 16 07:39:42 openqa.ldaptest.org dbus-daemon[861]: [system] Successfully activated service 'org.opensuse.Snapper'
Apr 16 07:40:21 openqa.ldaptest.org dbus-daemon[861]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.6' (uid=0 pid=962 comm="/usr/sbin/NetworkManager --no-daemon ")
Apr 16 07:40:21 openqa.ldaptest.org dbus-daemon[861]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found
Comment 10 Martin Loviska 2019-04-16 12:31:43 UTC
Created attachment 803039 [details]
Comment 11 Martin Loviska 2019-04-16 12:33:12 UTC
Created attachment 803040 [details]
y2logs from opensuse-Tumbleweed-DVD-x86_64-Build20190414-yast2_ncurses
Comment 12 Stefan Hundhammer 2019-04-18 09:43:47 UTC
yast2-maintainers@suse.com is the wrong maintainer for this package.

yast2-ldap is now maintained by the Samba team. Reassigning.
Comment 13 Oliver Kurz 2019-07-01 13:24:59 UTC
still failing very reproducibly: https://openqa.opensuse.org/tests/971783

Setting blocker flag (as should be done for all bugs that make tests fail). I guess also no one would mind when we make it CONFIRMED?