Bug 2063127

Summary: anconda: 'DeviceWifi' object has no attribute 'get_carrier'
Product: Red Hat Enterprise Linux 9 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.0CC: anaconda-maint-list, biserov, bstinson, dfroehli, jkonecny, jwboyer, miabbott, pvlasin, release-test-team-automation, rvykydal, vponcova
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-34.25.1.14-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2051235
: 2125259 (view as bug list) Environment:
Last Closed: 2022-11-15 09:58:14 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:
Bug Depends On:    
Bug Blocks: 2125259    

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