diff options
| author | Naveed Massjouni <naveedm9@gmail.com> | 2011-11-30 12:29:37 -0500 |
|---|---|---|
| committer | Naveed Massjouni <naveedm9@gmail.com> | 2011-12-02 00:04:54 -0500 |
| commit | 9dbcd8bbc742ab14d40aef60c9cacb25e6909988 (patch) | |
| tree | 84575258eb0b44c4d920200a9592a5619ee7a1eb /plugins | |
| parent | 8c29803bb9756ad1a9d2fc6a43ca078588a3c9aa (diff) | |
| download | nova-9dbcd8bbc742ab14d40aef60c9cacb25e6909988.tar.gz nova-9dbcd8bbc742ab14d40aef60c9cacb25e6909988.tar.xz nova-9dbcd8bbc742ab14d40aef60c9cacb25e6909988.zip | |
Replacing instance id's in in xenapi.vmops and the xen plugin with
instance uuids. The only references to instance id's left are calls to
the wait_for_task() method. I will address that in another branch.
blueprint: internal-uuids
Change-Id: I268706f2429e47195a97054187ff7da8c55e3719
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/xenapi/etc/xapi.d/plugins/migration | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration index 4ec3dc7af..19b5e98e8 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration @@ -35,7 +35,7 @@ configure_logging('migration') def move_vhds_into_sr(session, args): """Moves the VHDs from their copied location to the SR""" params = pickle.loads(exists(args, 'params')) - instance_id = params['instance_id'] + instance_uuid = params['instance_uuid'] old_base_copy_uuid = params['old_base_copy_uuid'] old_cow_uuid = params['old_cow_uuid'] @@ -48,12 +48,12 @@ def move_vhds_into_sr(session, args): # Discover the copied VHDs locally, and then set up paths to copy # them to under the SR - source_image_path = "/images/instance%d" % instance_id + source_image_path = "/images/instance%s" % instance_uuid source_base_copy_path = "%s/%s.vhd" % (source_image_path, old_base_copy_uuid) source_cow_path = "%s/%s.vhd" % (source_image_path, old_cow_uuid) - temp_vhd_path = "%s/instance%d/" % (sr_temp_path, instance_id) + temp_vhd_path = "%s/instance%s/" % (sr_temp_path, instance_uuid) new_base_copy_path = "%s/%s.vhd" % (temp_vhd_path, new_base_copy_uuid) new_cow_path = "%s/%s.vhd" % (temp_vhd_path, new_cow_uuid) @@ -89,14 +89,14 @@ def move_vhds_into_sr(session, args): def transfer_vhd(session, args): """Rsyncs a VHD to an adjacent host""" params = pickle.loads(exists(args, 'params')) - instance_id = params['instance_id'] + instance_uuid = params['instance_uuid'] host = params['host'] vdi_uuid = params['vdi_uuid'] sr_path = params['sr_path'] vhd_path = "%s.vhd" % vdi_uuid source_path = "%s/%s" % (sr_path, vhd_path) - dest_path = '%s:/images/instance%d/' % (host, instance_id) + dest_path = '%s:/images/instance%s/' % (host, instance_uuid) logging.debug("Preparing to transmit %s to %s" % (source_path, dest_path)) |
