Ask Your Question
0

Hypervisors overview issue

asked 2015-12-13 03:09:04 -0500

nag gravatar image

updated 2015-12-14 01:05:23 -0500

Bipin gravatar image

In all hypervisors list.. The local disk usage space is showing 524GB Of 294 GB .. Which is more than full. Actually I haven't used that space.. There is a bug, how to correct this ??

[root@controller ~]# nova host-describe compute1**
+----------+------------+-----+-----------+---------+
| HOST     | PROJECT    | cpu | memory_mb | disk_gb |
+----------+------------+-----+-----------+---------+
| compute1 | (total)    | 24  | 64384     | 49      |
| compute1 | (used_now) | 0   | 512       | 0       |
| compute1 | (used_max) | 0   | 0         | 0       |
+----------+------------+-----+-----------+---------+



[root@controller ~]# nova host-describe compute2
+----------+----------------------------------+-----+-----------+---------+
| HOST     | PROJECT                          | cpu | memory_mb | disk_gb |
+----------+----------------------------------+-----+-----------+---------+
| compute2 | (total)                          | 40  | 193406    | 49      |
| compute2 | (used_now)                       | 8   | 16896     | 160     |
| compute2 | (used_max)                       | 8   | 16384     | 160     |
| compute2 | 7e1b420268fb4f14a3d63e534d1f6f9a | 4   | 8192      | 80      |
| compute2 | 87900bbd2c3c43daa1a1413713df0ee9 | 4   | 8192      | 80      |
+----------+----------------------------------+-----+-----------+---------+
[root@controller ~]# nova host-describe compute3
+----------+----------------------------------+-----+-----------+---------+
| HOST     | PROJECT                          | cpu | memory_mb | disk_gb |
+----------+----------------------------------+-----+-----------+---------+
| compute3 | (total)                          | 40  | 193234    | 49      |
| compute3 | (used_now)                       | 10  | 20992     | 200     |
| compute3 | (used_max)                       | 10  | 20480     | 200     |
| compute3 | f98beabfe4024bb4bb2bbc9954558979 | 4   | 8192      | 80      |
| compute3 | 7e1b420268fb4f14a3d63e534d1f6f9a | 2   | 4096      | 40      |
| compute3 | 87900bbd2c3c43daa1a1413713df0ee9 | 4   | 8192      | 80      |
+----------+----------------------------------+-----+-----------+---------+

[root@controller ~]# nova host-describe compute4
+----------+----------------------------------+-----+-----------+---------+
| HOST     | PROJECT                          | cpu | memory_mb | disk_gb |
+----------+----------------------------------+-----+-----------+---------+
| compute4 | (total)                          | 40  | 193406    | 49      |
| compute4 | (used_now)                       | 9   | 14336     | 123     |
| compute4 | (used_max)                       | 9   | 13824     | 123     |
| compute4 | 7e1b420268fb4f14a3d63e534d1f6f9a | 2   | 4096      | 40      |
| compute4 | 87900bbd2c3c43daa1a1413713df0ee9 | 7   | 9728      | 83      |
+----------+----------------------------------+-----+-----------+---------+

[root@controller ~]# nova host-describe compute5
+----------+----------------------------------+-----+-----------+---------+
| HOST     | PROJECT                          | cpu | memory_mb | disk_gb |
+----------+----------------------------------+-----+-----------+---------+
| compute5 | (total)                          | 40  | 193234    | 49      |
| compute5 | (used_now)                       | 7   | 13312     | 121     |
| compute5 | (used_max)                       | 7   | 12800     | 121     |
| compute5 | 7e1b420268fb4f14a3d63e534d1f6f9a | 2   | 4096      | 40      |
| compute5 | 87900bbd2c3c43daa1a1413713df0ee9 | 5   | 8704      | 81      |
+----------+----------------------------------+-----+-----------+---------+
[root@controller ~]# nova host-describe compute7
+----------+------------+-----+-----------+---------+
| HOST     | PROJECT    | cpu | memory_mb | disk_gb |
+----------+------------+-----+-----------+---------+
| compute7 | (total)    | 24  | 64220     | 49      |
| compute7 | (used_now) | 0   | 512       | 0       |
| compute7 | (used_max) | 0   | 0         | 0       |
+----------+------------+-----+-----------+---------+





[root@controller ~]# nova hypervisor-show compute1**
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                  | Value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| cpu_info_arch             | x86_64                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| cpu_info_features         | ["pge", "avx", "clflush", "sep", "syscall", "vme", "dtes64", "msr", "xsave", "vmx", "xtpr", "cmov", "ssse3", "est", "pat", "monitor", "smx", "pbe", "lm", "tsc", "nx", "fxsr", "tm", "sse4.1", "pae", "sse4.2", "pclmuldq", "acpi", "tsc-deadline", "mmx", "osxsave", "cx8", "mce", "de", "tm2", "ht", "dca", "lahf_lm", "pdcm", "mca", "pdpe1gb", "apic", "sse", "pse", "ds", "invtsc", "pni", "rdtscp", "aes", "sse2", "ss", "ds_cpl", "pcid", "fpu", "cx16", "pse36", "mtrr", "popcnt", "x2apic"] |
| cpu_info_model            | SandyBridge                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| cpu_info_topology_cores   | 6                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| cpu_info_topology_sockets | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| cpu_info_topology_threads | 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| cpu_info_vendor           | Intel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| current_workload          | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| disk_available_least      | 45                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| free_disk_gb              | 49                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| free_ram_mb               | 63872                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| host_ip                   | 10.10.11.32                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| hypervisor_hostname       | compute1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| hypervisor_type           | QEMU                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| hypervisor_version        | 1005003                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| id                        | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| local_gb                  | 49                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| local_gb_used             | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| memory_mb                 | 64384                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| memory_mb_used            | 512                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| running_vms               | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| service_disabled_reason   | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| service_host              | compute1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| service_id                | 5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| state                     | up                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| status                    | enabled                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| vcpus                     | 24                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| vcpus_used                | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+


[root@controller ~]# nova hypervisor-show compute2
+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                  | Value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| cpu_info_arch             | x86_64                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| cpu_info_features         | ["pge", "avx", "clflush", "sep", "syscall", "vme", "dtes64", "msr", "fsgsbase", "xsave", "vmx", "erms", "xtpr", "cmov", "smep", "ssse3", "est", "pat", "monitor", "smx", "pbe", "lm", "tsc", "nx", "fxsr", "tm", "sse4.1", "pae", "sse4.2", "pclmuldq", "acpi", "tsc-deadline", "mmx", "osxsave", "cx8", "mce", "de", "tm2", "ht", "dca", "lahf_lm", "popcnt", "mca", "pdpe1gb", "apic", "sse", "f16c", "pse", "ds", "invtsc", "pni", "rdtscp", "aes", "sse2", "ss", "ds_cpl", "pcid", "fpu", "cx16", "pse36", "mtrr", "pdcm", "rdrand", "x2apic"] |
| cpu_info_model            | SandyBridge                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| cpu_info_topology_cores   | 10                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| cpu_info_topology_sockets | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| cpu_info_topology_threads | 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| cpu_info_vendor           | Intel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| current_workload          | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| disk_available_least      | -121                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| free_disk_gb              | -111                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| free_ram_mb               | 176510                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| host_ip                   | 10.10.11.36                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| hypervisor_hostname       | compute2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| hypervisor_type           | QEMU                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| hypervisor_version        | 1005003                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| id                        | 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| local_gb                  | 49                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| local_gb_used             | 160                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| memory_mb                 | 193406                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| memory_mb_used            | 16896                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| running_vms               | 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| service_disabled_reason   | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| service_host              | compute2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| service_id                | 7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| state                     | up                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| status                    | enabled                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| vcpus                     | 40                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| vcpus_used                | 8                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@controller ~]#
So on…
edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2015-12-13 18:49:16 -0500

nag gravatar image

updated 2015-12-13 23:47:58 -0500

image description

edit flag offensive delete link more

Comments

This is my issue.. how to solve this.

nag gravatar imagenag ( 2015-12-13 18:49:43 -0500 )edit

Please give output of nova host-describe <hypervisor-name> and nova hypervisor-show <hypervisor-name>

Bipin gravatar imageBipin ( 2015-12-13 22:08:33 -0500 )edit

Please find the output details above,

Thanks.

nag gravatar imagenag ( 2015-12-14 00:42:33 -0500 )edit

Question is are you able to spin up new Virtual Machines ? If yes, thats could be a bug in the Horizon.

Bipin gravatar imageBipin ( 2015-12-14 01:07:09 -0500 )edit

yes i could log spin new vm..how should i find the bug ?

nag gravatar imagenag ( 2015-12-14 12:08:27 -0500 )edit
0

answered 2015-12-14 22:26:57 -0500

Bipin gravatar image

This could solve your issue, try this first nova-manage project quota refresh. Still not solved, do the following

mysql -u nova -p<password> nova
select * from quota_usages;
update quota_usages set in_use='-1' where project_id='<my project id>';

Regards

edit flag offensive delete link more
0

answered 2015-12-14 22:43:19 -0500

Prateek K gravatar image

updated 2015-12-15 03:23:19 -0500

what I can figure out is by default when we spin up VM's in openstack the disk is always thin-provisioned i.e. if I create a VM having a disk of 200GB then it will not create a QEMU/KVM disk of 200GB for the instance, but rather it will increase the size of the file which is the disk of the VM as and when it starts getting occupied.

Even I am running the latest Mitaka release and was able to create 3 VM's having hard disk of 500GB each but my compute node had only 120GB of physical hard disk :P .

Now the question is weather to treat this as a bug or not as issue will not be at this point of time but say in my case when the VM's actually start occupying the space then they would need a total of 1.5TB of space (500GB for each VM)...which would ultimately fail as the actual space is only 120GB ...

See in my case as well image description

One solution is to always create VM's having a thick provisioned disk where the amount of Hard disk size will be preallocated weather is again not a best idea

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-12-13 03:09:04 -0500

Seen: 231 times

Last updated: Dec 15 '15