nova rebuild using openstack server rebuild is failing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
During rebuild of a switched off instance using openstack server rebuild commnad is failing with below error,
START with options: [u'server', u'rebuild', u'--wait', u'--image', u'esis_
command: server rebuild -> openstackclient
Using auth plugin: password
/usr/lib/
'or python-openstacksdk instead.', DeprecationWarning)
Unexpected API Error. Please report this at http://
-------
Version
-------
# cat /etc/nova/release
[Nova]
vendor = RDO
product = OpenStack Compute
package = 1.el7
-------
b
This doesn't seem to be a nova problem, but a problem with your database:
2018-10-11 04:47:49.827 12628 ERROR nova.api. metadata. handler [req-e8a61425- 56dc-4dd7- bbca-05ae913f24 c0 - - - - -] Failed to get metadata for instance id: b9f8fe03- a78b-43f3- bc1f-68ceaff3f9 78 metadata. handler Traceback (most recent call last): metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/api/ metadata/ handler. py", line 283, in _get_meta_ by_instance_ id metadata. handler remote_address) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/api/ metadata/ handler. py", line 78, in get_metadata_ by_instance_ id metadata. handler data = base.get_ metadata_ by_instance_ id(instance_ id, address) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/api/ metadata/ base.py" , line 670, in get_metadata_ by_instance_ id metadata. handler return InstanceMetadat a(instance, address) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/api/ metadata/ base.py" , line 138, in __init__ metadata. handler self.mappings = _format_ instance_ mapping( ctxt, instance) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/api/ metadata/ base.py" , line 675, in _format_ instance_ mapping metadata. handler ctxt, instance.uuid) metadata. handler File "/usr/lib/ python2. 7/site- packages/ oslo_versionedo bjects/ base.py" , line 184, in wrapper metadata. handler result = fn(cls, context, *args, **kwargs) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/objects/ block_device. py", line 357, in get_by_ instance_ uuid metadata. handler context, instance_uuid, use_slave= use_slave) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/db/ sqlalchemy/ api.py" , line 225, in wrapper metadata. handler return f(*args, **kwargs) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/objects/ block_device. py", line 352, in _db_block_ device_ mapping_ get_all_ by_instance metadata. handler context, instance_uuid) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/db/ api.py" , line 1305, in block_device_ mapping_ get_all_ by_instance metadata. handler instance_uuid) metadata. handler File "/usr/lib/ python2. 7/site- packages/ nova/db/ sqlalchemy/ api.py" , line 169, ...
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.
2018-10-11 04:47:49.827 12628 ERROR nova.api.