AttributeError during client.list_cpus()

Bug #1602173 reported by Imre Farkas on 2016-07-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-dracclient
High
Imre Farkas

Bug Description

AttributeError when HyperThreadingEnabled is missing from DCIM_CPUView enumeration response during client.list_cpus()

  File "dracclient/client.py", line 440, in list_cpus
    return self._inventory_mgmt.list_cpus()
  File "dracclient/resources/inventory.py", line 92, in list_cpus
    return [self._parse_cpus(cpu) for cpu in cpus]
  File "dracclient/resources/inventory.py", line 105, in _parse_cpus
    ht_enabled=bool(self._get_cpu_attr(cpu, 'HyperThreadingEnabled')),
  File "dracclient/resources/inventory.py", line 113, in _get_cpu_attr
    cpu, uris.DCIM_CPUView, attr_name)
  File "dracclient/utils.py", line 61, in get_wsman_resource_attr
    return item.text.strip()
AttributeError: 'NoneType' object has no attribute 'text'

Imre Farkas (ifarkas) on 2016-07-12
Changed in python-dracclient:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Imre Farkas (ifarkas)

Fix proposed to branch: master
Review: https://review.openstack.org/340830

Changed in python-dracclient:
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/340830
Committed: https://git.openstack.org/cgit/openstack/python-dracclient/commit/?id=f96744daf3f29ecd34918cd7626d4fb0969eeb34
Submitter: Jenkins
Branch: master

commit f96744daf3f29ecd34918cd7626d4fb0969eeb34
Author: Imre Farkas <email address hidden>
Date: Tue Jul 12 11:51:40 2016 +0200

    Allow missing flags on inventory.CPU

    Change-Id: Idd485fd11ab9d784bc8c24a9b8279bcce76f0f68
    Closes-Bug: #1602173

Changed in python-dracclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers