Bug 842136 - [nova][RFE][Resize|Migrate][preformance] avoid ssh/scp on shared nova-lib dir.
Summary: [nova][RFE][Resize|Migrate][preformance] avoid ssh/scp on shared nova-lib dir.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 1.0 (Essex)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Upstream M3
: 4.0
Assignee: Brent Eagles
QA Contact: Yogev Rabl
URL:
Whiteboard: storage
Depends On:
Blocks: RHOS40RFE
TreeView+ depends on / blocked
 
Reported: 2012-07-22 13:41 UTC by David Naori
Modified: 2019-09-09 16:10 UTC (History)
9 users (show)

Fixed In Version: openstack-nova-2013.2-0.8.b2.el6ost
Doc Type: Enhancement
Doc Text:
With this update, migration operations will not attempt to copy data when the specified source and destination are the same filesystem location. This is due to the consideration that recopying the data would be inefficient and may risk corrupting the file.
Clone Of:
Environment:
Last Closed: 2013-12-19 23:53:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1177247 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description David Naori 2012-07-22 13:41:36 UTC
Description of problem:
nova should avoid ssh/scp when Resizing/Migrating to remote host with shared nova-lib directory

it can use check_shared_storage_test_file to indicate if its on shared storage or not and act differently.

log:
ssh 10.35.77.4 mkdir -p /mnt/nova-lib/instances/instance-00000174 from (pid=14823) execute /
usr/lib/python2.6/site-packages/nova/utils.py:220

scp /mnt/nova-lib/instances/instance-00000174_resize/disk_rbase 10.35.77.4:/mnt/nova-lib/instances/instance-00000174/disk from (pid=14823) execute /usr/lib/python2.6/site-packages/nova/utils.py:220

Version-Release number of selected component (if applicable):
openstack-nova-2012.1.1-4.el6.noarch

Comment 1 Pádraig Brady 2012-07-23 09:26:21 UTC
Yep should look into this in detail.
rsync might mitigate somewhat, though that might be foiled by the
mv ... ..._resize operation done on the directory.

Comment 2 Nikola Dipanov 2012-12-13 15:54:37 UTC
Moving this to Grizzly as we have

Comment 3 Nikola Dipanov 2012-12-13 15:55:33 UTC
... shipped Folsom and we won't be adding any features to it.

Comment 5 Brent Eagles 2013-09-05 20:29:06 UTC
It looks like the fix landed in havana-1 and was backported to Grizzly (d34d4cacf7b20f72c67f7873dcf2c372abc60ecd).

Change-Id: Ie9decedd373c000211c171df64e1e96fe78e5081

Comment 11 errata-xmlrpc 2013-12-19 23:53:14 UTC
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.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


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