Merge "NSXT instance migration: Improve logging" into stable/ocata
This commit is contained in:
commit
4004103c06
|
@ -180,6 +180,10 @@ def instance_migrate(libvirt_conn, neutron, instance, machine_type,
|
|||
|
||||
devs = root.find('devices')
|
||||
ifaces = devs.findall('interface')
|
||||
|
||||
if not ifaces:
|
||||
LOG.debug('No interfaces to migrate for instance %s', instance_name)
|
||||
|
||||
for iface in ifaces:
|
||||
iface_migrate(neutron, instance_name, iface, nsx_switch)
|
||||
|
||||
|
@ -227,6 +231,9 @@ def main():
|
|||
exit(1)
|
||||
|
||||
instances = conn.listAllDomains()
|
||||
if not instances:
|
||||
LOG.debug('No instances to migrate')
|
||||
|
||||
for instance in instances:
|
||||
try:
|
||||
instance_migrate(conn, neutron, instance, opts.get('machine-type'),
|
||||
|
|
Loading…
Reference in New Issue