yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50739
[Bug 1544744] Re: Live migration with attached volume results in ERROR state and fails to rollback when cinder client exception is thrown
Reviewed: https://review.openstack.org/290156
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2c52aca7965bf3c9dd4c17b4f7706bdef401463f
Submitter: Jenkins
Branch: master
commit 2c52aca7965bf3c9dd4c17b4f7706bdef401463f
Author: Sujitha <sujitha.neti@xxxxxxxxx>
Date: Tue Mar 8 20:57:36 2016 +0000
Added new exception to handle CinderClientException
When Cinder client exception is thrown in initialize_connection
(which is called during prechecks for Live migration),
instance is moved to ERROR state. It is not sensible
to move the instance to ERROR state when the precheck fails.
Adding new exception changes this behavior. Instance will be reset
to Active state when the precheck fails.
Closes bug: #1544744
Change-Id: I7a5fcc070ff53086f37417f12e2b9f383e220747
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1544744
Title:
Live migration with attached volume results in ERROR state and fails
to rollback when cinder client exception is thrown
Status in OpenStack Compute (nova):
Fix Released
Bug description:
During live migration with attached volume, instance is moved to ERROR
state and stuck in task state Migrating when cinder client exception
is thrown.
Steps:
1. Create a nova instance
2. Attach a cinder volume
3. Change the nova code to raise cinderclient exception in
initialize_connection(). Add the below line in initialize_connection()
in nova/volume/cinder.py.
raise cinder_exception.ClientException("test","cinder client exception")
4. Live migrate instance to other compute node (on a shared storage setup)
Result:
* ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
* And instance changes to unrecoverable ERROR state and stuck in migrating task state.
Error message is expected but instance changing into unrecoverable
ERROR state should be fixed in my opinion. It has to roll back instead
of moving to ERROR state.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1544744/+subscriptions
References