[nova] Cannot (live)migrate due to host mismatch?
Hello, When I try to live migrate a VM and specify a target host, I am getting the following: $ openstack server migrate <id> --live --os-compute-api-version 2.30 --host hypervisor-05 No valid host was found. There are not enough hosts available. (HTTP 400) (Request-ID: req-bee8f8b1-7218-4ae7-aa71-c4e5a3a84ba5) And the following is logged in nova-scheduler: No hosts matched due to not matching requested destination (hypervisor-05, hypervisor-05.sub.domain.com) When I do "openstack hypervisor list" I see my hypervisors with its fqdn (hypervisor-05.sub.domain.com). So, it might be a mismatch in the nova database? How do I verify and correct it?
On Thu, 2024-06-20 at 12:53 +0000, sinan86polat@gmail.com wrote:
Hello,
When I try to live migrate a VM and specify a target host, I am getting the following: $ openstack server migrate <id> --live --os-compute-api-version 2.30 --host hypervisor-05 No valid host was found. There are not enough hosts available. (HTTP 400) (Request-ID: req-bee8f8b1-7218-4ae7-aa71- c4e5a3a84ba5) if i recall correclty the --host parmater takes the hypervior_hostname not the service host value. https://docs.openstack.org/python-openstackclient/latest/cli/command-objects...
And the following is logged in nova-scheduler: No hosts matched due to not matching requested destination (hypervisor-05, hypervisor-05.sub.domain.com)
When I do "openstack hypervisor list" I see my hypervisors with its fqdn (hypervisor-05.sub.domain.com). So, it might be a mismatch in the nova database?
while the default value of [DEFAULT]/host often matches hypervior_hostname its not always the same depending on how you installed. i dont think this is a mismatch in the nova database (this is not somethign you can change after the fact by the way it will severly break things if you do) but i think your confustion the compute service host value with the hypervior_hostname
How do I verify and correct it?
I haven't installed the cluster, so I am not sure about the details during installation. When using the fqdn using the migrate command, I am getting: Compute host hypervisor-05.sub.domain.com could not be found. (HTTP 400) (Request-ID: req-b5405272-7938-4e98-8ec1-fa84a37b54a6) While using the short name returns: No valid host was found. There are not enough hosts available. (HTTP 400) (Request-ID: req-bee8f8b1-7218-4ae7-aa71-c4e5a3a84ba5) with the following in the nova-scheduler: No hosts matched due to not matching requested destination (hypervisor-05, hypervisor-05.sub.domain.com) MariaDB [nova]> SELECT host, hypervisor_hostname FROM compute_nodes WHERE host LIKE '%hypervisor-05%'; +------------+---------------------------+ | host | hypervisor_hostname | +------------+---------------------------+ | hypervisor-05 | hypervisor-05.sub.domain.com | +------------+---------------------------+ 1 row in set (0.00 sec)
participants (2)
-
sinan86polat@gmail.com
-
smooney@redhat.com