Nova resize fails when VM needs to be moved to another host

Bug #1385227 reported by Maxim V. Yefimov
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
High
MOS Nova
5.1.x
Confirmed
High
MOS Nova

Bug Description

1. TROUBLE DESCRIPTION

1.1. Trouble summary
When you resize a VM and openstack decide to move the resized VM into another host it fails to create a directory for the VM under /var/lib/nova/instances

1.2. Detailed trouble description
It seems that ssh keys for the nova use are not interchanged between the compute hosts witch is required to execute ssh command on other compute password less.

1.3. Frequency of fault
It happens every time the resized VM needed to be started on another host than the original one

1.4. Workaround and Recovery
sed -i "s|/var/lib/nova:/bin/false|/var/lib/nova:/bin/bash|g" /etc/passwd

Changed in fuel:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Fuel Library Team (fuel-library)
milestone: none → 6.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/130876

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Dmitry Borodaenko (dborodaenko)
status: Confirmed → In Progress
Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

Maxim, please confirm that the fuel-library patch linked above fixes this problem.

Changed in fuel:
assignee: Dmitry Borodaenko (dborodaenko) → Maxim V. Yefimov (mefimov)
Changed in fuel:
assignee: Maxim V. Yefimov (mefimov) → Vladimir Kuklin (vkuklin)
Changed in fuel:
assignee: Vladimir Kuklin (vkuklin) → Maxim V. Yefimov (mefimov)
Changed in fuel:
assignee: Maxim V. Yefimov (mefimov) → Dmitry Borodaenko (dborodaenko)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/130876
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=15b5216f7d272e0a33773af370131e3077141734
Submitter: Jenkins
Branch: master

commit 15b5216f7d272e0a33773af370131e3077141734
Author: Dmitry Borodaenko <email address hidden>
Date: Fri Oct 24 12:33:53 2014 -0700

    Set nova shell to /bin/bash

    Nova requires shell as nova user on remote compute hosts for VM resize.

    Change-Id: I7e549f58903fd94af5e04dc2c058673d0b182965
    Closes-Bug: #1385227

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.1)

Fix proposed to branch: stable/5.1
Review: https://review.openstack.org/131926

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/5.1)

Reviewed: https://review.openstack.org/131926
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=e9b5e17b4de5711ac6d983d4276012c33c362e97
Submitter: Jenkins
Branch: stable/5.1

commit e9b5e17b4de5711ac6d983d4276012c33c362e97
Author: Dmitry Borodaenko <email address hidden>
Date: Fri Oct 24 12:33:53 2014 -0700

    Set nova shell to /bin/bash

    Nova requires shell as nova user on remote compute hosts for VM resize.

    Change-Id: I7e549f58903fd94af5e04dc2c058673d0b182965
    Closes-Bug: #1385227
    (cherry picked from commit 15b5216f7d272e0a33773af370131e3077141734)

Revision history for this message
Michael Polenchuk (mpolenchuk) wrote :

This commit has no effect for ubuntu 12.04 platform. (tested on F5.1.1)
Cauze script 'postinst' from the 'nova-common' package sets the shell '/bin/false' of nova user back:
if dpkg --compare-versions "$2" lt "2012.1~e3-0ubuntu2"; then
    usermod -s "/bin/false" nova
fi

It's also affect the non-live migration process.

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Looks like a valid solution will be to fix post install action for nova-common package.

Changed in fuel:
status: Fix Committed → Confirmed
assignee: Dmitry Borodaenko (dborodaenko) → Fuel OSCI Team (fuel-osci)
Revision history for this message
Mike Scherbakov (mihgen) wrote :

Reassigned to mos-nova, as specs for particular component are under corresponding team.

Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → MOS Nova (mos-nova)
Revision history for this message
slava valyavskiy (slava-val-al) wrote :

We can use temporary workaround - http://paste.openstack.org/show/137428/

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.