Failed to start instance on Hyper-v using cloudbase

Asked by Shrirang Phadke on 2013-08-06

Hi,

I have two physical machines, One with Devstack deployment and another with Hyper-v.
I have deployed Nova using Cloudbase:
http://www.cloudbase.it/openstack/openstack-compute-installer/
When I try to spawn an instance I am getting following error:

------------------------------------------------------------------------------------
2013-08-06 13:03:05.395 ERROR nova.compute.manager [req-e35dc46c-f3ad-461c-abb3-604a980486d3 1978feea1c8d41fea7552cb535982543 3a4d4aa788f649d28545c413c1f137a4] [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] Instance failed to spawn
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] Traceback (most recent call last):
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\compute\manager.py", line 1103, in _spawn
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] block_device_info)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\driver.py", line 54, in spawn
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] admin_password, network_info, block_device_info)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\vmops.py", line 164, in spawn
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] root_vhd_path = self._create_root_vhd(context, instance)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\vmops.py", line 119, in _create_root_vhd
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] base_vhd_path = self._imagecache.get_cached_image(context, instance)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\imagecache.py", line 121, in get_cached_image
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] resized_vhd_path = self._resize_and_cache_vhd(instance, vhd_path)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\imagecache.py", line 61, in _resize_and_cache_vhd
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] vhd_info = self._vhdutils.get_vhd_info(vhd_path)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\vhdutils.py", line 81, in get_vhd_info
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] self._vmutils.check_ret_val(ret_val, job_path)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\vmutils.py", line 363, in check_ret_val
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] self._wait_for_job(job_path)
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova-2013.1.2-py2.7.egg\nova\virt\hyperv\vmutils.py", line 393, in _wait_for_job
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] "%(error)s") % locals())
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] HyperVException: WMI job failed with status 10. Error details: <INSTANCE CLASSNAME="Msvm_Error"><PROPERTY NAME="CIMStatusCode" TYPE="uint32"><VALUE>1</VALUE></PROPERTY><PROPERTY NAME="CIMStatusCodeDescription" TYPE="string"></PROPERTY><PROPERTY NAME="ErrorSource" TYPE="string"></PROPERTY><PROPERTY NAME="ErrorSourceFormat" TYPE="uint16"><VALUE>0</VALUE></PROPERTY><PROPERTY NAME="ErrorType" TYPE="uint16"><VALUE>4</VALUE></PROPERTY><PROPERTY NAME="Message" TYPE="string"><VALUE>Failed to get the disk information.</VALUE></PROPERTY><PROPERTY.ARRAY NAME="MessageArguments" TYPE="string"><VALUE.ARRAY></VALUE.ARRAY></PROPERTY.ARRAY><PROPERTY NAME="MessageID" TYPE="string"><VALUE>15268</VALUE></PROPERTY><PROPERTY NAME="OtherErrorSourceFormat" TYPE="string"></PROPERTY><PROPERTY NAME="OtherErrorType" TYPE="string"></PROPERTY><PROPERTY NAME="OwningEntity" TYPE="string"><VALUE>Microsoft-Windows-Hyper-V-VMMS</VALUE></PROPERTY><PROPERTY NAME="PerceivedSeverity" TYPE="uint16"><VALUE>3</VALUE></PROPERTY><PROPERTY NAME="ProbableCause" TYPE="uint16"><VALUE>0</VALUE></PROPERTY><PROPERTY NAME="ProbableCauseDescription" TYPE="string"></PROPERTY><PROPERTY.ARRAY NAME="RecommendedActions" TYPE="string"></PROPERTY.ARRAY></INSTANCE>
2013-08-06 13:03:05.395 1556 TRACE nova.compute.manager [instance: 28c090da-3fdf-450c-9222-197a5461c2f3]
2013-08-06 13:03:06.687 ERROR nova.compute.manager [req-e35dc46c-f3ad-461c-abb3-604a980486d3 1978feea1c8d41fea7552cb535982543 3a4d4aa788f649d28545c413c1f137a4] [instance: 28c090da-3fdf-450c-9222-197a5461c2f3] Error: ['Traceback (most recent call last):\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\compute\\manager.py", line 848, in _run_instance\n set_access_ip=set_access_ip)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\compute\\manager.py", line 1107, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\contextlib.py", line 24, in __exit__\n self.gen.next()\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\compute\\manager.py", line 1103, in _spawn\n block_device_info)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\driver.py", line 54, in spawn\n admin_password, network_info, block_device_info)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\vmops.py", line 164, in spawn\n root_vhd_path = self._create_root_vhd(context, instance)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\vmops.py", line 119, in _create_root_vhd\n base_vhd_path = self._imagecache.get_cached_image(context, instance)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\imagecache.py", line 121, in get_cached_image\n resized_vhd_path = self._resize_and_cache_vhd(instance, vhd_path)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\imagecache.py", line 61, in _resize_and_cache_vhd\n vhd_info = self._vhdutils.get_vhd_info(vhd_path)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\vhdutils.py", line 81, in get_vhd_info\n self._vmutils.check_ret_val(ret_val, job_path)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\vmutils.py", line 363, in check_ret_val\n self._wait_for_job(job_path)\n', ' File "C:\\Program Files (x86)\\Cloudbase Solutions\\OpenStack\\Nova\\Python27\\lib\\site-packages\\nova-2013.1.2-py2.7.egg\\nova\\virt\\hyperv\\vmutils.py", line 393, in _wait_for_job\n "%(error)s") % locals())\n', 'HyperVException: WMI job failed with status 10. Error details: <INSTANCE CLASSNAME="Msvm_Error"><PROPERTY NAME="CIMStatusCode" TYPE="uint32"><VALUE>1</VALUE></PROPERTY><PROPERTY NAME="CIMStatusCodeDescription" TYPE="string"></PROPERTY><PROPERTY NAME="ErrorSource" TYPE="string"></PROPERTY><PROPERTY NAME="ErrorSourceFormat" TYPE="uint16"><VALUE>0</VALUE></PROPERTY><PROPERTY NAME="ErrorType" TYPE="uint16"><VALUE>4</VALUE></PROPERTY><PROPERTY NAME="Message" TYPE="string"><VALUE>Failed to get the disk information.</VALUE></PROPERTY><PROPERTY.ARRAY NAME="MessageArguments" TYPE="string"><VALUE.ARRAY></VALUE.ARRAY></PROPERTY.ARRAY><PROPERTY NAME="MessageID" TYPE="string"><VALUE>15268</VALUE></PROPERTY><PROPERTY NAME="OtherErrorSourceFormat" TYPE="string"></PROPERTY><PROPERTY NAME="OtherErrorType" TYPE="string"></PROPERTY><PROPERTY NAME="OwningEntity" TYPE="string"><VALUE>Microsoft-Windows-Hyper-V-VMMS</VALUE></PROPERTY><PROPERTY NAME="PerceivedSeverity" TYPE="uint16"><VALUE>3</VALUE></PROPERTY><PROPERTY NAME="ProbableCause" TYPE="uint16"><VALUE>0</VALUE></PROPERTY><PROPERTY NAME="ProbableCauseDescription" TYPE="string"></PROPERTY><PROPERTY.ARRAY NAME="RecommendedActions" TYPE="string"></PROPERTY.ARRAY></INSTANCE>\n']
------------------------------------------------------------------------------------

Please let me know if any clue about this.
Regards

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
2013-08-06
Last reply:
2013-08-21
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Xiang Hui (xianghui) said : #2

I have encounter this problem, fix it by the following two ways:

1. It must use a vhd format image on hyperv to boot image
2. When first booting vm with this vhd format image, it will be copied to \instances\_base\
   make sure it is copied completely.

After I finish checking the above jobs, vm can be booted successfully.