Bug 1993944

Summary: anaconda/dirinstall-text.basic gating test fails: Unable to init server: Could not connect: Connection refused
Product: Red Hat Enterprise Linux 8 Reporter: Petr Pisar <ppisar>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: jkonecny, jstodola, wenliang, zveleba
Target Milestone: betaKeywords: Reopened
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-20 12:24:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2021-08-16 12:51:59 UTC
osci.brew-build.revdeps.integration/anaconda/dirinstall-text.basic on RHEL-8.5.0 fails like this:

Starting installer, one moment...
terminal size detection failed, using default width
anaconda 33.16.5.4-1.el8 for anaconda bluesky (pre-release) started.
11:51:45 Not asking for VNC because of an automated install
Starting automated install...Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

================================================================================
================================================================================
Installation

1) [x] Language settings                 2) [x] Time settings
       (English (United States))                (Europe/Prague timezone)
3) [x] Installation source               4) [x] Software selection
       (http://download.eng.rdu2.redhat         (Custom software selected)
       .com/rhel-8/nightly/RHEL-8/lates
       t-RHEL-8.5.0/compose/BaseOS/x86_
       64/os/)
5) [ ] User creation
       (No user will be created)

================================================================================
================================================================================
Progress


Running in cmdline mode, no interactive debugging allowed.
The exact error message is: 

The RHSM DBus API is not available..

The installer will now terminate.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
    raise exception from None
dasbus.error.DBusError: umount of /run/user/0 failed (32)


I experienced it when running a gating test for libmodulemd-2.13.0-1.el8.x86_64.rpm. I am able to reproduce it the the original libmodulemd when running "1minutetip rhel8: from anaconda/tests dist-git directory:

TASK [Run dirinstall] *******************************************************************************************************************************************************************************************************************************************************************
fatal: [sut]: FAILED! => {"changed": true, "cmd": "timeout -k 10s 3600s anaconda --dirinstall /root/installdir --kickstart /root/ks.dirinstall.cfg --text --noninteractive 2>&1", "delta": "0:04:49.663305", "end": "2021-08-16 08:45:59.260373", "msg": "non-zero return code", "rc": 1, "start": "2021-08-16 08:41:09.597068", "stderr": "", "stderr_lines": [], "stdout": "Starting installer, one moment...\nterminal size detection failed, using default width\nanaconda 33.16.5.4-1.el8 for anaconda bluesky (pre-release) started.\n08:41:19 Not asking for VNC because of an automated install\nStarting automated install......Unable to init server: Could not connect: Connection refused\nUnable to init server: Could not connect: Connection refused\nUnable to init server: Could not connect: Connection refused\nUnable to init server: Could not connect: Connection refused\n\n================================================================================\n================================================================================\nInstallation\n\n1) [x] Language settings                 2) [x] Time settings\n       (English (United States))                (Europe/Prague timezone)\n3) [x] Installation source               4) [x] Software selection\n       (http://download.eng.rdu2.redhat         (Custom software selected)\n       .com/rhel-8/nightly/RHEL-8/RHEL-\n       8.5.0-20210812.n.0/compose/BaseO\n       S/x86_64/os/)\n5) [ ] User creation\n       (No user will be created)\n\n================================================================================\n================================================================================\nProgress\n\n\nRunning in cmdline mode, no interactive debugging allowed.\nThe exact error message is: \n\nThe RHSM DBus API is not available..\n\nThe installer will now terminate.\nError in atexit._run_exitfuncs:\nTraceback (most recent call last):\n  File \"/usr/lib/python3.6/site-packages/dasbus/client/handler.py\", line 477, in _get_method_reply\n    return self._handle_method_error(error)\n  File \"/usr/lib/python3.6/site-packages/dasbus/client/handler.py\", line 497, in _handle_method_error\n    raise exception from None\ndasbus.error.DBusError: umount of /run/user/0 failed (32)", "stdout_lines": ["Starting installer, one moment...", "terminal size detection failed, using default width", "anaconda 33.16.5.4-1.el8 for anaconda bluesky (pre-release) started.", "08:41:19 Not asking for VNC because of an automated install", "Starting automated install......Unable to init server: Could not connect: Connection refused", "Unable to init server: Could not connect: Connection refused", "Unable to init server: Could not connect: Connection refused", "Unable to init server: Could not connect: Connection refused", "", "================================================================================", "================================================================================", "Installation", "", "1) [x] Language settings                 2) [x] Time settings", "       (English (United States))                (Europe/Prague timezone)", "3) [x] Installation source               4) [x] Software selection", "       (http://download.eng.rdu2.redhat         (Custom software selected)", "       .com/rhel-8/nightly/RHEL-8/RHEL-", "       8.5.0-20210812.n.0/compose/BaseO", "       S/x86_64/os/)", "5) [ ] User creation", "       (No user will be created)", "", "================================================================================", "================================================================================", "Progress", "", "", "Running in cmdline mode, no interactive debugging allowed.", "The exact error message is: ", "", "The RHSM DBus API is not available..", "", "The installer will now terminate.", "Error in atexit._run_exitfuncs:", "Traceback (most recent call last):", "  File \"/usr/lib/python3.6/site-packages/dasbus/client/handler.py\", line 477, in _get_method_reply", "    return self._handle_method_error(error)", "  File \"/usr/lib/python3.6/site-packages/dasbus/client/handler.py\", line 497, in _handle_method_error", "    raise exception from None", "dasbus.error.DBusError: umount of /run/user/0 failed (32)"]}
...ignoring


Hence I conclude this a bug in the test or a different component. According to OSCI history, it passed on 20021-08-02.

Comment 2 Jan Stodola 2021-08-19 07:46:27 UTC
*** Bug 1995298 has been marked as a duplicate of this bug. ***

Comment 4 Jiri Konecny 2021-09-10 10:05:14 UTC
Hi,

The error message from logs is:

07:21:25,865 CRT exception: Traceback (most recent call last):

  File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 280, in run
    threading.Thread.run(self)

  File "/usr/lib64/python3.6/threading.py", line 867, in run
    self._target(*self._args, **self._kwargs)

  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation.py", line 385, in run_installation
    queue.append(_prepare_configuration(payload, ksdata))

  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation.py", line 88, in _prepare_configuration
    subscription_dbus_tasks = subscription_proxy.InstallWithTasks()

  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 447, in _call_method
    **kwargs,

  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
    return self._handle_method_error(error)

  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
    raise exception from None

dasbus.error.DBusError: The RHSM DBus API is not available.




And this is the same issue we are facing in bug 1872902 so closing this bug as duplicate.

*** This bug has been marked as a duplicate of bug 1872902 ***

Comment 5 Petr Pisar 2021-09-20 12:06:29 UTC
Since it was decided than Anaconda code won't change (bug #1872902), the anaconda/dirinstall-text.basic test need to be addapted.

Comment 7 Jan Stodola 2021-09-20 12:24:39 UTC
Actually, it turned out to be a SELinux issue and will be fixed in bug 2002666.
So I'm closing the bug as a duplicate of that bug.

*** This bug has been marked as a duplicate of bug 2002666 ***