Comment 12 for bug 1425808

Revision history for this message
Tim Kuhlman (timkuhlman) wrote :

I believe the problem here is that Nova processes the request asynchronously and Juju doesn't check back on the error. The initial server creation request returns a success for the server creation and then as William mentioned when the nova-scheduler starts working it transitions to an error state. The error handling in Juju only handles the case where the error is returned from Nova as part of the original request and so Juju never picks up on the error.

The first step of fixing this is to have goose return the fault when getting server details.
https://github.com/tkuhlman/goose/commit/9fc1d747db6d01dfbabecfccf87f6b6bf765b457

Then Juju can grab the server details and check for the fault.
https://github.com/tkuhlman/juju/commit/7dccfcad814421372b8b2139a1ed47588a816dbb

There is just one major problem I have not been able to get a test environment working that replicates the problem in order to validate my fix. I'll keep working on that but any help in replicating it would be appreciated.