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 2063127 - anconda: 'DeviceWifi' object has no attribute 'get_carrier'
Summary: anconda: 'DeviceWifi' object has no attribute 'get_carrier'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: anaconda
Version: 9.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Radek Vykydal
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 2125259
TreeView+ depends on / blocked
 
Reported: 2022-03-11 10:44 UTC by Jan Stodola
Modified: 2022-11-15 10:29 UTC (History)
11 users (show)

Fixed In Version: anaconda-34.25.1.14-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2051235
: 2125259 (view as bug list)
Environment:
Last Closed: 2022-11-15 09:58:14 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rhinstaller anaconda pull 4316 0 None open Do not crash on network --device link with wireless device 2022-09-07 08:35:38 UTC
Red Hat Issue Tracker RHELPLAN-115328 0 None None None 2022-03-11 10:47:29 UTC
Red Hat Issue Tracker RTT-4812 0 None None None 2022-09-08 14:42:35 UTC
Red Hat Issue Tracker RTT-4813 0 None None None 2022-09-08 14:42:40 UTC
Red Hat Product Errata RHBA-2022:7977 0 None None None 2022-11-15 09:58:32 UTC

Description Jan Stodola 2022-03-11 10:44:39 UTC
+++ This bug was initially created as a clone of Bug #2051235 +++

Description of problem:
Anaconda crashing on installing using kickstart file to hardware with WiFi adapter & when no cable connected to any LAN interface

Version-Release number of selected component (if applicable):
CentOS Stream 8 x86_64 1643385459.554545

How reproducible:


Steps to Reproduce:
1. create secondary ISO image labeled OEMDRV with ks.cfg & write to CD/Flash
2. boot from original CentOS Stream 8 installation ISO with attached OEMDRV image on hardware with WiFi adapter and without LAN adapters or without connected cable to existing LAN adapters

Actual results:
Anaconda crashed with backtrace displayed on screen:

org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib/python3.6/site-packages/dasbus/server/handler.py", line 421, in _method_callback
org.fedoraproject.Anaconda.Modules.Network:    *unwrap_variant(parameters)
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib/python3.6/site-packages/dasbus/server/handler.py", line 234, in _handle_call
org.fedoraproject.Anaconda.Modules.Network:    return handler(*parameters)
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/task/task_interface.py", line 114, in Finish
org.fedoraproject.Anaconda.Modules.Network:    self.implementation.finish()
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/task/task.py", line 161, in finish
org.fedoraproject.Anaconda.Modules.Network:    threadMgr.raise_if_error(self._thread_name)
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 171, in raise_if_error
org.fedoraproject.Anaconda.Modules.Network:    raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 280, in run
org.fedoraproject.Anaconda.Modules.Network:    threading.Thread.run(self)
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/threading.py", line 885, in run
org.fedoraproject.Anaconda.Modules.Network:    self._target(*self._args, **self._kwargs)
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/task/task.py", line 97, in _task_run_callback
org.fedoraproject.Anaconda.Modules.Network:    self._set_result(self.run())
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/network/utils.py", line 130, in wrapped
org.fedoraproject.Anaconda.Modules.Network:    return function(*args, **kwargs)
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/network/initialization.py", line 101, in run
org.fedoraproject.Anaconda.Modules.Network:    self._bootif)
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/network/nm_client.py", line 165, in get_device_name_from_network_data
org.fedoraproject.Anaconda.Modules.Network:    device_name = get_first_iface_with_link(nm_client, supported_devices) or ""
org.fedoraproject.Anaconda.Modules.Network:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/network/nm_client.py", line 897, in get_first_iface_with_link
org.fedoraproject.Anaconda.Modules.Network:    if device and device.get_carrier():
org.fedoraproject.Anaconda.Modules.Network:AttributeError: 'DeviceWifi' object has no attribute 'get_carrier'

Expected results:
Success installation.

Additional info:

--- Additional comment from Jiri Konecny on 2022-02-11 14:45:05 CET ---

Could you please give us logs from the installation environment. You can find them in /tmp/*log.

--- Additional comment from Emil Biserov on 2022-02-22 14:20:28 CET ---



--- Additional comment from Emil Biserov on 2022-02-22 14:21:23 CET ---

sorry for delay, logs attached...

--- Additional comment from Jiri Konecny on 2022-03-04 11:46:50 CET ---

Hi Radku, could you please take a look on this?

--- Additional comment from Radek Vykydal on 2022-03-09 12:54:47 CET ---

(In reply to Jiri Konecny from comment #4)
> Hi Radku, could you please take a look on this?

Should be fixed with this PR: https://github.com/rhinstaller/anaconda/pull/3937

Comment 2 Radek Vykydal 2022-09-05 11:10:45 UTC
https://github.com/rhinstaller/anaconda/pull/4316

Comment 3 Radek Vykydal 2022-09-05 11:18:06 UTC
(In reply to Radek Vykydal from comment #2)
> https://github.com/rhinstaller/anaconda/pull/4316


Updates image for the latest RHEL9 nightly (anaconda 34.25.1.12-1) with the patch:
http://file.emea.redhat.com/rvykydal/wireless_carrier/updates.wireless_carrier.2063127.img

Comment 4 Radek Vykydal 2022-09-05 11:46:45 UTC
(In reply to Radek Vykydal from comment #2)
> https://github.com/rhinstaller/anaconda/pull/4316

The patch is isolated and safe.

Comment 10 Jan Stodola 2022-09-09 15:05:34 UTC
Retested with anaconda-34.25.1.14-1.el9 and the problem is not reproducible any more. Also tested that it's possible to manually configure a wi-fi device and use it in the installer.

Marking as Verified:Tested.

Comment 13 Jan Stodola 2022-09-14 12:41:17 UTC
Checked that anaconda-34.25.1.14-1.el9 is in nightly compose RHEL-9.1.0-20220914.0

Moving to VERIFIED

Comment 15 errata-xmlrpc 2022-11-15 09:58:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7977


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