After investigation, when Openstack try to create remote path for instance resizing without right remote target host access credentials configuration, WindowsError [Error 123] is raised from https://github.com/openstack/nova/blob/master/nova/virt/hyperv/migrationops.py#L125
The exception will be caught by: https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2528 Then the fault will be updated into db by: https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L2554 It works as design, except that nova/compute/manager.py are common code path for different HyperVisor, adding specific error information for HyperV will impact other HyperVisor's resizing operation and confuse Openstack users. So I think we should invalid this bug. ** Changed in: nova Status: New => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1195217 Title: Better messaging needed when resize of a vm fails on a Hyper-V host Status in OpenStack Compute (Nova): Invalid Bug description: a resize failed because the credentials on the Hyper-V host were incorrect. The message that shows up in the "nova show" command has no relevance to the actual problem. The same message was also seen because the nova.conf option allow_resize_to_same_host=True was not set on either the compute node or the controller node (it has to be set on both nodes apparently). The nova show command shows the following after the resize fails: nova show Ivt_May23_2 +-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | Property | Value | +-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | status | ERROR | | updated | 2013-05-23T16:35:28Z | | OS-EXT-STS:task_state | None | | OS-EXT-SRV-ATTR:host | cn4 | | key_name | None | | image | quantal-server-cloudimg-amd64-disk1 (4e07b1ab-2beb-423a-9ce9-25ae54ad8971) | | network1 network | 10.0.1.4 | | hostId | b05b4a40886f1b4b5c0c1fd1a73f074560c390f1303813142669ff88 | | OS-EXT-STS:vm_state | error | | OS-EXT-SRV-ATTR:instance_name | instance-00000012 | | OS-EXT-SRV-ATTR:hypervisor_hostname | cn4 | | flavor | m1.small (2) | | id | 5259d8b7-aa97-4a54-9c4e-be3a5292e5e3 | | security_groups | [{u'name': u'default'}] | | user_id | cec041a865b949ba911d686b0afdaf0f | | name | Ivt_May23_2 | | created | 2013-05-23T16:34:22Z | | tenant_id | 28478f1010e34ec7bd4f7ffd84e3b3c3 | | OS-DCF:diskConfig | MANUAL | | metadata | {} | | accessIPv4 | | | accessIPv6 | | | fault | {u'message': u'WindowsError', u'code': 500, u'details': u'[Error 123] The filename, directory name, or volume label syntax is incorrect: u\'\\\\\\\\\' | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\compute\\manager.py", line 228, in decorated_function | | | return function(self, context, *args, **kwargs) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\compute\\manager.py", line 2481, in resize_instance | | | block_device_info) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\driver.py", line 169, in migrate_disk_and_power_off | | | block_device_info) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\migrationops.py", line 111, in migrate_disk_and_power_off | | | self._migrate_disk_files(instance_name, disk_files, dest) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\migrationops.py", line 84, in _migrate_disk_files | | | dest_path) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\contextlib.py", line 24, in __exit__ | | | self.gen.next() | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\migrationops.py", line 69, in _migrate_disk_files | | | instance_name, dest, remove_dir=True) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\pathutils.py", line 119, in get_instance_dir | | | create_dir, remove_dir) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\pathutils.py", line 107, in _get_instances_sub_dir | | | self._check_create_dir(path) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\pathutils.py", line 93, in _check_create_dir | | | self.makedirs(path) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\site-packages\ | | | ova\\virt\\hyperv\\pathutils.py", line 52, in makedirs | | | os.makedirs(path) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 150, in makedirs | | | makedirs(head, mode) | | | File "C:\\Program Files (x86)\\Hyper-V Agent\\Python27\\lib\\os.py", line 157, in makedirs | | | mkdir(name, mode) | | | ', u'created': u'2013-05-23T16:35:28Z'} | | OS-EXT-STS:power_state | 1 | | OS-EXT-AZ:availability_zone | nova | | config_drive | | +-------------------------------------+--------------------------------------------------------------------------------------------------------- The messaging presented needs to better represent the problem. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1195217/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

