yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #51585
[Bug 1586308] [NEW] Delete a instance after this instance resized failed, source resource is not cleared.
Public bug reported:
Environment
===========
stable/mitaka
Steps to reproduce
==================
* I did boot a instance in compute node of SBCJSlot5Rack2Centos7, instance uuid was 00bc72d0-0778-4e69-bfee-b58b87dd1532.
* Then I did resize this instance, resize failed on finish_resize function on destination compute node SBCJSlot3Rack2Centos7.
[stack@SBCJSlot5Rack2Centos7 ~]$ openstack server show 00bc72d0-0778-4e69-bfee-b58b87dd1532.
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | SBCJSlot3Rack2Centos7 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | SBCJSlot3Rack2Centos7 |
| OS-EXT-SRV-ATTR:instance_name | instance-00000014 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | None |
| OS-EXT-STS:vm_state | error |
| OS-SRV-USG:launched_at | 2016-05-27T02:28:07.000000 |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | public=2001:db8::6, 10.43.239.76 |
| config_drive | True |
| created | 2016-05-27T02:27:56Z |
| fault | {u'message': u'Unexpected vif_type=binding_failed', u'code': 500, u'details': u' File "/opt/stack/nova/nova/compute/manager.py", line |
| | 375, in decorated_function\n return function(self, context, *args, **kwargs)\n File "/opt/stack/nova/nova/compute/manager.py", |
| | line 4054, in finish_resize\n self._set_instance_obj_error_state(context, instance)\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 220, in __exit__\n self.force_reraise()\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 196, in force_reraise\n six.reraise(self.type_, self.value, self.tb)\n File |
| | "/opt/stack/nova/nova/compute/manager.py", line 4042, in finish_resize\n disk_info, image_meta)\n File |
| | "/opt/stack/nova/nova/compute/manager.py", line 4007, in _finish_resize\n old_instance_type)\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 220, in __exit__\n self.force_reraise()\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 196, in force_reraise\n six.reraise(self.type_, self.value, self.tb)\n File |
| | "/opt/stack/nova/nova/compute/manager.py", line 4002, in _finish_resize\n block_device_info, power_on)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/driver.py", line 7405, in finish_migration\n write_to_disk=True)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4718, in _get_guest_xml\n context)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4584, in _get_guest_config\n flavor, virt_type, self._host)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/vif.py", line 447, in get_config\n _("Unexpected vif_type=%s") % vif_type)\n', u'created': |
| | u'2016-05-27T03:17:57Z'} |
| flavor | m1.tiny (1) |
| hostId | 7642c4dc55a8bc40c8a0fe2197a1b5333e5d0f028119be752c4098a0 |
| id | 00bc72d0-0778-4e69-bfee-b58b87dd1532 |
| image | cirros-0.3.4-x86_64-uec (f19c4e53-d6f6-43bb-b983-b77b0c68f509) |
| key_name | None |
| name | hanrong_az |
| os-extended-volumes:volumes_attached | [] |
| project_id | 4d6e4e79ea1f4ec392475308e11a895d |
| properties | |
| security_groups | [{u'name': u'default'}] |
| status | ERROR |
| updated | 2016-05-27T03:17:57Z |
| user_id | 2903b30f6d9f4c4eb99421e3b4e51796 |
+--------------------------------------+-------------------------------------------------------------------
MariaDB [nova]> select source_compute,source_compute,status,instance_uuid,instance_uuid from migrations where instance_uuid='00bc72d0-0778-4e69-bfee-b58b87dd1532';
+-----------------------+-----------------------+--------+--------------------------------------+--------------------------------------+
| source_compute | source_compute | status | instance_uuid | instance_uuid |
+-----------------------+-----------------------+--------+--------------------------------------+--------------------------------------+
| SBCJSlot5Rack2Centos7 | SBCJSlot5Rack2Centos7 | error | 00bc72d0-0778-4e69-bfee-b58b87dd1532 | 00bc72d0-0778-4e69-bfee-b58b87dd1532 |
+-----------------------+-----------------------+--------+--------------------------------------+--------------------------------------
* then I did delete this instance successfully. But the instance's data is not cleared on source compute node.
[stack@SBCJSlot5Rack2Centos7 instances]$ ll
drwxrwxr-x 2 stack libvirtd 4096 May 27 10:27 00bc72d0-0778-4e69-bfee-b58b87dd1532_resize
[stack@SBCJSlot5Rack2Centos7 instances]$ sudo virsh list --all
Id Name State
----------------------------------------------------
- instance-00000014 shut off
Expected result
===============
Instance's data is cleared after it had been deleted.
** Affects: nova
Importance: Undecided
Status: New
--
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/1586308
Title:
Delete a instance after this instance resized failed, source resource
is not cleared.
Status in OpenStack Compute (nova):
New
Bug description:
Environment
===========
stable/mitaka
Steps to reproduce
==================
* I did boot a instance in compute node of SBCJSlot5Rack2Centos7, instance uuid was 00bc72d0-0778-4e69-bfee-b58b87dd1532.
* Then I did resize this instance, resize failed on finish_resize function on destination compute node SBCJSlot3Rack2Centos7.
[stack@SBCJSlot5Rack2Centos7 ~]$ openstack server show 00bc72d0-0778-4e69-bfee-b58b87dd1532.
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | SBCJSlot3Rack2Centos7 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | SBCJSlot3Rack2Centos7 |
| OS-EXT-SRV-ATTR:instance_name | instance-00000014 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | None |
| OS-EXT-STS:vm_state | error |
| OS-SRV-USG:launched_at | 2016-05-27T02:28:07.000000 |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | public=2001:db8::6, 10.43.239.76 |
| config_drive | True |
| created | 2016-05-27T02:27:56Z |
| fault | {u'message': u'Unexpected vif_type=binding_failed', u'code': 500, u'details': u' File "/opt/stack/nova/nova/compute/manager.py", line |
| | 375, in decorated_function\n return function(self, context, *args, **kwargs)\n File "/opt/stack/nova/nova/compute/manager.py", |
| | line 4054, in finish_resize\n self._set_instance_obj_error_state(context, instance)\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 220, in __exit__\n self.force_reraise()\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 196, in force_reraise\n six.reraise(self.type_, self.value, self.tb)\n File |
| | "/opt/stack/nova/nova/compute/manager.py", line 4042, in finish_resize\n disk_info, image_meta)\n File |
| | "/opt/stack/nova/nova/compute/manager.py", line 4007, in _finish_resize\n old_instance_type)\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 220, in __exit__\n self.force_reraise()\n File "/usr/lib/python2.7/site- |
| | packages/oslo_utils/excutils.py", line 196, in force_reraise\n six.reraise(self.type_, self.value, self.tb)\n File |
| | "/opt/stack/nova/nova/compute/manager.py", line 4002, in _finish_resize\n block_device_info, power_on)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/driver.py", line 7405, in finish_migration\n write_to_disk=True)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4718, in _get_guest_xml\n context)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4584, in _get_guest_config\n flavor, virt_type, self._host)\n File |
| | "/opt/stack/nova/nova/virt/libvirt/vif.py", line 447, in get_config\n _("Unexpected vif_type=%s") % vif_type)\n', u'created': |
| | u'2016-05-27T03:17:57Z'} |
| flavor | m1.tiny (1) |
| hostId | 7642c4dc55a8bc40c8a0fe2197a1b5333e5d0f028119be752c4098a0 |
| id | 00bc72d0-0778-4e69-bfee-b58b87dd1532 |
| image | cirros-0.3.4-x86_64-uec (f19c4e53-d6f6-43bb-b983-b77b0c68f509) |
| key_name | None |
| name | hanrong_az |
| os-extended-volumes:volumes_attached | [] |
| project_id | 4d6e4e79ea1f4ec392475308e11a895d |
| properties | |
| security_groups | [{u'name': u'default'}] |
| status | ERROR |
| updated | 2016-05-27T03:17:57Z |
| user_id | 2903b30f6d9f4c4eb99421e3b4e51796 |
+--------------------------------------+-------------------------------------------------------------------
MariaDB [nova]> select source_compute,source_compute,status,instance_uuid,instance_uuid from migrations where instance_uuid='00bc72d0-0778-4e69-bfee-b58b87dd1532';
+-----------------------+-----------------------+--------+--------------------------------------+--------------------------------------+
| source_compute | source_compute | status | instance_uuid | instance_uuid |
+-----------------------+-----------------------+--------+--------------------------------------+--------------------------------------+
| SBCJSlot5Rack2Centos7 | SBCJSlot5Rack2Centos7 | error | 00bc72d0-0778-4e69-bfee-b58b87dd1532 | 00bc72d0-0778-4e69-bfee-b58b87dd1532 |
+-----------------------+-----------------------+--------+--------------------------------------+--------------------------------------
* then I did delete this instance successfully. But the instance's data is not cleared on source compute node.
[stack@SBCJSlot5Rack2Centos7 instances]$ ll
drwxrwxr-x 2 stack libvirtd 4096 May 27 10:27 00bc72d0-0778-4e69-bfee-b58b87dd1532_resize
[stack@SBCJSlot5Rack2Centos7 instances]$ sudo virsh list --all
Id Name State
----------------------------------------------------
- instance-00000014 shut off
Expected result
===============
Instance's data is cleared after it had been deleted.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1586308/+subscriptions