Hello,
Coming back to this issue - using stable/pike now, kubernetes package is installed using pip, but the same happens:
2017-11-24 14:04:44.412 55 WARNING magnum.service.periodic [req-01c48818-f332-45e7-b3e4-61e8687961cb - - - - -] Skip pulling data from cluster a1a51dd7-c16a-4bfa-a096-b5aba9bc67c0 due to error: 'object' object has no attribute '__getitem__': TypeError: 'object' object has no attribute '__getitem__'
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic Traceback (most recent call last):
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic File "/usr/lib/python2.7/dist-packages/magnum/service/periodic.py", line 156, in _send_cluster_metrics
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic monitor.pull_data()
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic File "/usr/lib/python2.7/dist-packages/magnum/drivers/common/k8s_monitor.py", line 44, in pull_data
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic self.data['nodes'] = self._parse_node_info(nodes)
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic File "/usr/lib/python2.7/dist-packages/magnum/drivers/common/k8s_monitor.py", line 162, in _parse_node_info
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic memory = utils.get_k8s_quantity(capacity['memory'])
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic TypeError: 'object' object has no attribute '__getitem__'
2017-11-24 14:04:44.412 55 ERROR magnum.service.periodic
(magnum-conductor)[magnum@ucsubu3000 magnum]$ pip freeze | grep kubernetes
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
kubernetes==4.0.0
Hello,
Coming back to this issue - using stable/pike now, kubernetes package is installed using pip, but the same happens:
2017-11-24 14:04:44.412 55 WARNING magnum. service. periodic [req-01c48818- f332-45e7- b3e4-61e8687961 cb - - - - -] Skip pulling data from cluster a1a51dd7- c16a-4bfa- a096-b5aba9bc67 c0 due to error: 'object' object has no attribute '__getitem__': TypeError: 'object' object has no attribute '__getitem__' service. periodic Traceback (most recent call last): service. periodic File "/usr/lib/ python2. 7/dist- packages/ magnum/ service/ periodic. py", line 156, in _send_cluster_ metrics service. periodic monitor.pull_data() service. periodic File "/usr/lib/ python2. 7/dist- packages/ magnum/ drivers/ common/ k8s_monitor. py", line 44, in pull_data service. periodic self.data['nodes'] = self._parse_ node_info( nodes) service. periodic File "/usr/lib/ python2. 7/dist- packages/ magnum/ drivers/ common/ k8s_monitor. py", line 162, in _parse_node_info service. periodic memory = utils.get_ k8s_quantity( capacity[ 'memory' ]) service. periodic TypeError: 'object' object has no attribute '__getitem__' service. periodic
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
2017-11-24 14:04:44.412 55 ERROR magnum.
(magnum- conductor) [magnum@ ucsubu3000 magnum]$ pip freeze | grep kubernetes
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
kubernetes==4.0.0