yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #15659
[Bug 1307408] Re: VMWare - Destroy fails when Claim is not successful
** Changed in: nova
Status: Fix Committed => Fix Released
--
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/1307408
Title:
VMWare - Destroy fails when Claim is not successful
Status in OpenStack Compute (Nova):
Fix Released
Status in OpenStack Compute (nova) icehouse series:
Fix Released
Bug description:
If Claim is not successful, compute manager triggers a call to destroy instance.
Destroy fails since the compute node (cluster) is set only after claim is successful.
This issue occurs when multiple parallel nova boot operations are
triggered simultaneously.
Snippet from nova-compute.log
2014-04-06 22:48:52.454 [00;32mDEBUG nova.compute.utils [[01;36mreq-0663cdf1-9969-446a-af08-299f18366394 [00;36mdemo demo[00;32m] [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00;32mInsufficient compute resources: Free memory 975.00 MB < requested 2000 MB.[00m [00;33mfrom (pid=9041) notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:336[00m
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00mTraceback (most recent call last):
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m File "/opt/stack/nova/nova/compute/manager.py", line 1289, in _build_instance
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m with rt.instance_claim(context, instance, limits):
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m return f(*args, **kwargs)
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m File "/opt/stack/nova/nova/compute/resource_tracker.py", line 122, in instance_claim
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m overhead=overhead, limits=limits)
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m File "/opt/stack/nova/nova/compute/claims.py", line 95, in __init__
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m self._claim_test(resources, limits)
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m File "/opt/stack/nova/nova/compute/claims.py", line 148, in _claim_test
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m "; ".join(reasons))
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00mComputeResourcesUnavailable: Insufficient compute resources: Free memory 975.00 MB < requested 2000 MB.
[00;32m2014-04-06 22:48:52.454 TRACE nova.compute.utils [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00m
2014-04-06 22:48:52.455 [00;32mDEBUG nova.compute.manager [[01;36mreq-0663cdf1-9969-446a-af08-299f18366394 [00;36mdemo demo[00;32m] [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [00;32mClean up resource before rescheduling.[00m [00;33mfrom (pid=9041) _reschedule_or_error /opt/stack/nova/nova/compute/manager.py:1401[00m
2014-04-06 22:48:52.455 [01;36mAUDIT nova.compute.manager [[01;36mreq-0663cdf1-9969-446a-af08-299f18366394 [00;36mdemo demo[01;36m] [01;35m[instance: b22186ec-9f05-4f7d-a0d6-2276baeb6572] [01;36mTerminating instance[00m
2014-04-06 22:48:52.544 [00;32mDEBUG nova.network.api [[01;36mreq-8cf2f302-42af-46e2-b745-fa30902c3319 [00;36mdemo demo[00;32m] [01;35m[00;32mUpdating cache with info: [][00m [00;33mfrom (pid=9041) update_instance_cache_with_nw_info /opt/stack/nova/nova/network/api.py:74[00m
2014-04-06 22:48:52.555 [00;32mDEBUG nova.objects.instance [[01;36mreq-0663cdf1-9969-446a-af08-299f18366394 [00;36mdemo demo[00;32m] [01;35m[00;32mLazy-loading `system_metadata' on Instance uuid b22186ec-9f05-4f7d-a0d6-2276baeb6572[00m [00;33mfrom (pid=9041) obj_load_attr /opt/stack/nova/nova/objects/instance.py:519[00m
2014-04-06 22:48:52.563 [00;32mDEBUG nova.compute.manager [[01;36mreq-8cf2f302-42af-46e2-b745-fa30902c3319 [00;36mdemo demo[00;32m] [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00;32mDeallocating network for instance[00m [00;33mfrom (pid=9041) _deallocate_network /opt/stack/nova/nova/compute/manager.py:1784[00m
2014-04-06 22:48:52.593 [01;31mERROR nova.compute.manager [[01;36mreq-8cf2f302-42af-46e2-b745-fa30902c3319 [00;36mdemo demo[01;31m] [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [01;31mError: Insufficient compute resources: Free memory 975.00 MB < requested 2000 MB.[00m
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00mTraceback (most recent call last):
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/manager.py", line 1289, in _build_instance
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m with rt.instance_claim(context, instance, limits):
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m return f(*args, **kwargs)
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/resource_tracker.py", line 122, in instance_claim
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m overhead=overhead, limits=limits)
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/claims.py", line 95, in __init__
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m self._claim_test(resources, limits)
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/claims.py", line 148, in _claim_test
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m "; ".join(reasons))
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00mComputeResourcesUnavailable: Insufficient compute resources: Free memory 975.00 MB < requested 2000 MB.
[01;31m2014-04-06 22:48:52.593 TRACE nova.compute.manager [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m
2014-04-06 22:48:52.664 [00;32mDEBUG nova.compute.utils [[01;36mreq-8cf2f302-42af-46e2-b745-fa30902c3319 [00;36mdemo demo[00;32m] [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00;32mThe resource None does not exist[00m [00;33mfrom (pid=9041) notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:336[00m
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00mTraceback (most recent call last):
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/manager.py", line 1202, in _run_instance
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m instance, image_meta, legacy_bdm_in_spec)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/manager.py", line 1366, in _build_instance
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m filter_properties, bdms, legacy_bdm_in_spec)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/manager.py", line 1412, in _reschedule_or_error
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m self._log_original_error(exc_info, instance_uuid)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m six.reraise(self.type_, self.value, self.tb)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/manager.py", line 1407, in _reschedule_or_error
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m bdms, requested_networks)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/manager.py", line 2136, in _shutdown_instance
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m requested_networks)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m six.reraise(self.type_, self.value, self.tb)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/compute/manager.py", line 2126, in _shutdown_instance
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m block_device_info)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 656, in destroy
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m _vmops = self._get_vmops_for_compute_node(instance['node'])
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 544, in _get_vmops_for_compute_node
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m resource = self._get_resource_for_node(nodename)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 536, in _get_resource_for_node
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00m raise exception.NotFound(msg)
[00;32m2014-04-06 22:48:52.664 TRACE nova.compute.utils [01;35m[instance: 1deeb6c0-ed7f-4f5a-bdcc-97765803d18b] [00mNotFound: The resource None does not exist
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1307408/+subscriptions
References