Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Pod conditions fail to load #4635

Open
shalomnaim1 opened this issue May 7, 2017 · 1 comment
Open

Pod conditions fail to load #4635

shalomnaim1 opened this issue May 7, 2017 · 1 comment

Comments

@shalomnaim1
Copy link
Contributor

Hi,

I tried to create pod object and get his Conditions info but it an empty list.

Example:
Create pod object and navigate to summery page

>>> p=Pod("heapster-qo5tg", provider)
>>> pod_summery = p.summary

Verify that the pod object contain some data

>>> pod_summery.properties
Out[94]: <SummaryTable 'Properties' name='heapster-qo5tg' phase='Running' creation_timestamp='Tue, 28 Mar 2017 13:26:01 +0000' resource_version='1265203' restart_policy='Always' dns_policy='ClusterFirst' ip_address='10.129.0.7'>
>>> pod_summery.properties.items()
Out[96]: 
{'creation_timestamp': 'Tue, 28 Mar 2017 13:26:01 +0000',
 'dns_policy': 'ClusterFirst',
 'ip_address': '10.129.0.7',
 'name': 'heapster-qo5tg',
 'phase': 'Running',
 'resource_version': '1265203',
 'restart_policy': 'Always'}

When i tried to get conditions info i get empty dict despite this filed contain data on the CFME (as you can see on the attached pic).
pod_cond

>>> pod_summery.conditions
Out[97]: <SummaryTable 'Conditions' >
>>> pod_summery.conditions.items()
Out[98]: {}

I also tried to reload the data on the object using the reload function but it didn't worked

@epacific1
Copy link

@shalomnaim1 the pod you are showing here does not contain condition. Hence when you query, you will not get the condition in the response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants