[Users] Getting ovirt to update VMs to "Up" state sooner

Andrey F. ma3oxuct at gmail.com
Thu Jun 7 02:23:15 UTC 2012


Hi everybody,

We are trying to optimize our continuous integration system around our
ovirt-management software (i.e. we call into the ovirt apis to create VMs,
do funny stuff with the VMs, etc.). For our tests, we deployed a VM that
boots extremely quickly (2 seconds) in hoping to speed up our tests.
Unfortunately, ovirt is not updating the state of the VM to "Up" as fast as
we'd like. VDSM show the following in the logs:

Thread-420807::DEBUG::2012-06-06 22:14:47,662::clientIF::54::vds::(wrapper)
[10.225.52.7]::call *getVmStats *with
('e3b250c9-a5ca-42da-bd8f-245a3ef4bbfb',) {}
Thread-420807::DEBUG::2012-06-06
22:14:47,663::libvirtvm::222::vm.Vm::(_getDiskStats)
vmId=`e3b250c9-a5ca-42da-bd8f-245a3ef4bbfb`::*Disk stats not available
*Thread-420807::DEBUG::2012-06-06
22:14:47,663::libvirtvm::251::vm.Vm::(_getDiskLatency)
vmId=`e3b250c9-a5ca-42da-bd8f-245a3ef4bbfb`::*Disk latency not available
*Thread-420807::DEBUG::2012-06-06
22:14:47,663::clientIF::59::vds::(wrapper) return getVmStats with
{'status': {'message': 'Done', 'code': 0}, 'statsList': [{'status': 'Up',
'username': 'Unknown', 'memUsage': '0', 'acpiEnable': 'tru
e', 'pid': '32299', 'displayIp': '0', 'displayPort': u'5900', 'session':
'Unknown', 'displaySecurePort': u'5901', 'cdrom':
'/rhev/data-center/c861891c-7011-4209-9871-73c4b4e42560/b1ad8b2c-d2e1-479b-be2e-90fcbe446e86/images/11111111
-1111-1111-1111-111111111111/CorePlus-current.iso', 'pauseCode': 'NOERR',
'clientIp': '', 'kvmEnable': 'true', 'network': {u'vnet0': {'macAddr':
u'00:1a:4a:a8:7a:50', 'rxDropped': '0', 'rxErrors': '0', 'txDropped': '0',
'txRate': '
0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'unknown', 'speed':
'1000', 'name': u'vnet0'}}, 'vmId': 'e3b250c9-a5ca-42da-bd8f-245a3ef4bbfb',
'monitorResponse': '0', 'cpuUser': '0.00', 'disks': {u'vda':
{'readLatency': '0', 'app
arentsize': '1073741824', 'writeLatency': '0', 'imageID':
'38ffdd23-e16d-4cde-a384-3290450fe87f', 'flushLatency': '0', 'truesize':
'1073741824'}}, 'boot': 'c', 'statsAge': '1.81', 'cpuIdle': '100.00',
'elapsedTime': '61', 'vmType':
 'kvm', 'cpuSys': '0.00', 'timeOffset': '0', 'appsList': [], 'guestIPs':
'', 'displayType': 'qxl', 'nice': ''}]}

This repeats for about a minute until the VM is finally marked "Up". Is
there any trick we can do to get ovirt to mark the VM "Up" quicker? Perhaps
generate some sort of activity on the VM?

Thanks,
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20120606/a7de0056/attachment-0001.html>


More information about the Users mailing list