Bug 1472723
Summary: | Nova resize fails despite of openstack-nova-migration package being present on the compute nodes | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Punit Kundal <pkundal> | |
Component: | openstack-nova | Assignee: | Ollie Walsh <owalsh> | |
Status: | CLOSED ERRATA | QA Contact: | Archit Modi <amodi> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.0 (Kilo) | CC: | amodi, awaugama, berrange, cshastri, dasmith, dmacpher, eglynn, jraju, kchamart, mbooth, mschuppe, owalsh, pneedle, sbauza, sclewis, sferdjao, sgordon, srevivo, vromanso | |
Target Milestone: | zstream | Keywords: | Triaged, ZStream | |
Target Release: | 7.0 (Kilo) | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | openstack-nova-2015.1.4-45.el7ost | Doc Type: | Bug Fix | |
Doc Text: |
This fix updates the whitelist for certain SSH commands used during instance migration.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1481389 1481393 (view as bug list) | Environment: | ||
Last Closed: | 2017-10-19 18:19:51 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1267598, 1474982, 1481389, 1481393 |
Description
Punit Kundal
2017-07-19 09:23:27 UTC
I just checked resizing an instance on OSP10 setup without setting up ssh tunneling, and the resize works without any issue. The issue here is that we're not whitelisting the correct scp command for OSP8. We can see from the logs (if you squint through the capitalisation) that the executed command is: SCP /VAR/LIB/NOVA/INSTANCES/ECDD4F8B-C0E5-48B1-AD56-4F1A426A7123_RESIZE/DISK 192.0.2.21:/VAR/LIB/NOVA/INSTANCES/ECDD4F8B-C0E5-48B1-AD56-4F1A426A7123/DISK The nova_migration user is configured to pass ssh commands through nova-migration-wrapper, installed by openstack-nova-migration. This whitelists: ['scp', '-r', '-t'] This fails because the '-r', and '-t' options are missing, and the wrapper responds 'Forbidden'. The -r argument has been present since version 14 (Newton, OSP 10). I can't see that the -t argument has ever been present, so either I'm looking in the wrong place or this has never worked for any version of OSP. We need to fix the whitelisting in nova-migration-wrapper, and update it appropriately for all OSP versions. Ignore the -t option, it's the hidden option that scp appends on the target side. i.e to allow scp <foo> <bar> we need to whitelist scp -t .... on the migration target host. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2994 |