RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1229301 - used_now is really used_max, and used_max is really used_now in "nova host-describe"
Summary: used_now is really used_max, and used_max is really used_now in "nova host-de...
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-nova
Version: trunk
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: Eoghan Glynn
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-08 12:19 UTC by Udi Kalifon
Modified: 2016-05-19 15:38 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:38:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Udi Kalifon 2015-06-08 12:19:57 UTC
Description of problem:
I ran "nova host-describe" on a host before and after migrating an instance from it. Here are the outputs:

[stack@instack ~]$ nova host-describe ov-uugkso3o5k-2-exzf5z7st6mi-novacompute-pvxogl3jlxyu.novalocal
+-----------+----------------------------------+-----+-----------+---------+
| HOST      | PROJECT                          | cpu | memory_mb | disk_gb |                         
+-----------+----------------------------------+-----+-----------+---------+
| ov-uug... | (total)                          | 1   | 3791      | 40      |
| ov-uug... | (used_now)                       | 1   | 2560      | 20      |
| ov-uug... | (used_max)                       | 1   | 2048      | 20      |
| ov-uug... | bf656a59ae0949e99659f525e277ff48 | 1   | 2048      | 20      |
+-----------+----------------------------------+-----+-----------+---------+
[stack@instack ~]$ nova host-describe ov-uugkso3o5k-2-exzf5z7st6mi-novacompute-pvxogl3jlxyu.novalocal
+-----------+------------+-----+-----------+---------+
| HOST      | PROJECT    | cpu | memory_mb | disk_gb |
+-----------+------------+-----+-----------+---------+
| ov-uug... | (total)    | 1   | 3791      | 40      |
| ov-uug... | (used_now) | 1   | 2560      | 20      |
| ov-uug... | (used_max) | 0   | 0         | 0       |
+-----------+------------+-----+-----------+---------+

Notice that used_max went down, and used_now is always higher than used_max. It seems like they are displayed backwards.


Version-Release number of selected component (if applicable):
python-novaclient-2.23.0-1.el7ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Run "nova host-describe" on hosts before and after instances are running on them


Actual results:
used_max and used_now don't make sense, and seem to be mixed up

Comment 1 Chandan Kumar 2016-05-19 15:38:07 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.


Note You need to log in before you can comment on or make changes to this bug.