Change in vdsm[ovirt-3.5]: vm: split migration completion in smaller methods

fromani at redhat.com fromani at redhat.com
Fri Aug 22 15:07:10 UTC 2014


Francesco Romani has posted comments on this change.

Change subject: vm: split migration completion in smaller methods
......................................................................


Patch Set 2: Verified+1

Verified with 31670 and 31671. Migrated a VM back and fortha  few times.

Exceprt from the patched VDSM logs showing a succesfull plain migration:

Thread-37::DEBUG::2014-08-22 16:56:58,524::BindingXMLRPC::1127::vds::(wrapper) client [192.168.1.48]::call vmMigrationCreate with ({'guestFQDN': '', 'acpiEnable': 'true', 'emulatedMachine': 'rhel6.5.0', 'afterMigrationStatus': '', 'vmId': '56d1c657-dd76-4609-a207-c050699be5be',

Thread-37::DEBUG::2014-08-22 16:56:58,524::API::546::vds::(migrationCreate) Migration create
Thread-37::INFO::2014-08-22 16:56:58,525::clientIF::390::vds::(createVm) vmContainerLock acquired by vm 56d1c657-dd76-4609-a207-c050699be5be
Thread-37::DEBUG::2014-08-22 16:56:58,530::clientIF::403::vds::(createVm) Total desktops after creation of 56d1c657-dd76-4609-a207-c050699be5be is 1
Thread-38::DEBUG::2014-08-22 16:56:58,530::vm::2264::vm.Vm::(_startUnderlyingVm) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::Start
Thread-37::DEBUG::2014-08-22 16:56:58,530::vm::5522::vm.Vm::(waitForMigrationDestinationPrepare) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::migration destination: waiting for VM creation
Thread-38::DEBUG::2014-08-22 16:56:58,530::vm::2268::vm.Vm::(_startUnderlyingVm) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::_ongoingCreations acquired
Thread-38::INFO::2014-08-22 16:56:58,531::vm::3277::vm.Vm::(_run) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::VM wrapper has started

Thread-38::DEBUG::2014-08-22 16:56:58,674::vm::1072::vm.Vm::(__init__) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::Ignoring param (target, 4194304) in BalloonDevice
Thread-38::DEBUG::2014-08-22 16:56:58,675::vm::2294::vm.Vm::(_startUnderlyingVm) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::_ongoingCreations released
Thread-38::DEBUG::2014-08-22 16:56:58,676::vm::3999::vm.Vm::(_waitForUnderlyingMigration) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::Waiting 21600 seconds for end of migration
Thread-37::DEBUG::2014-08-22 16:56:58,681::API::559::vds::(migrationCreate) Destination VM creation succeeded

libvirtEventLoop::DEBUG::2014-08-22 16:56:59,348::vm::5435::vm.Vm::(_onLibvirtLifecycleEvent) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::event Started detail 1 opaque None
Thread-15::DEBUG::2014-08-22 16:56:59,470::BindingXMLRPC::1134::vds::(wrapper) return vmGetStats with {'status': {'message': 'Done', 'code': 0}, 'statsList': [{'status': 'Migration Destination', 'displayInfo': [{'tlsPort': '-1', 'ipAddress': '192.168.1.40', 'type': 'spice', 'port': '5900'}], 'hash': '0', 'acpiEnable': 'true', 'pid': '0', 'displayIp': '192.168.1.40', 'displayPort': '-1', 'displaySecurePort': '-1', 'timeOffset': '0', 'pauseCode': 'NOERR', 'kvmEnable': 'true', 'network': {}, 'vmId': '56d1c657-dd76-4609-a207-c050699be5be', 'vmType': 'kvm', 'disks': {}, 'monitorResponse': '0', 'elapsedTime': '143', 'displayType': 'qxl', 'clientIp': ''}]}

ibvirtEventLoop::DEBUG::2014-08-22 16:57:18,940::vm::5435::vm.Vm::(_onLibvirtLifecycleEvent) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::event Resumed detail 0 opaque None
libvirtEventLoop::DEBUG::2014-08-22 16:57:18,941::vm::5435::vm.Vm::(_onLibvirtLifecycleEvent) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::event Resumed detail 1 opaque None

Thread-38::DEBUG::2014-08-22 16:57:18,999::vm::3995::vm.Vm::(_completeIncomingMigration) vmId=`56d1c657-dd76-4609-a207-c050699be5be`::End of migration

Thread-15::DEBUG::2014-08-22 16:57:20,862::BindingXMLRPC::1127::vds::(wrapper) client [192.168.1.64]::call vmGetStats with ('56d1c657-dd76-4609-a207-c050699be5be',) {} flowID [2227209a]
Thread-15::DEBUG::2014-08-22 16:57:20,863::BindingXMLRPC::1134::vds::(wrapper) return vmGetStats with {'status': {'message': 'Done', 'code': 0}, 'statsList': [{'status': 'Up', 'displayInfo': [{'tlsPort': '-1', 'ipAddress': '192.168.1.40', 'type': 'spice', 'port': u'5900'}], 'hash': '-2847617701147730535', 'acpiEnable': 'true', 'guestFQDN': '', 'pid': '23329', 'displayIp': '192.168.1.40', 'displayPort': u'5900', 'session': 'Unknown', 'displaySecurePort': '-1', 'timeOffset': '-21', 'memUsage': '0', 'balloonInfo': {'balloon_max': '4194304', 'balloon_target': '4194304', 'balloon_cur': '0', 'balloon_min': '2097152'}, 'clientIp': '', 'elapsedTime': '164', 'kvmEnable': 'true', 'network': {}, 'vmId': '56d1c657-dd76-4609-a207-c050699be5be', 'vmType': 'kvm', 'cpuUser': '0.00', 'disks': {u'vda': {'readLatency': '0', 'apparentsize': '7516192768', 'writeLatency': '0', 'imageID': 'd5ed26d5-3d35-4ef8-b52c-a65d99e12ad0', 'flushLatency': '0', 'truesize': '7516192768'}, u'hdc': {'flushLatency!
 ': '0', 'readLatency': '0', 'truesize': '0', 'apparentsize': '0', 'writeLatency': '0'}}, 'monitorResponse': '0', 'statsAge': '1.88', 'username': 'Unknown', 'displayType': 'qxl', 'cpuSys': '0.00', 'guestCPUCount': -1, 'appsList': [], 'guestIPs': ''}]}

-- 
To view, visit http://gerrit.ovirt.org/31669
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic469814afc607951870f4171499cef958855fc54
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: No


More information about the vdsm-patches mailing list