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

Launchpad Bug Tracker 1659420 at bugs.launchpad.net
Mon Oct 2 17:55:04 UTC 2017


This bug was fixed in the package python-k8sclient - 0.4.0-0ubuntu1

---------------
python-k8sclient (0.4.0-0ubuntu1) artful; urgency=medium

  * d/gbp.conf: Update gbp configuration file.
  * d/control: Update Vcs-* links and maintainers.
  * New upstream release (LP: #1659420).

 -- Corey Bryant <corey.bryant at canonical.com>  Tue, 26 Sep 2017 14:04:35
-0400

** Changed in: python-k8sclient (Ubuntu Artful)
       Status: Triaged => Fix Released

-- 
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:
  Triaged
Status in Ubuntu Cloud Archive pike series:
  Triaged
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