Bug 1877231 - Error refreshing hardware page: attrib must be dict, not NoneType
Summary: Error refreshing hardware page: attrib must be dict, not NoneType
Keywords:
Status: CLOSED DUPLICATE of bug 1869046
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-09 07:02 UTC by Artem
Modified: 2020-09-09 14:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-09 14:23:09 UTC
Type: Bug


Attachments (Terms of Use)

Description Artem 2020-09-09 07:02:02 UTC
Description of problem:
After recent updates in f33 i've got this error when trying to edit CPU section:

  Error refreshing hardware page: attrib must be dict, not NoneType


Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details/details.py", line 1025, in hw_selected
    self.refresh_config_cpu()
  File "/usr/share/virt-manager/virtManager/details/details.py", line 2223, in refresh_config_cpu
    if not self._cpu_secure_is_available():
  File "/usr/share/virt-manager/virtManager/details/details.py", line 2167, in _cpu_secure_is_available
    features = domcaps.get_cpu_security_features()
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 308, in get_cpu_security_features
    cpu = self._get_expanded_cpu(m)
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 273, in _get_expanded_cpu
    cpuXML = self._convert_mode_to_cpu(mode.get_xml())
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 267, in _convert_mode_to_cpu
    root.attrib = None
TypeError: attrib must be dict, not NoneType



Version-Release number of selected component (if applicable):
virt-manager-2.2.1-3.fc32 (f32 package!)


How reproducible:
Open virt-manager and try edit CPU section new or old one existed VM.


Actual results:
  Error refreshing hardware page: attrib must be dict, not NoneType

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details/details.py", line 1025, in hw_selected
    self.refresh_config_cpu()
  File "/usr/share/virt-manager/virtManager/details/details.py", line 2223, in refresh_config_cpu
    if not self._cpu_secure_is_available():
  File "/usr/share/virt-manager/virtManager/details/details.py", line 2167, in _cpu_secure_is_available
    features = domcaps.get_cpu_security_features()
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 308, in get_cpu_security_features
    cpu = self._get_expanded_cpu(m)
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 273, in _get_expanded_cpu
    cpuXML = self._convert_mode_to_cpu(mode.get_xml())
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 267, in _convert_mode_to_cpu
    root.attrib = None
TypeError: attrib must be dict, not NoneType


Expected results:
No such error. And ability to apply changes as before

Comment 1 Cole Robinson 2020-09-09 14:23:09 UTC

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


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