** Changed in: nova Status: Fix Committed => Fix Released ** Changed in: nova Milestone: None => kilo-3
-- 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/1352668 Title: After archive db the instance with deleted flavor failed Status in OpenStack Compute (Nova): Fix Released Bug description: reproduce as below: os@os2:~$ nova show vm1 +--------------------------------------+----------------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | os3 | | OS-EXT-SRV-ATTR:hypervisor_hostname | os3 | | OS-EXT-SRV-ATTR:instance_name | instance-00000045 | | OS-EXT-STS:power_state | 1 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2014-08-05T03:47:09.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2014-08-05T03:47:01Z | | flavor | test1 (333) | | hostId | c8e8cab21e9e22dbc3779fd171e77f44940ba1c81161dc114ba4ad85 | | id | c2e84eda-4bc6-4ef7-a5ee-f6590fb1f6f7 | | image | cirros-0.3.2-x86_64-uec (da82a342-aeac-407a-bf9d-cf28bf68dc6b) | | key_name | - | | metadata | {} | | name | vm1 | | net1 network | 12.0.0.55 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | security_groups | default | | status | ACTIVE | | tenant_id | fdbb1e8f23eb40c89f3a677e2621b95c | | updated | 2014-08-05T03:47:09Z | | user_id | 158d3c971e244f479593c86ff751bf8f | +--------------------------------------+----------------------------------------------------------------+ os@os2:~$ nova delete ^C os@os2:~$ nova flavor-delete 333 +-----+-------+-----------+------+-----------+------+-------+-------------+-----------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | +-----+-------+-----------+------+-----------+------+-------+-------------+-----------+ | 333 | test1 | 512 | 1 | 1 | 10 | 1 | 1.0 | True | +-----+-------+-----------+------+-----------+------+-------+-------------+-----------+ 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher incoming.message)) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 406, in decorated_function 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/server.py", line 139, in inner 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return func(*args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/exception.py", line 88, in wrapped 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher payload) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__ 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/exception.py", line 71, in wrapped 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, **kw) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 291, in decorated_function 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher pass 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__ 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 277, in decorated_function 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 341, in decorated_function 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 319, in decorated_function 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info()) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__ 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 307, in decorated_function 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 2650, in rebuild_instance 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher self._rebuild_default_impl(**kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 2505, in _rebuild_default_impl 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher block_device_info=new_block_device_info) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2318, in spawn 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher write_to_disk=True) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3517, in _get_guest_xml 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher disk_info, rescue, block_device_info) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3163, in _get_guest_config 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher instance['instance_type_id']) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/objects/base.py", line 151, in wrapper 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher args, kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/conductor/rpcapi.py", line 344, in object_class_action 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher objver=objver, args=args, kwargs=kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line 150, in call 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher wait_for_reply=True, timeout=timeout) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 90, in _send 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher timeout=timeout) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 386, in send 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return self._send(target, ctxt, message, wait_for_reply, timeout) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 379, in _send 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher raise result 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher FlavorNotFound_Remote: Flavor 9 could not be found. 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/conductor/manager.py", line 403, in _object_dispatch 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return getattr(target, method)(context, *args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/objects/base.py", line 153, in wrapper 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher result = fn(cls, context, *args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/objects/flavor.py", line 120, in get_by_id 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher db_flavor = db.flavor_get(context, id) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/db/api.py", line 1478, in flavor_get 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return IMPL.flavor_get(context, id) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 167, in wrapper 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs) 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 4390, in flavor_get 2014-08-05 12:16:09.558 TRACE oslo.messaging.rpc.dispatcher raise exception.FlavorNotFound(flavor_id=id) And there are also some bug for python-novaclient. os@os2:~$ nova rebuild vm1 da82a342-aeac-407a-bf9d-cf28bf68dc6b ERROR (CommandError): No flavor with a name or ID of '333' exists. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1352668/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp