Skip to content

Instantly share code, notes, and snippets.

@a1git
Created May 18, 2021 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a1git/ce400f1084a184fa5c805ee72554a6e3 to your computer and use it in GitHub Desktop.
Save a1git/ce400f1084a184fa5c805ee72554a6e3 to your computer and use it in GitHub Desktop.
horizon >> admin >> hypervisors
h7. QEMU 0 40 2GB 251.9GB 0Bytes 133.7TB 0
-- the hypervisor shows all zero ...
already ran openstack-ansible os-nova-install.yml -l h7 .. but it does not fix the display issue.
There is no error on nova-compute log.
root@c2-utility-container-b8577adc:~# openstack hypervisor list
+----+---------------------+-----------------+---------------+-------+
| ID | Hypervisor Hostname | Hypervisor Type | Host IP | State |
+----+---------------------+-----------------+---------------+-------+
| 40 | h9. | QEMU | 172.29.236.59 | up |
| 43 | h10. | QEMU | 172.29.236.60 | up |
| 49 | h2. | QEMU | 172.29.236.52 | up |
| 52 | h1. | QEMU | 172.29.236.51 | up |
| 55 | h5. | QEMU | 172.29.236.55 | up |
| 58 | h8. | QEMU | 172.29.236.58 | up |
| 61 | h4. | QEMU | 172.29.236.54 | up |
| 64 | h6. | QEMU | 172.29.236.56 | up |
| 67 | h7. | QEMU | 172.29.236.57 | up |
| 70 | h3. | QEMU | 172.29.236.53 | up |
+----+---------------------+-----------------+---------------+-------+
root@c2-utility-container-b8577adc:~# nova hypervisor-servers h7
+--------------------------------------+-------------------+--------------------------------------+---------------------+
| ID | Name | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+--------------------------------------+---------------------+
| 8733db85-23c6-4e10-8465-994eccdf549a | instance-0000023b | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 7e6e9758-0d62-4870-861e-34682e8a3580 | instance-000002a4 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| afcd5883-ed66-441d-aa31-290c04edac1c | instance-00000301 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 47b94fcc-6929-432b-a962-dc744a8c7550 | instance-000003ac | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 0f442a5e-f599-4cc0-96a9-d511ca7c69eb | instance-000003ee | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 643630f4-abba-4a3e-a6a6-832df58c1105 | instance-00000412 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 6f0b80f8-2214-457c-9066-f7c72d83a57f | instance-0000049f | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| d6b5385a-dec7-4a31-b444-2ae05761915e | instance-000004c9 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| f2799c8e-f37b-4fc8-ac68-817d277193bd | instance-000004d5 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 193d30c4-37ba-4ed7-a7e0-627a0d4fcca4 | instance-0000051a | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 6e47f1d9-c477-48ec-8d18-a730aa6d59b7 | instance-0000054a | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 23e17e6d-233e-43ee-93c3-be70b6b05edf | instance-00000562 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| bec94561-e681-4a20-9145-7ff86d5d66af | instance-00000574 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| a2566c33-9d63-4283-a122-093fb4cff08e | instance-0000058f | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| e4d11f3d-da23-472a-8b07-2e0946f2d9b9 | instance-0000053e | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| c12d3bcc-03d6-4d9e-8acd-690cef37b2c1 | instance-00000550 | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
| 0cae9698-614c-4100-8860-27a3dc057139 | instance-0000058c | 12a73f34-24b9-4972-8443-b2701064fa54 | h7. |
+--------------------------------------+-------------------+--------------------------------------+---------------------+
shows that the instances are running there.
root@c2-utility-container-b8577adc:~# openstack server migrate d6b5385a-dec7-4a31-b444-2ae05761915e --wait --live h9
Compute host h7 could not be found. (HTTP 400) (Request-ID: req-bfebc8be-5761-4730-b8c8-88ef7452aac5)
root@c2-utility-container-b8577adc:~#
## how to migrate instances out of h7 ... the instances backend is all on CEPH ( shared storage )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment