status reason is not updated on failure

Bug #1488709 reported by Stanislaw Pitucha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Peiyu Lin

Bug Description

After bay creation fails, the result from bay-show is:

| status | CREATE_FAILED |
| uuid | 8ca7a574-e861-492d-bd80-8bef9c551e27 |
| status_reason | Stack CREATE started |

But that status_reason is meaningless in this situation.

Changed in magnum:
assignee: nobody → Vilobh Meshram (vilobhmm)
assignee: Vilobh Meshram (vilobhmm) → nobody
Revision history for this message
bharaththiruveedula (bharath-ves) wrote :

@stanislaw-pitucha, I have tried to reproduce the bug, by giving wrong keypair name in baymodel. And then I triedto bay-create, it failed. But I got expected result in status_reason like "Resource Failed: invalid keypair name (test1)" in both bay-show <id> and heat stack-show <id>. I think we can close this bug.

Revision history for this message
Stanislaw Pitucha (stanislaw-pitucha) wrote :

Was this a recent change? I tried with devstack/magnum from the day the issue was raised.
My error was specifically a timeout from the master instance notification - curl failed to report success from the node.

Revision history for this message
bharaththiruveedula (bharath-ves) wrote :

I have tried in the latest code.

Revision history for this message
Peiyu Lin (mathspanda) wrote :

@bharaththiruveedula, this bug can be reproduced by setting a relatively smaller max_attempts value in bay_conductor.py, for example setting default value 2000 to 10.

Peiyu Lin (mathspanda)
Changed in magnum:
assignee: nobody → Peiyu Lin (mathspanda)
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/217729

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

Reviewed: https://review.openstack.org/217729
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=235877bebc2a55f072d96395e79c6a45df9144c3
Submitter: Jenkins
Branch: master

commit 235877bebc2a55f072d96395e79c6a45df9144c3
Author: mathspanda <email address hidden>
Date: Thu Aug 27 21:57:31 2015 +0800

    Sync bay status reason in periodic task

    In periodic task, when bay status is found to be different with
    corresponding stack, or the corresponding stack cannot be found in
    heat, status reason should be synced as well as status. Otherwise,
    status reason will be meaningless in some situation.

    Change-Id: I27d6a7ecb0c74bd4d4a2bb2bfcd81d7632cd2147
    Closes-Bug: #1488709

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
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.