[openstack-dev] [Openstack] Devstack (icehouse) - XCP - enable live migration

Afef Mdhaffar afef.mdhaffar at gmail.com
Tue Jul 15 13:46:15 UTC 2014


Hi Bob,

thanks a lot for you answer.
I have fixed the error while applying the following changes :
 --return aggr.metadetails[CONF.host]
  ++return aggr.metadata[CONF.host]

nova-compute is now running, however I am no more able to launch (or
migrate) an instance on (to) this compute node. It seems to be a networking
issue related to XCP ( Failure: ['VM_REQUIRES_NETWORK',
'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299'])

Here is the obtained nova-compute logs. Could you please help to fix this
issue.

-----
virt/xenapi/vmops.py:305
2014-07-15 07:19:01.557 ERROR nova.utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Failed to spawn, rolling back
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Traceback (most recent call last):
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 517, in _spawn
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     boot_instance_step(undo_mgr,
vm_ref)
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 146, in inner
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     rv = f(*args, **kwargs)
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 480, in boot_instance_step
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     self._start(instance, vm_ref)
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 320, in _start
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     False, False)
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/client/session.py", line 190, in
call_xenapi
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     return
session.xenapi_request(method, args)
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in
xenapi_request
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     result =
_parse_result(getattr(self, methodname)(*full_params))
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in
_parse_result
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     raise
Failure(result['ErrorDescription'])
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Failure: ['VM_REQUIRES_NETWORK',
'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299']
2014-07-15 07:19:01.557 TRACE nova.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
2014-07-15 07:19:01.563 WARNING nova.virt.xenapi.vm_utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] VM already halted, skipping
shutdown...
2014-07-15 07:19:01.577 DEBUG nova.virt.xenapi.vmops
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Destroying VDIs from (pid=31070)
_destroy_vdis /opt/stack/nova/nova/virt/xenapi/vmops.py:1261
2014-07-15 07:19:01.589 DEBUG nova.virt.xenapi.vm_utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] VDI
204cc100-5b8d-46ae-8725-8504e080fb70 is still available from (pid=31070)
lookup_vm_vdis /opt/stack/nova/nova/virt/xenapi/vm_utils.py:1720
2014-07-15 07:19:01.600 DEBUG nova.virt.xenapi.vm_utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] VDI
def702c3-3934-4ff4-8947-9b7a43eea75b is still available from (pid=31070)
lookup_vm_vdis /opt/stack/nova/nova/virt/xenapi/vm_utils.py:1720
2014-07-15 07:19:02.869 DEBUG nova.virt.xenapi.vmops
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Using RAW or VHD, skipping kernel and
ramdisk deletion from (pid=31070) _destroy_kernel_ramdisk
/opt/stack/nova/nova/virt/xenapi/vmops.py:1289
2014-07-15 07:19:02.928 DEBUG nova.virt.xenapi.vm_utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] VM destroyed from (pid=31070)
destroy_vm /opt/stack/nova/nova/virt/xenapi/vm_utils.py:346
2014-07-15 07:19:02.928 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Got semaphore
"iptables" from (pid=31070) lock
/opt/stack/nova/nova/openstack/common/lockutils.py:168
2014-07-15 07:19:02.929 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Attempting to grab
file lock "iptables" from (pid=31070) lock
/opt/stack/nova/nova/openstack/common/lockutils.py:178
2014-07-15 07:19:02.929 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Got file lock
"iptables" at /opt/stack/data/nova/nova-iptables from (pid=31070) lock
/opt/stack/nova/nova/openstack/common/lockutils.py:206
2014-07-15 07:19:02.929 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Got semaphore / lock
"_apply" from (pid=31070) inner
/opt/stack/nova/nova/openstack/common/lockutils.py:248
2014-07-15 07:19:02.930 DEBUG nova.openstack.common.processutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Running cmd
(subprocess): iptables-save -c from (pid=31070) execute
/opt/stack/nova/nova/openstack/common/processutils.py:154
2014-07-15 07:19:02.967 DEBUG nova.openstack.common.processutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Result was 0 from
(pid=31070) execute
/opt/stack/nova/nova/openstack/common/processutils.py:187
2014-07-15 07:19:02.970 DEBUG nova.openstack.common.processutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Running cmd
(subprocess): iptables-restore -c from (pid=31070) execute
/opt/stack/nova/nova/openstack/common/processutils.py:154
2014-07-15 07:19:03.009 DEBUG nova.openstack.common.processutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Result was 0 from
(pid=31070) execute
/opt/stack/nova/nova/openstack/common/processutils.py:187
2014-07-15 07:19:03.010 DEBUG nova.network.linux_net
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin]
IPTablesManager.apply completed with success from (pid=31070) _apply
/opt/stack/nova/nova/network/linux_net.py:458
2014-07-15 07:19:03.011 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Released file lock
"iptables" at /opt/stack/data/nova/nova-iptables from (pid=31070) lock
/opt/stack/nova/nova/openstack/common/lockutils.py:210
2014-07-15 07:19:03.011 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Semaphore / lock
released "_apply" from (pid=31070) inner
/opt/stack/nova/nova/openstack/common/lockutils.py:252
2014-07-15 07:19:03.024 DEBUG nova.virt.xenapi.vm_utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Unable to destroy
VDI OpaqueRef:3727b952-68bd-a09d-3122-66c19a7b4fc0 from (pid=31070)
destroy_vdi /opt/stack/nova/nova/virt/xenapi/vm_utils.py:510
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils Traceback (most
recent call last):
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils   File
"/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 507, in destroy_vdi
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils
session.call_xenapi('VDI.destroy', vdi_ref)
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils   File
"/opt/stack/nova/nova/virt/xenapi/client/session.py", line 190, in
call_xenapi
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils     return
session.xenapi_request(method, args)
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in
xenapi_request
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils     result =
_parse_result(getattr(self, methodname)(*full_params))
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in
_parse_result
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils     raise
Failure(result['ErrorDescription'])
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils Failure:
['HANDLE_INVALID', 'VDI', 'OpaqueRef:3727b952-68bd-a09d-3122-66c19a7b4fc0']
2014-07-15 07:19:03.024 TRACE nova.virt.xenapi.vm_utils
2014-07-15 07:19:03.026 ERROR nova.virt.xenapi.vm_utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Unable to destroy
VDI OpaqueRef:3727b952-68bd-a09d-3122-66c19a7b4fc0
2014-07-15 07:19:03.026 DEBUG nova.virt.xenapi.vm_utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Ignoring error while
destroying VDI: OpaqueRef:3727b952-68bd-a09d-3122-66c19a7b4fc0 from
(pid=31070) safe_destroy_vdis
/opt/stack/nova/nova/virt/xenapi/vm_utils.py:522
2014-07-15 07:19:03.026 ERROR nova.compute.manager
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Instance failed to spawn
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Traceback (most recent call last):
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1714, in _spawn
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     block_device_info)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/driver.py", line 230, in spawn
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     admin_password, network_info,
block_device_info)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 357, in spawn
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     network_info, block_device_info,
name_label, rescue)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 526, in _spawn
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
undo_mgr.rollback_and_reraise(msg=msg, instance=instance)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/utils.py", line 830, in rollback_and_reraise
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     self._rollback()
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     six.reraise(self.type_,
self.value, self.tb)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 517, in _spawn
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     boot_instance_step(undo_mgr,
vm_ref)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 146, in inner
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     rv = f(*args, **kwargs)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 480, in boot_instance_step
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     self._start(instance, vm_ref)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 320, in _start
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     False, False)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/client/session.py", line 190, in
call_xenapi
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     return
session.xenapi_request(method, args)
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in
xenapi_request
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     result =
_parse_result(getattr(self, methodname)(*full_params))
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in
_parse_result
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     raise
Failure(result['ErrorDescription'])
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Failure: ['VM_REQUIRES_NETWORK',
'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299']
2014-07-15 07:19:03.026 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
2014-07-15 07:19:03.028 DEBUG nova.compute.claims
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Aborting claim: [Claim: 69 MB memory,
0 GB disk, 1 VCPUS] from (pid=31070) abort
/opt/stack/nova/nova/compute/claims.py:113
2014-07-15 07:19:03.029 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Got semaphore
"compute_resources" from (pid=31070) lock
/opt/stack/nova/nova/openstack/common/lockutils.py:168
2014-07-15 07:19:03.029 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Got semaphore / lock
"abort_instance_claim" from (pid=31070) inner
/opt/stack/nova/nova/openstack/common/lockutils.py:248
2014-07-15 07:19:03.218 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Semaphore / lock
released "abort_instance_claim" from (pid=31070) inner
/opt/stack/nova/nova/openstack/common/lockutils.py:252
2014-07-15 07:19:03.416 DEBUG nova.compute.utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] ['VM_REQUIRES_NETWORK',
'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299'] from (pid=31070)
notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:336
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Traceback (most recent call last):
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1305, in _build_instance
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     set_access_ip=set_access_ip)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 393, in decorated_function
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     return function(self, context,
*args, **kwargs)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1717, in _spawn
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     LOG.exception(_('Instance failed
to spawn'), instance=instance)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     six.reraise(self.type_,
self.value, self.tb)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1714, in _spawn
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     block_device_info)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/driver.py", line 230, in spawn
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     admin_password, network_info,
block_device_info)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 357, in spawn
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     network_info, block_device_info,
name_label, rescue)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 526, in _spawn
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
undo_mgr.rollback_and_reraise(msg=msg, instance=instance)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/utils.py", line 830, in rollback_and_reraise
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     self._rollback()
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     six.reraise(self.type_,
self.value, self.tb)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 517, in _spawn
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     boot_instance_step(undo_mgr,
vm_ref)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 146, in inner
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     rv = f(*args, **kwargs)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 480, in boot_instance_step
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     self._start(instance, vm_ref)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 320, in _start
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     False, False)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/client/session.py", line 190, in
call_xenapi
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     return
session.xenapi_request(method, args)
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in
xenapi_request
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     result =
_parse_result(getattr(self, methodname)(*full_params))
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in
_parse_result
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     raise
Failure(result['ErrorDescription'])
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Failure: ['VM_REQUIRES_NETWORK',
'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299']
2014-07-15 07:19:03.416 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
2014-07-15 07:19:03.419 DEBUG nova.compute.manager
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Clean up resource before
rescheduling. from (pid=31070) _reschedule_or_error
/opt/stack/nova/nova/compute/manager.py:1384
2014-07-15 07:19:03.419 AUDIT nova.compute.manager
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Terminating instance
2014-07-15 07:19:03.420 INFO nova.virt.xenapi.vmops
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Destroying VM
2014-07-15 07:19:03.430 WARNING nova.virt.xenapi.vmops
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] VM is not present, skipping destroy...
2014-07-15 07:19:03.430 DEBUG nova.compute.manager
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Deallocating network for instance
from (pid=31070) _deallocate_network
/opt/stack/nova/nova/compute/manager.py:1767
2014-07-15 07:19:04.476 DEBUG nova.compute.manager
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] terminating bdm
<nova.objects.block_device.BlockDeviceMapping object at 0x3bea290> from
(pid=31070) _cleanup_volumes /opt/stack/nova/nova/compute/manager.py:2150
2014-07-15 07:19:04.477 DEBUG nova.compute.manager
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Re-scheduling run_instance: attempt 1
from (pid=31070) _reschedule /opt/stack/nova/nova/compute/manager.py:1436
2014-07-15 07:19:04.585 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Got semaphore
"compute_resources" from (pid=31070) lock
/opt/stack/nova/nova/openstack/common/lockutils.py:168
2014-07-15 07:19:04.585 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Got semaphore / lock
"update_usage" from (pid=31070) inner
/opt/stack/nova/nova/openstack/common/lockutils.py:248
2014-07-15 07:19:04.585 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Semaphore / lock
released "update_usage" from (pid=31070) inner
/opt/stack/nova/nova/openstack/common/lockutils.py:252
2014-07-15 07:19:04.591 ERROR nova.compute.manager
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Error: ['VM_REQUIRES_NETWORK',
'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299']
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Traceback (most recent call last):
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1305, in _build_instance
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     set_access_ip=set_access_ip)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 393, in decorated_function
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     return function(self, context,
*args, **kwargs)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1717, in _spawn
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     LOG.exception(_('Instance failed
to spawn'), instance=instance)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     six.reraise(self.type_,
self.value, self.tb)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1714, in _spawn
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     block_device_info)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/driver.py", line 230, in spawn
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     admin_password, network_info,
block_device_info)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 357, in spawn
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     network_info, block_device_info,
name_label, rescue)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 526, in _spawn
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
undo_mgr.rollback_and_reraise(msg=msg, instance=instance)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/utils.py", line 830, in rollback_and_reraise
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     self._rollback()
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     six.reraise(self.type_,
self.value, self.tb)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 517, in _spawn
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     boot_instance_step(undo_mgr,
vm_ref)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 146, in inner
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     rv = f(*args, **kwargs)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 480, in boot_instance_step
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     self._start(instance, vm_ref)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 320, in _start
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     False, False)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/virt/xenapi/client/session.py", line 190, in
call_xenapi
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     return
session.xenapi_request(method, args)
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in
xenapi_request
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     result =
_parse_result(getattr(self, methodname)(*full_params))
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in
_parse_result
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     raise
Failure(result['ErrorDescription'])
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Failure: ['VM_REQUIRES_NETWORK',
'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299']
2014-07-15 07:19:04.591 TRACE nova.compute.manager [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
2014-07-15 07:19:04.593 DEBUG nova.compute.utils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Build of instance
76e7364b-beea-43c0-b34c-23bc533f4064 was re-scheduled:
['VM_REQUIRES_NETWORK', 'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299'] from (pid=31070)
notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:336
2014-07-15 07:19:04.593 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] Traceback (most recent call last):
2014-07-15 07:19:04.593 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1185, in _run_instance
2014-07-15 07:19:04.593 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     instance, image_meta,
legacy_bdm_in_spec)
2014-07-15 07:19:04.593 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]   File
"/opt/stack/nova/nova/compute/manager.py", line 1355, in _build_instance
2014-07-15 07:19:04.593 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]     reason=unicode(exc_info[1]))
2014-07-15 07:19:04.593 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064] RescheduledException: Build of
instance 76e7364b-beea-43c0-b34c-23bc533f4064 was re-scheduled:
['VM_REQUIRES_NETWORK', 'OpaqueRef:44ff6856-49cc-7485-a7ad-cdf9f7a62ad2',
'OpaqueRef:b1e5cc48-5931-8482-c618-3908a6ca0299']
2014-07-15 07:19:04.593 TRACE nova.compute.utils [instance:
76e7364b-beea-43c0-b34c-23bc533f4064]
2014-07-15 07:19:04.595 DEBUG nova.openstack.common.lockutils
[req-3e87b68e-ba5d-4fbc-b453-9c9d8751284b admin admin] Semaphore / lock
released "do_run_instance" from (pid=31070) inner
/opt/stack/nova/nova/openstack/common/lockutils.py:252
-----



2014-07-15 14:51 GMT+02:00 Bob Ball <bob.ball at citrix.com>:

>  Hi Afef,
>
>
>
> There was a regression in Icehouse that broke XenAPI aggregates.  This has
> been fixed in Juno, however we would recommend you use live migrate with
> block migration (using XCP 1.6 or XenServer 6.2 – which is Free as well
> now, see
> http://lists.openstack.org/pipermail/openstack-dev/2013-September/014556.html
> ).
>
>
>
> Thanks,
>
>
>
> Bob
>
>
>
> *From:* Afef Mdhaffar [mailto:afef.mdhaffar at gmail.com]
> *Sent:* 14 July 2014 22:58
> *To:* openstack at lists.launchpad.net; openstack at lists.openstack.org;
> OpenStack Development Mailing List
> *Subject:* [openstack-dev] Devstack (icehouse) - XCP - enable live
> migration
>
>
>
> Hi all,
>
>
>
> I have installed the latest release of openstack (icehouse) via devstack.
>
> I use XCP and would like to activate the "live migration" functionality.
> Therefore, I tried to set up the pool with creating "host aggregate".
>
> After adding the slave compute, nova-compute does not want to start any
> more and shows the following error. Could you please help me to fix this
> issue.
>
> 2014-07-14 21:45:13.933 CRITICAL nova
> [req-c7965812-76cb-4479-8947-edd70644cd3d None None] AttributeError:
> 'Aggregate' object has no attribute 'metadetails'
>
>
>
> 2014-07-14 21:45:13.933 TRACE nova Traceback (most recent call last):
>
> 2014-07-14 21:45:13.933 TRACE nova   File "/usr/local/bin/nova-compute",
> line 10, in <module>
>
> 2014-07-14 21:45:13.933 TRACE nova     sys.exit(main())
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/cmd/compute.py", line 72, in main
>
> 2014-07-14 21:45:13.933 TRACE nova     db_allowed=CONF.conductor.use_local)
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/service.py", line 273, in create
>
> 2014-07-14 21:45:13.933 TRACE nova     db_allowed=db_allowed)
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/service.py", line 147, in __init__
>
> 2014-07-14 21:45:13.933 TRACE nova     self.manager =
> manager_class(host=self.host, *args, **kwargs)
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/compute/manager.py", line 597, in __init__
>
> 2014-07-14 21:45:13.933 TRACE nova     self.driver =
> driver.load_compute_driver(self.virtapi, compute_driver)
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/virt/driver.py", line 1299, in load_compute_driver
>
> 2014-07-14 21:45:13.933 TRACE nova     virtapi)
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/openstack/common/importutils.py", line 50, in
> import_object_ns
>
> 2014-07-14 21:45:13.933 TRACE nova     return
> import_class(import_value)(*args, **kwargs)
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/virt/xenapi/driver.py", line 156, in __init__
>
> 2014-07-14 21:45:13.933 TRACE nova     self._session =
> session.XenAPISession(url, username, password)
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/virt/xenapi/client/session.py", line 87, in __init__
>
> 2014-07-14 21:45:13.933 TRACE nova     self.host_uuid =
> self._get_host_uuid()
>
> 2014-07-14 21:45:13.933 TRACE nova   File
> "/opt/stack/nova/nova/virt/xenapi/client/session.py", line 140, in
> _get_host_uuid
>
> 2014-07-14 21:45:13.933 TRACE nova     return aggr.metadetails[CONF.host]
>
> 2014-07-14 21:45:13.933 TRACE nova AttributeError: 'Aggregate' object has
> no attribute 'metadetails'
>
> 2014-07-14 21:45:13.933 TRACE nova
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>


-- 
Afef MDHAFFAR
http://www.redcad.org/members/mdhaffar/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140715/ace5be9b/attachment.html>


More information about the OpenStack-dev mailing list