Magnum unstable/fails with devstack (was pod-create fails ('NoneType' object has no attribute 'status'))
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Invalid
|
Undecided
|
Martin Falatic |
Bug Description
This worked in recent weeks but is not working now, possibly due to changes on master within the last week or so.
Using a new devstack install and following the dev quickstart, things work fine until you run pod-create (using k8s 0.15 example):
magnum pod-create --manifest ./redis-master.yaml --bay k8sbay
ERROR: 'NoneType' object has no attribute 'status' (HTTP 500)
---- Note: A similar error occurs with k8s 1.0.1 version of the example, FWIW (tried this later, may cause other side-effects):
---- ERROR: Timed out waiting for a reply to message ID <id> (HTTP 500)
Error details:
m-api:
2015-08-05 11:24:38.999 ERROR wsme.api [req-039a9274-
Traceback (most recent call last):
File "/usr/local/
executor_
File "/usr/local/
executor_
File "/usr/local/
result = func(ctxt, **new_args)
File "/opt/stack/
pod.status = resp.status.phase
AttributeError: 'NoneType' object has no attribute 'status'
". Detail:
Traceback (most recent call last):
File "/usr/local/
result = f(self, *args, **kwargs)
File "<string>", line 2, in post
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
new_pod = pecan.request.
File "/opt/stack/
return self._call(
File "/opt/stack/
return self._client.
File "/usr/local/
return self.prepare(
File "/usr/local/
retry=
File "/usr/local/
timeout=
File "/usr/local/
retry=retry)
File "/usr/local/
raise result
AttributeError: 'NoneType' object has no attribute 'status'
Traceback (most recent call last):
File "/usr/local/
executor_
File "/usr/local/
executor_
File "/usr/local/
result = func(ctxt, **new_args)
File "/opt/stack/
pod.status = resp.status.phase
AttributeError: 'NoneType' object has no attribute 'status'
m-cond:
2015-08-05 11:24:38.961 DEBUG magnum.
te /opt/stack/
2015-08-05 11:24:38.979 ERROR oslo_messaging.
object has no attribute 'status'
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
atch_and_reply
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
atch
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.979 TRACE oslo_messaging.
2015-08-05 11:24:38.980 ERROR oslo_messaging.
2015-08-05 11:24:38.981 ERROR oslo_messaging.
Changed in magnum: | |
assignee: | nobody → Vilobh Meshram (vilobhmm) |
Changed in magnum: | |
assignee: | Vilobh Meshram (vilobhmm) → nobody |
Changed in magnum: | |
assignee: | nobody → Martin Falatic (martinfalatic) |
More info:
In magnum/ conductor/ handlers/ k8s_conductor. py:93 (the pod_create function):
resp = self.k8s_ api.createPod( body=manifest, namespaces= 'default' )
the value of resp == None