Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

failed create instance xenserver download_vhd() takes exactly 9 non-keyword arguments (8 given)

Hi, I trying to setup my liberty openstack environment with the xenserver 6.5 as hypervisor, when I trying to create the instance its failed and the nova-compute show the error like this :

2015-12-07 16:54:24.164 7839 INFO nova.compute.manager [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Starting instance...
2015-12-07 16:54:24.244 7839 INFO nova.compute.claims [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Attempting claim: memory 521 MB, disk 1 GB
2015-12-07 16:54:24.245 7839 INFO nova.compute.claims [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Total memory: 8132 MB, used: 512.00 MB
2015-12-07 16:54:24.246 7839 INFO nova.compute.claims [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] memory limit: 12198.00 MB, free: 11686.00 MB
2015-12-07 16:54:24.246 7839 INFO nova.compute.claims [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Total disk: 1375 GB, used: 0.00 GB
2015-12-07 16:54:24.247 7839 INFO nova.compute.claims [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] disk limit: 1375.00 GB, free: 1375.00 GB
2015-12-07 16:54:24.297 7839 INFO nova.compute.claims [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Claim successful
2015-12-07 16:54:24.962 7839 ERROR nova.utils [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Failed to spawn, rolling back
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Traceback (most recent call last):
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 578, in _spawn
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     name_label)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 141, in inner
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     rv = f(*args, **kwargs)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 420, in create_disks_step
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     block_device_info)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 359, in _get_vdis_for_instance
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     instance, name_label, image_meta.id, image_type)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vm_utils.py", line 1323, in create_image
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     image_type)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vm_utils.py", line 1283, in _create_cached_image
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     sr_ref)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 254, in inner
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     return f(*args, **kwargs)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vm_utils.py", line 1251, in _create_cached_image_impl
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     image_id, image_type)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vm_utils.py", line 1351, in _fetch_image
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     vdis = _fetch_vhd_image(context, session, instance, image_id)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vm_utils.py", line 1430, in _fetch_vhd_image
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     vdis = handler.download_image(context, session, instance, image_id)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/image/glance.py", line 68, in download_image
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     'download_vhd', params)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/image/glance.py", line 55, in _call_glance_plugin
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     'glance', fn, CONF.glance.num_retries, pick_glance, cb, **params)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 246, in call_plugin_serialized_with_retry
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     return self.call_plugin_serialized(plugin, fn, *args, **kwargs)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 221, in call_plugin_serialized
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     rv = self.call_plugin(plugin, fn, params)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 217, in call_plugin
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     self.host_ref, plugin, fn, args)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 291, in _unwrap_plugin_exceptions
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     return func(*args, **kwargs)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 229, in __call__
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     return self.__send(self.__name, args)
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in xenapi_request
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     result = _parse_result(getattr(self, methodname)(*full_params))
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]   File "/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in _parse_result
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]     raise Failure(result['ErrorDescription'])
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Failure: ['XENAPI_PLUGIN_FAILURE', 'download_vhd', 'TypeError', 'download_vhd() takes exactly 9 non-keyword arguments (8 given)']
2015-12-07 16:54:24.962 7839 ERROR nova.utils [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad]
2015-12-07 16:54:24.965 7839 ERROR nova.compute.manager [req-3dfc784d-1f75-4d91-bfbb-7ac210182177 88ade29c6a5a41eaa53c6d749015ce02 0d8274eb6c2e45a69a1711619a98e79e - - -] [instance: 08fa1a5d-8e24-4312-a51a-c9b48d218dad] Instance failed to spawn

I already set the xenserver /etc/hosts to pointing the glance server address , any missed configuration ? Is there anyone can help me ?