(hyper-v) resize instance failed if remove configdrive.iso

Bug #1628437 reported by zhanghaixia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Incomplete
Undecided
Unassigned

Bug Description

After I use configdrive to inject ip,hostname and password of the instance, and i move the configdrive.iso file from cdrom. when i resize the instance, report that "config drive is required by instance: ***, but it does not exist" .

openstack use hypervisor which is hyper-V.

Tags: hyper-v
Revision history for this message
zhanghaixia (zhang-haixia) wrote :
Download full text (3.3 KiB)

2016-09-28 17:04:28.743 3700 ERROR nova.compute.manager [req-4da854d0-95e8-4795-b382-1b64419a88f8 08be067f92f24ca088512eed73084862 0452cf0ca39e420c9ce5009067df7ff5 - - -] [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] Setting instance vm_state to ERROR
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] Traceback (most recent call last):
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\compute\manager.py", line 4117, in finish_resize
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] disk_info, image)
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\compute\manager.py", line 4083, in _finish_resize
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] old_instance_type)
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\oslo_utils\excutils.py", line 85, in __exit__
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] six.reraise(self.type_, self.value, self.tb)
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\compute\manager.py", line 4078, in _finish_resize
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] block_device_info, power_on)
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\virt\hyperv\driver.py", line 237, in finish_migration
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] block_device_info, power_on)
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\virt\hyperv\migrationops.py", line 295, in finish_migration
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] self._check_and_attach_config_drive(instance, vm_gen)
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\virt\hyperv\migrationops.py", line 162, in _check_and_attach_config_drive
2016-09-28 17:04:28.743 3700 TRACE nova.compute.manager [instance: 66903693-1f14-4d14-bf89-613e79a7c4cd] "but it does not exist.") % instance.name)
2016-0...

Read more...

Revision history for this message
Matt Riedemann (mriedem) wrote :

What release is this on? Liberty, Mitaka, Newton?

tags: added: hyper-v
summary: - resize instance failed if remove configdrive.iso
+ (hyper-v) resize instance failed if remove configdrive.iso
Changed in nova:
status: New → Incomplete
Revision history for this message
Matt Riedemann (mriedem) wrote :

Sounds like a duplicate of bug 1619602 which was fixed with https://review.openstack.org/#/c/364829/ - please confirm that fixes your issue.

Revision history for this message
zhanghaixia (zhang-haixia) wrote :

this problems is due to unmount the configdrive.iso file and not configdrive.vhd file

Revision history for this message
zhanghaixia (zhang-haixia) wrote :

 this bug report is different from bug #1619602.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.