Public bug reported:

When unshelve instance, the instance object not sync up with nova db:
1. During unshelving, user(3rd party software) may want store some information 
in instance system metadata, but after unshelve operation done, those 
information will be overwrite because conductor code will save original 
instance object to nova db;
2. When create new instance, the conductor code will refresh instance object; 
The unshelve operation need do same thing to ensure the instance object keep 
consistent with nova db.

Reproduce steps:
1. Create instance by nova CLI or horizon dashboard;
2. Shelve instance by nova CLI or horizon dashboard;
3. Unshelve instance by nova CLI or horizon dashboard;
4. During unshelving, store some information by call function 
'db.instance_system_metadata_update';
5. After unshelve operation done, check nova db by SQL "use nova;select * from 
instance_system_metadata where instance_uuid=xxx",
You will see the information you stored in instance_system_metadata table be 
overwrite.

** Affects: nova
     Importance: Undecided
     Assignee: baikai (baikai)
         Status: Confirmed

** Changed in: nova
     Assignee: (unassigned) => baikai (baikai)

** Changed in: nova
       Status: New => Confirmed

-- 
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/1548209

Title:
  When unshelve instance, the instance object not sync up with nova db.

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  When unshelve instance, the instance object not sync up with nova db:
  1. During unshelving, user(3rd party software) may want store some 
information in instance system metadata, but after unshelve operation done, 
those information will be overwrite because conductor code will save original 
instance object to nova db;
  2. When create new instance, the conductor code will refresh instance object; 
The unshelve operation need do same thing to ensure the instance object keep 
consistent with nova db.

  Reproduce steps:
  1. Create instance by nova CLI or horizon dashboard;
  2. Shelve instance by nova CLI or horizon dashboard;
  3. Unshelve instance by nova CLI or horizon dashboard;
  4. During unshelving, store some information by call function 
'db.instance_system_metadata_update';
  5. After unshelve operation done, check nova db by SQL "use nova;select * 
from instance_system_metadata where instance_uuid=xxx",
  You will see the information you stored in instance_system_metadata table be 
overwrite.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1548209/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to