Red Hat Bugzilla – Bug 1300499
AttributeError: 'NoneType' object has no attribute 'get_connection_type'
Last modified: 2017-08-08 08:41:17 EDT
I am seeing this sometimes while running my docker-anaconda-addon it isn't happening every time so it's been hard to track down. While docker is running it sets up various networks and then tears them down.
Attached is the anaconda-tb file.
Created attachment 1116759 [details]
Created attachment 1116984 [details]
Attempt to fix
This didn't work though, it just pushed the problem to a different spot:
anaconda 24.9-1 exception report
Traceback (most recent call first):
File "/tmp/updates/pyanaconda/ui/gui/spokes/network.py", line 721, in add_device_to_list
File "/tmp/updates/pyanaconda/ui/gui/spokes/network.py", line 514, in on_device_added
AttributeError: 'NoneType' object has no attribute 'get_read_only'
I think we could and probably should do two things (and I want to look into it):
- Handle special devices set up by virtualization (docker -> docker0, vethXX..., libvirt -> virbr0 ..) more robustly in NetworkSpoke, perhaps filter them out, or make them read-only. We need to stop relying on some assumptions about network devices which are correct only in installer environment (which is something we'll need to do also because of NetworkSpoke in initial setup - virbr0).
- Regarding this specific case, ie the devices being created at post install stage, we could also disconnect NetworkSpoke device/connection state change callbacks after leaving summary hub. We already have disconnect_client_callbacks function (called when leaving network standalone spoke), but I can't find any suitable hook for calling it eg when leaving summary hub. I'd imagine something like Hubs calling spoke.continue(self) for all its spokes when leaving the hub (on continue clicked) and network spoke defining the continue method to call disconnect_client_callbacks.
Short term solution with more robust checking for None values, exceptions etc might be more workable for you now, it just can be rather tricky as you see.
Adds a finished method that kills nmce and disconnects the callbacks when continue is clicked on the summary hub.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.
More information and reason for this action is here:
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see firstname.lastname@example.org with any questions
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.