Ask Your Question
0

VM status keeps ACTIVE after its nova-compute host is powered off

asked 2013-08-06 07:51:53 -0600

kimi-zhangkai gravatar image

I am doing a test like this:

I launch a VM running on a nova-compute host, then I power off this nova-compute host, but after that, from nova-api, the VM status is always ACTIVE.

So it seems there's no way for end user to know the VM is actually DOWN via api since the status of the VM in DB is always ACTIVE, there's no mechanism to retrieve VM status actively and periodically ???

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-08-07 06:43:14 -0600

kimi-zhangkai gravatar image

Yes, agrees.

I'll post to mailing list.

edit flag offensive delete link more
0

answered 2013-08-07 06:34:21 -0600

gtt116 gravatar image

In this case, I'm agree with you.

Nova has ability to monitor the nova-compute's status. You can have a try: nova service-list the response will like: +------------------+-------------+----------+---------+-------+----------------------------+ | Binary | Host | Zone | Status | State | Updated_at | +------------------+-------------+----------+---------+-------+----------------------------+ | nova-conductor | tt-devstack | internal | enabled | up | 2013-08-07T06:30:16.000000 | | nova-compute | tt-devstack | az2,az | enabled | down | 2013-07-29T10:31:12.000000 | | nova-cert | tt-devstack | internal | enabled | up | 2013-08-07T06:30:18.000000 | | nova-network | tt-devstack | internal | enabled | up | 2013-08-07T06:30:10.000000 | | nova-scheduler | tt-devstack | internal | enabled | up | 2013-08-07T06:30:16.000000 | | nova-consoleauth | tt-devstack | internal | enabled | up | 2013-08-07T06:30:13.000000 | +------------------+-------------+----------+---------+-------+----------------------------+

But if Nova can set the VM's status in the dead host to some thing like 'ERROR' will be good. Maybe you can post the idea to mailist for more discuss :)

edit flag offensive delete link more
0

answered 2013-08-07 06:23:09 -0600

kimi-zhangkai gravatar image

Hi, Tiantian

Yes, external monitor is one way. But maybe nova server should be able to know the we lost the host, and do something with VM status, not just showing they are ACTIVE.

edit flag offensive delete link more
0

answered 2013-08-07 06:13:03 -0600

gtt116 gravatar image

Hi Kimi,

Actually, Nova will check the VMs' status in the host every 60 minutes. But the precondition is nova-compute in the host is running.

Because you power off the host, so no process will check the VM in this hosts. In my option, you should setup another service like (nagios, zabbix) to monitor the hosts' status.

Hoping help you.

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: 2013-08-06 07:51:53 -0600

Seen: 538 times

Last updated: Aug 07 '13