nova migrate and resize don't work

Bug #1403479 reported by Michael Kraynov
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Matthew Mosesohn

Bug Description

When we try to resize or migrate (non live) instance instances get Error state and in the logs we can see the following errors:

Message
Unexpected error while running command. Command: ssh 172.29.34.178 mkdir -p /var/lib/nova/instances/ffbd8521-aee8-4ab0-8ea8-3e41504e426d Exit code: 1 Stdout: '' Stderr: "Warning: Permanently added '172.29.34.178' (RSA) to the list of known hosts.\r\n"
Code
500
Details
File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 290, in decorated_function return function(self, context, *args, **kwargs) File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3438, in resize_instance block_device_info) File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4958, in migrate_disk_and_power_off utils.execute('ssh', dest, 'mkdir', '-p', inst_base) File "/usr/lib/python2.6/site-packages/nova/utils.py", line 165, in execute return processutils.execute(*cmd, **kwargs) File "/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py", line 193, in execute cmd=' '.join(cmd))

Workaround:
We should do the following steps on the all compute nodes:
1. Enable shell for the user nova:
sed -i "s|/var/lib/nova:/bin/false|/var/lib/nova:/bin/bash|g" /etc/passwd
2. Login as nova:
su nova
3. Set Loglevel to error:
echo "LogLevel=error" >> ~/.ssh/config

After that resize and migrating are working fine.

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

https://bugs.launchpad.net/mos/+bug/1393785 this is already merged for 6.0 and will be fixed for 5.1.2. Marking as duplicate.

Changed in fuel:
milestone: none → 6.0
assignee: nobody → Matthew Mosesohn (raytrac3r)
importance: Undecided → High
status: New → Invalid
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.