yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #51207
[Bug 1325304] Re: hypervisors.staticstics().running_vms count includes shutdown vms
This wishlist bug has been open a year without any activity. I'm going
to move it to "Opinion / Wishlist", which is an easily-obtainable queue
of older requests that have come on. If you decide to work on this
consider using a blueprint [1] (maybe with a spec [2]). I'll recommend to
read [3] if not yet done.
References:
[1] https://blueprints.launchpad.net/nova/
[2] https://github.com/openstack/nova-specs
[3] https://wiki.openstack.org/wiki/Blueprints
** Changed in: nova
Status: Confirmed => Opinion
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1325304
Title:
hypervisors.staticstics().running_vms count includes shutdown vms
Status in OpenStack Compute (nova):
Opinion
Status in python-novaclient:
Invalid
Bug description:
Nova client reports:
In [13]: from novaclient.v1_1 import client
In [14]: from django.conf import settings
In [15]: nt = client.Client(settings.OS_USERNAME, settings.OS_PASSWORD,
settings.OS_TENANT_NAME, settings.OS_AUTH_URL,
service_type="compute")
In [16]: nt.hypervisors.statistics().running_vms
Out[16]: 12
DB reports:
mysql> select hostname, availability_zone, vm_state from instances where vm_state != 'deleted';
+----------------+-------------------+----------+
| hostname | availability_zone | vm_state |
+----------------+-------------------+----------+
| js1 | nova | active |
| js2 | nova | active |
| js3 | nova | active |
| cirros1 | nova | stopped |
| js4 | nova | stopped |
| js5 | nova | stopped |
| jstest1east | east-zone | stopped |
| jstest1west | NULL | active |
| randgen-mpv8sw | NULL | active |
| randgen-fbjk98 | NULL | stopped |
| randgen-tvcl9t | NULL | active |
| stratus | NULL | active |
+----------------+-------------------+----------+
12 rows in set (0.00 sec)
Either the field name is misleading, or the data is not being filtered
properly. As a suggestion, it would be nice to have a total and
running vm count.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1325304/+subscriptions