How to call openstack-api from server to perform migration of VM from one host to another ?

asked 2015-04-06 12:30:39 -0600

HK gravatar image

updated 2015-04-06 12:31:04 -0600

I am using CentOS 7 and have installed openstack using packstack answer-file. My openstack configuration has one controller node and two compute nodes.

I want to put a code which will see Nagios data and when cpu is less than 20%, migrate the vm to another host and shutdown the kvm host.

I want to put this code outside openstack such that i am able to run it from the server and call openstack api's to perform operations. Can someone suggest how this can be done ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-06 14:47:34 -0600

All you need is to installs the python-novaclient on your Nagios host and then have Nagios call nova migrate to live migrate the instances.

There is a document that describes the process of live migration:

You can install the the nova client via yum install python-novaclient.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-06 12:30:39 -0600

Seen: 438 times

Last updated: Apr 06 '15