New Question
0

Can't spawn new instance - Nova Newton Hyperv Driver [closed]

asked 2017-01-25 23:33:22 +0200

Nebukazar gravatar image

Hi,

We have recently updated our hyperv nova compute driver from Mitaka to Newton. So far, the update went with no major issues until recently; we updated our centos7 image through glance and for some reason, we are no longer able to spin up VMs.

The error message we are seeing from nova on our hyperv node is the following:

2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [req-de5bd8d6-13e2-46fd-91b3-c6369bd326b1 1dd5c11bf9ef453381328c70ddd20b4c 52977a62b18e44f0955a2c7d0ef1ea6e - - -] [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681] Instance failed to spawn
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681] Traceback (most recent call last):
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\compute\manager.py", line 2078, in _build_resources
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     yield resources
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\compute\manager.py", line 1920, in _build_and_run_instance
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     block_device_info=block_device_info)
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\driver.py", line 70, in wrapper
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     six.reraise(raised_exception, exc, exc_info[2])
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\driver.py", line 54, in wrapper
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     return function(*args, **kwargs)
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\driver.py", line 162, in spawn
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     admin_password, network_info, block_device_info)
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\vmops.py", line 82, in wrapper
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     return function(self, *args, **kwds)
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\vmops.py", line 299, in spawn
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     self._create_root_device(context, instance, root_device, vm_gen)
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\vmops.py", line 145, in _create_root_device
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]     path = self._create_root_vhd(context, instance)
2017-01-25 16:26:30.236 4016 ERROR nova.compute.manager [instance: b1ab1e16-bc01-409c-9b7f-c9935f29e681]   File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\vmops.py ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Nebukazar
close date 2017-01-26 20:35:49.700480

1 answer

Sort by » oldest newest most voted
1

answered 2017-01-26 20:35:34 +0200

Nebukazar gravatar image

For those having the issue mentioned above, make sure that you have NO application / services using the VHDx file while uploading it.

In our case, the CentOS template VM was still turned on and hence locked the VHDx file.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-25 23:33:22 +0200

Seen: 946 times

Last updated: Jan 26 '17