Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How does an instance with flavor m1.nano (disk = 0, RAM =64) has disk.usage >0 ?

I have installed devstack kilo version of OpenStack and created an instance on it with flavor “m1.nano” that gives a disk of 0 to your instance.

But while checking disk usage of the instance using “disk.usage” meter it gives the output to be greater than 0 so how is it possible ?

stack@abhishek:/opt/stack/ceilometer$ nova show e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa +--------------------------------------+----------------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------------+ | OS-DCF:diskConfig | AUTO | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | tcs-HP-Compaq-Elite-8300-SFF | | OS-EXT-SRV-ATTR:hypervisor_hostname | tcs-HP-Compaq-Elite-8300-SFF | | OS-EXT-SRV-ATTR:instance_name | instance-00000002 | | OS-EXT-STS:power_state | 1 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2015-09-10T05:24:19.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | True | | created | 2015-09-10T05:24:10Z | | flavor | m1.nano (42) | | hostId | 4a3e03e0a89fbf3790a1b1cd59b1b10acbaad6aa31a4361996d52440 | | id | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | | image | cirros-0.3.2-x86_64-uec (221c46b3-9619-485e-8f60-0e1a363fc0e5) | | key_name | - | | metadata | {} | | name | vmssasa | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | public network | 172.24.4.4 | | security_groups | default | | status | ACTIVE | | tenant_id | 5f4f5ee531a441d7bb3830529e611c7d | | updated | 2015-09-10T05:24:19Z | | user_id | d04b218204414a1891646735befd449c | +--------------------------------------+----------------------------------------------------------------+

stack@abhishek:/opt/stack/ceilometer$ nova flavor-show m1.nano +----------------------------+---------+ | Property | Value | +----------------------------+---------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | disk | 0 | | extra_specs | {} | | id | 42 | | name | m1.nano | | os-flavor-access:is_public | True | | ram | 64 | | rxtx_factor | 1.0 | | swap | | | vcpus | 1 | +----------------------------+---------+

stack@abhishek:/opt/stack/ceilometer$ ceilometer sample-list -m 'cpu_util' -q "resource_id=e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa" +--------------------------------------+------------+-------+------------+------+---------------------+ | Resource ID | Name | Type | Volume | Unit | Timestamp | +--------------------------------------+------------+-------+------------+------+---------------------+ | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:30:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:20:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:10:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:00:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:48:25 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:38:25 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:21:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:11:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:01:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:51:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:41:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:31:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:21:42 |

+--------------------------------------+------------+-------+------------+------+---------------------+

How does an instance with flavor m1.nano (disk = 0, RAM =64) has disk.usage >0 ?

I have installed devstack kilo version of OpenStack and created an instance on it with flavor “m1.nano” that gives a disk of 0 to your instance.

But while checking disk usage of the instance using “disk.usage” meter it gives the output to be greater than 0 so how is it possible ?

stack@abhishek:/opt/stack/ceilometer$

**stack@abhishek:/opt/stack/ceilometer$ nova show e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa**
+--------------------------------------+----------------------------------------------------------------+
| Property                             | Value                                                          |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig                    | AUTO                                                           |
| OS-EXT-AZ:availability_zone          | nova                                                           |
| OS-EXT-SRV-ATTR:host                 | tcs-HP-Compaq-Elite-8300-SFF                                   |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | tcs-HP-Compaq-Elite-8300-SFF                                   |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000002                                              |
| OS-EXT-STS:power_state               | 1                                                              |
| OS-EXT-STS:task_state                | -                                                              |
| OS-EXT-STS:vm_state                  | active                                                         |
| OS-SRV-USG:launched_at               | 2015-09-10T05:24:19.000000                                     |
| OS-SRV-USG:terminated_at             | -                                                              |
| accessIPv4                           |                                                                |
| accessIPv6                           |                                                                |
| config_drive                         | True                                                           |
| created                              | 2015-09-10T05:24:10Z                                           |
| flavor                               | m1.nano (42)                                                   |
| hostId                               | 4a3e03e0a89fbf3790a1b1cd59b1b10acbaad6aa31a4361996d52440       |
| id                                   | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa                           |
| image                                | cirros-0.3.2-x86_64-uec (221c46b3-9619-485e-8f60-0e1a363fc0e5) |
| key_name                             | -                                                              |
| metadata                             | {}                                                             |
| name                                 | vmssasa                                                        |
| os-extended-volumes:volumes_attached | []                                                             |
| progress                             | 0                                                              |
| public network                       | 172.24.4.4                                                     |
| security_groups                      | default                                                        |
| status                               | ACTIVE                                                         |
| tenant_id                            | 5f4f5ee531a441d7bb3830529e611c7d                               |
| updated                              | 2015-09-10T05:24:19Z                                           |
| user_id                              | d04b218204414a1891646735befd449c                               |
+--------------------------------------+----------------------------------------------------------------+

+--------------------------------------+----------------------------------------------------------------+

stack@abhishek:/opt/stack/ceilometer$ **stack@abhishek:/opt/stack/ceilometer$ nova flavor-show m1.nanom1.nano** +----------------------------+---------+ | Property | Value | +----------------------------+---------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | disk | 0 | | extra_specs | {} | | id | 42 | | name | m1.nano | | os-flavor-access:is_public | True | | ram | 64 | | rxtx_factor | 1.0 | | swap | | | vcpus | 1 | +----------------------------+---------+ +----------------------------+---------+ | Property | Value | +----------------------------+---------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | disk | 0 | | extra_specs | {} | | id | 42 | | name | m1.nano | | os-flavor-access:is_public | True | | ram | 64 | | rxtx_factor | 1.0 | | swap | | | vcpus | 1 | +----------------------------+---------+

stack@abhishek:/opt/stack/ceilometer$ **stack@abhishek:/opt/stack/ceilometer$ ceilometer sample-list -m 'cpu_util' -q "resource_id=e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa""resource_id=e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa"** +--------------------------------------+------------+-------+------------+------+---------------------+ | Resource ID | Name | Type | Volume | Unit | Timestamp | +--------------------------------------+------------+-------+------------+------+---------------------+ | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:30:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:20:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:10:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:00:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:48:25 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:38:25 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:21:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:11:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:01:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:51:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:41:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:31:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:21:42 | +--------------------------------------+------------+-------+------------+------+---------------------+ | Resource ID | Name | Type | Volume | Unit | Timestamp | +--------------------------------------+------------+-------+------------+------+---------------------+ | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:30:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:20:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:10:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T10:00:54 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:48:25 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:38:25 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:21:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:11:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T09:01:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:51:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:41:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:31:42 | | e3fd6b56-25df-4498-aa9d-8d9af3dfb4fa | disk.usage | gauge | 11112448.0 | B | 2015-09-10T08:21:42 |

+--------------------------------------+------------+-------+------------+------+---------------------+