Ask Your Question
0

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

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

HK gravatar image

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

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
1

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

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: http://docs.openstack.org/admin-guide...

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 393 times

Last updated: Apr 06 '15