Bug 1476332 - Live migration of instance with config disk fails in nova-migration-wrapper
Live migration of instance with config disk fails in nova-migration-wrapper
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova (Show other bugs)
10.0 (Newton)
Unspecified Unspecified
high Severity high
: zstream
: 7.0 (Kilo)
Assigned To: Ollie Walsh
Joe H. Rahme
: Regression, Triaged, ZStream
Depends On:
Blocks: 1481397 1481400 1481402 1481404
  Show dependency treegraph
Reported: 2017-07-28 12:16 EDT by Matthew Booth
Modified: 2017-10-19 14:19 EDT (History)
13 users (show)

See Also:
Fixed In Version: openstack-nova-2015.1.4-45.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1481397 1481400 1481402 1481404 (view as bug list)
Last Closed: 2017-10-19 14:19:51 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matthew Booth 2017-07-28 12:16:44 EDT
When live migrating an instance with a config disk, the destination copies the config disk from the source over scp. This is denied by nova-migration-wrapper with:

Jul 28 11:34:51 localhost nova_migration_wrapper: Denying connection=' 
33100 22' command=['scp', '-r', '-f', '/var/lib/nova/instances/2979904

Note that the scp command has '-f' in place of '-t'. I believe this is because this is a remote to local copy, not a local to remote copy:


We also do remote to local copies during both cold and live migration when a backing file is missing because an image has been deleted from glance. In this case the destination host side-loads the file from the image cache of the source host. I suspect this issue means that this case is also broken.
Comment 1 Matthew Booth 2017-07-28 12:52:20 EDT

/bin/nova-migration-wrapper gets:

  cold_migration_cmds = [
      ['mkdir', '-p'],
      ['rm', '-rf'],
      ['scp', '-r', '-t'],
+     ['scp', '-r', '-f'],

/etc/nova/migration/rootwrap.d/cold_migration.filters gets:

  copy_file: PathFilter, /usr/bin/scp, nova, -r, -t, /var/lib/nova/instances/
+ copy_file: PathFilter, /usr/bin/scp, nova, -r, -f, /var/lib/nova/instances/
Comment 6 errata-xmlrpc 2017-10-19 14:19:51 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.