yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74982
[Bug 1784070] Re: Orphaned Object Error: Cannot call save on orphaned Instance object nova on lock instance
[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]
** Changed in: nova
Status: Incomplete => Expired
--
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/1784070
Title:
Orphaned Object Error: Cannot call save on orphaned Instance object
nova on lock instance
Status in OpenStack Compute (nova):
Expired
Bug description:
When trying to lock an instance immediately after boot `nova lock
<UUID>` we are encountering the following error
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions [req-25225429-0656-4c61-95d6-8624fe9022ce fb155fef17ca4693af4edf04ec7406d7 4cfa00f63d844bf0abaeac0defb8e434 - default default] Unexpected exception in API method
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions File "/openstack/venvs/nova-r14.10.0/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, in wrapped
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions File "/openstack/venvs/nova-r14.10.0/lib/python2.7/site-packages/nova/api/openstack/compute/lock_server.py", line 40, in _lock
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions self.compute_api.lock(context, instance)
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions File "/openstack/venvs/nova-r14.10.0/lib/python2.7/site-packages/nova/compute/api.py", line 3383, in lock
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions instance.save()
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions File "/openstack/venvs/nova-r14.10.0/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 207, in wrapper
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions objtype=self.obj_name())
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions OrphanedObjectError: Cannot call save on orphaned Instance object
2018-07-27 18:35:40.064 37341 ERROR nova.api.openstack.extensions
2018-07-27 18:35:40.067 37341 INFO nova.api.openstack.wsgi [req-25225429-0656-4c61-95d6-8624fe9022ce fb155fef17ca4693af4edf04ec7406d7 4cfa00f63d844bf0abaeac0defb8e434 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_versionedobjects.exception.OrphanedObjectError'>
If we put in a wait of 20 second after creating the instance, this
does not occur.
I am seeing this in nova-r14.10.0
pip freeze | grep nova
You are using pip version 8.1.2, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
nova==14.1.0
nova-lxd==14.2.3.dev10
nova-powervm==3.0.4.dev3
python-novaclient==6.0.2
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1784070/+subscriptions
References