[Bug 1659420] Re: Traceback when getting capacity in k8s_monitor

Corey Bryant corey.bryant at canonical.com
Thu Dec 14 13:25:50 UTC 2017


Hi Jason or Billy, If the reported bug is fixed in pike-proposed, would
one of you be able to tag this bug as verification-pike-done? Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1659420

Title:
  Traceback when getting capacity in k8s_monitor

Status in Ubuntu Cloud Archive:
  Fix Committed
Status in Ubuntu Cloud Archive pike series:
  Fix Committed
Status in Magnum:
  Confirmed
Status in python-k8sclient package in Ubuntu:
  Fix Released
Status in python-k8sclient source package in Artful:
  Fix Released

Bug description:
  I'm seeing the following traceback in the magnum-conductor output:

  
  2017-01-25 22:03:33.838 WARNING magnum.service.periodic [req-1950580a-0c7d-45bf-8dd6-74a488a55cac None None] Skip pulling data from cluster 487c7ad3-30b8-4571-bd09-6dd33b864107 due to error: 'object' object has no attribute '__getitem__'
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic Traceback (most recent call last):
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic   File "/opt/stack/magnum/magnum/service/periodic.py", line 157, in _send_cluster_metrics
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic     monitor.pull_data()
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic   File "/opt/stack/magnum/magnum/drivers/common/k8s_monitor.py", line 44, in pull_data
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic     self.data['nodes'] = self._parse_node_info(nodes)
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic   File "/opt/stack/magnum/magnum/drivers/common/k8s_monitor.py", line 162, in _parse_node_info
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic     memory = utils.get_k8s_quantity(capacity['memory'])
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic TypeError: 'object' object has no attribute '__getitem__'
  2017-01-25 22:03:33.838 573 ERROR magnum.service.periodic 

  
  Maybe it's related to the fix for https://bugs.launchpad.net/magnum/+bug/1595373

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1659420/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list