RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1754701 - anaconda won't run without NetworkManager
Summary: anaconda won't run without NetworkManager
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-23 23:18 UTC by John Newbigin
Modified: 2023-12-15 16:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-11 21:52:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Newbigin 2019-09-23 23:18:25 UTC
Description of problem:
In previous versions, we were able to run anaconda (via livecd-creator) without NetworkManager running.
Since anaconda-core-21.48.22.156-1.el7, the run fails:


2019-09-23 02:10:12,864: livemedia-creator 19.7.25-1
2019-09-23 02:10:12,864: selinux is enabled and in Permissive mode
2019-09-23 02:10:12,907: disk_size = 4GiB
2019-09-23 02:10:12,907: disk_img = /var/tmp/tmp.0mcPZCvHvV/diskVFAx72.img
Starting installer, one moment...
Traceback (most recent call last):
anaconda argparse: terminal size detection failed, using default width
  File "/sbin/anaconda", line 1259, in <module>
[Errno 25] Inappropriate ioctl for device
Traceback (most recent call last):
anaconda 21.48.22.156-1 for 7 (pre-release) started.
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
    setupDisplay(anaconda, opts, addon_paths)
  File "/sbin/anaconda", line 649, in setupDisplay
    if not nm_is_connecting() and not nm_is_connected():
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 185, in nm_is_connecting
    return nm_state() == NetworkManager.State.CONNECTING
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 157, in nm_state
    prop = _get_property("/org/freedesktop/NetworkManager", "State")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 137, in _get_property
    prop = proxy.Get('(ss)', interface_name, prop)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
GLib.  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1602, in wait_for_connecting_NM_thread
    connected = wait_for_connected_NM(only_connecting=True)
Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files (2)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1558, in wait_for_connected_NM
    if nm.nm_is_connected():
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 175, in nm_is_connected
    return nm_state() in (NetworkManager.State.CONNECTED_GLOBAL,
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 157, in nm_state
    prop = _get_property("/org/freedesktop/NetworkManager", "State")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 137, in _get_property
    prop = proxy.Get('(ss)', interface_name, prop)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files (2)
losetup: /dev/: detach failed: Inappropriate ioctl for device
2019-09-23 02:10:32,944: Install failed: novirt_install failed
2019-09-23 02:10:32,945: Removing bad disk image
2019-09-23 02:10:32,945: novirt_install failed

Version-Release number of selected component (if applicable):


How reproducible:
Every time


Steps to Reproduce:
1. systemctl stop NetworkManager
2. livemedia-creator --no-virt --make-disk --ks "build.ks" --project "$DESCRIPTION"


Actual results:
Build fails as above.

Expected results:
Warnings are printed but the build completes.

Additional info:
Was working in anaconda 21.48.22.147-1

Comment 2 Denis Volkov 2020-01-03 19:03:37 UTC
I reverted anaconda in RHEL 7.7 to anaconda-core-21.48.22.147-1.el7.x86_64 and the issue is still reproducable. So I guess the issue is not with the anaconda itself, but some other package anaconda process depends on:

    # anaconda --kickstart /root/scripts/dvd-srv.ks --cmdline --repo https://repo/Server/x86_64/os/ --image /root/tmp/result/test.qcow2
    Starting installer, one moment...
    anaconda 21.48.22.147-1 for anaconda bluesky (pre-release) started.
    Traceback (most recent call last):
      File "/usr/sbin/anaconda", line 1259, in <module>
        setupDisplay(anaconda, opts, addon_paths)
      File "/usr/sbin/anaconda", line 649, in setupDisplay
        if not nm_is_connecting() and not nm_is_connected():
      File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 185, in nm_is_connecting
        return nm_state() == NetworkManager.State.CONNECTING
      File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 157, in nm_state
        prop = _get_property("/org/freedesktop/NetworkManager", "State")
      File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 137, in _get_property
        prop = proxy.Get('(ss)', interface_name, prop)
      File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
        None)
    GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files (2)


While the same command run on RHEL 7.5 goes further:

    # anaconda --kickstart /root/scripts/dvd-srv.ks --cmdline --repo https://repo/Server/x86_64/os/ --image /root/tmp/result/test.qcow2
    Starting installer, one moment...
    anaconda 21.48.22.147-1 for anaconda bluesky (pre-release) started.
    Starting automated install..........
    Checking software selection
    Generating updated storage configuration
    ...

Comment 3 Denis Volkov 2020-01-09 14:39:28 UTC
After the rollback to NetworkManager-1.12.0-10.el7_6.x86_64 the problem is gone

Comment 4 Alena 2020-08-17 12:43:08 UTC
Customer is still seeing Image Builder fail when using NetworkManager-1.12.0-10.el7_6.x86_64 and anaconda-core-21.48.22.147-1.el7.x86_64   

> Package Versions
---------------------
$ cat installed-rpms | grep Network
NetworkManager-1.12.0-10.el7_6.x86_64                       Fri Aug  7 20:29:01 2020
NetworkManager-glib-1.12.0-10.el7_6.x86_64                  Fri Aug  7 20:29:01 2020
NetworkManager-libnm-1.12.0-10.el7_6.x86_64                 Fri Aug  7 20:29:01 2020
NetworkManager-team-1.12.0-10.el7_6.x86_64                  Fri Aug  7 20:29:01 2020

]$ cat installed-rpms | grep anaconda
anaconda-core-21.48.22.147-1.el7.x86_64                     Fri Aug 14 23:42:13 2020
anaconda-tui-21.48.22.147-1.el7.x86_64                      Fri Aug 14 23:42:13 2020
libreport-anaconda-2.1.11-43.el7.x86_64                     Thu Aug  6 14:02:09 2020
libreport-rhel-anaconda-bugzilla-2.1.11-43.el7.x86_64       Thu Aug  6 14:02:09 2020
---------------------------

> Error 

anaconda 21.48.22.156-1 for Red Hat Enterprise Linux 7 (pre-release) started.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1602, in wait_for_connecting_NM_thread
    connected = wait_for_connected_NM(only_connecting=True)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 1558, in wait_for_connected_NM
    if nm.nm_is_connected():
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 175, in nm_is_connected
    return nm_state() in (NetworkManager.State.CONNECTED_GLOBAL,
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 157, in nm_state
    prop = _get_property("/org/freedesktop/NetworkManager", "State")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 137, in _get_property
    prop = proxy.Get('(ss)', interface_name, prop)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files (2)
Traceback (most recent call last):

Comment 6 Chris Williams 2020-11-11 21:52:48 UTC
Red Hat Enterprise Linux 7 shipped it's final minor release on September 29th, 2020. 7.9 was the last minor releases scheduled for RHEL 7.
From intial triage it does not appear the remaining Bugzillas meet the inclusion criteria for Maintenance Phase 2 and will now be closed. 

From the RHEL life cycle page:
https://access.redhat.com/support/policy/updates/errata#Maintenance_Support_2_Phase
"During Maintenance Support 2 Phase for Red Hat Enterprise Linux version 7,Red Hat defined Critical and Important impact Security Advisories (RHSAs) and selected (at Red Hat discretion) Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available."

If this BZ was closed in error and meets the above criteria please re-open it flag for 7.9.z, provide suitable business and technical justifications, and follow the process for Accelerated Fixes:
https://source.redhat.com/groups/public/pnt-cxno/pnt_customer_experience_and_operations_wiki/support_delivery_accelerated_fix_release_handbook  

Feature Requests can re-opened and moved to RHEL 8 if the desired functionality is not already present in the product. 

Please reach out to the applicable Product Experience Engineer[0] if you have any questions or concerns.  

[0] https://bugzilla.redhat.com/page.cgi?id=agile_component_mapping.html&product=Red+Hat+Enterprise+Linux+7


Note You need to log in before you can comment on or make changes to this bug.