Bay status returns None initially after create

Bug #1507598 reported by Robert Pothier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Medium
Hua Wang

Bug Description

When creating a bay using hat resources, OS::Magnum::Bay, the first bay status returns None,
then the following bay status returns the correct CREATE_IN_PROGRESS.

The following is some debug added to the magnum client to show the issue.

2015-10-16 10:10:30.850 ^[[00;36mINFO magnumclient.v1.bays [^[[00;36m-^[[00;36m] ^[[01;35m^[[00;36m@RP python-magnumclient/magnumclient/v1/bays.py:create()^[[00m
2015-10-16 10:10:33.324 ^[[00;36mINFO magnumclient.v1.bays [^[[00;36m-^[[00;36m] ^[[01;35m^[[00;36m@RP python-magnumclient/magnumclient/v1/bays.py:get() - <Bay {u'status': None, u'uuid': u'0cbcdcc4-ac4f-4e58-a187-791d91773381', u'links': [{u'href': u'http://172.29.172.142:9511/v1/bays/0cbcdcc4-ac4f-4e58-a187-791d91773381', u'rel': u'self'}, {u'href': u'http://172.29.172.142:9511/bays/0cbcdcc4-ac4f-4e58-a187-791d91773381', u'rel': u'bookmark'}], u'status_reason': None, u'created_at': u'2015-10-16T14:10:32+00:00', u'updated_at': None, u'bay_create_timeout': 0, u'api_address': None, u'baymodel_id': u'6ee95ff4-b44a-4cb8-87ad-4c97ca405f82', u'node_count': 1, u'node_addresses': [], u'master_count': 1, u'discovery_url': u'https://discovery.etcd.io/29504b0cdcbecd34117e40a2f37bd0de', u'name': u'TestBay'}>^[[00m
2015-10-16 10:10:34.371 ^[[00;36mINFO magnumclient.v1.bays [^[[00;36m-^[[00;36m] ^[[01;35m^[[00;36m@RP python-magnumclient/magnumclient/v1/bays.py:get() - <Bay {u'status': u'CREATE_IN_PROGRESS', u'uuid': u'0cbcdcc4-ac4f-4e58-a187-791d91773381', u'links': [{u'href': u'http://172.29.172.142:9511/v1/bays/0cbcdcc4-ac4f-4e58-a187-791d91773381', u'rel': u'self'}, {u'href': u'http://172.29.172.142:9511/bays/0cbcdcc4-ac4f-4e58-a187-791d91773381', u'rel': u'bookmark'}], u'status_reason': u'Stack CREATE started', u'created_at': u'2015-10-16T14:10:32+00:00', u'updated_at': u'2015-10-16T14:10:33+00:00', u'bay_create_timeout': 0, u'api_address': None, u'baymodel_id': u'6ee95ff4-b44a-4cb8-87ad-4c97ca405f82', u'node_count': 1, u'node_addresses': [], u'master_count': 1, u'discovery_url': u'https://discovery.etcd.io/29504b0cdcbecd34117e40a2f37bd0de', u'name': u'TestBay'}>^[[00m
2015-10-16 10:10:35.405 ^[[00;36mINFO magnumclient.v1.bays [^[[00;36m-^[[00;36m] ^[[01;35m^[[00;36m@RP python-magnumclient/magnumclient/v1/bays.py:get() - <Bay {u'status': u'CREATE_IN_PROGRESS', u'uuid': u'0cbcdcc4-ac4f-4e58-a187-791d91773381', u'links': [{u'href': u'http://172.29.172.142:9511/v1/bays/0cbcdcc4-ac4f-4e58-a187-791d91773381', u'rel': u'self'}, {u'href': u'http://172.29.172.142:9511/bays/0cbcdcc4-ac4f-4e58-a187-791d91773381', u'rel': u'bookmark'}], u'status_reason': u'Stack CREATE started', u'created_at': u'2015-10-16T14:10:32+00:00', u'updated_at': u'2015-10-16T14:10:33+00:00', u'bay_create_timeout': 0, u'api_address': None, u'baymodel_id': u'6ee95ff4-b44a-4cb8-87ad-4c97ca405f82', u'node_count': 1, u'node_addresses': [], u'master_count': 1, u'discovery_url': u'https://discovery.etcd.io/29504b0cdcbecd34117e40a2f37bd0de', u'name': u'TestBay'}>^[[00m

Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
Hua Wang (humble00)
Changed in magnum:
assignee: nobody → Hua Wang (humble00)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/289682

Changed in magnum:
status: New → In Progress
Adrian Otto (aotto)
Changed in magnum:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/289682
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=5de12d9ea836c58494601db62919168a29ef9f43
Submitter: Jenkins
Branch: master

commit 5de12d9ea836c58494601db62919168a29ef9f43
Author: Hua Wang <email address hidden>
Date: Tue Mar 8 11:19:30 2016 +0800

    Bay status returns None initially after create

    When creating a bay using heat resources, OS::Magnum::Bay, the first
    bay status returns None, then the following bay status returns the
    correct CREATE_IN_PROGRESS.

    Change-Id: I6e3802b1321de5d300e167c5b0f1a9ebf291fe13
    Closes-Bug: #1507598

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 2.0.0

This issue was fixed in the openstack/magnum 2.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.