Bug 1949469

Summary: wrong hypervisor hostname obtained
Product: Red Hat OpenStack Reporter: Eduardo Olivares <eolivare>
Component: openstack-novaAssignee: OSP DFG:Compute <osp-dfg-compute>
Status: CLOSED DUPLICATE QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16.2 (Train)CC: dasmith, eglynn, jhakimra, kchamart, sbauza, sgordon, smooney, vromanso
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-14 11:47:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eduardo Olivares 2021-04-14 11:03:17 UTC
Description of problem:
tempest test test_two_vms_fips fails on OSP16.2 jobs with RHOS-16.2-RHEL-8-20210409.n.0. This test passed with previous builds.
https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/view/DFG/view/network/view/networking-ovn/job/DFG-network-networking-ovn-16.2_director-rhel-virthost-3cont_2comp-ipv4-geneve-non_dvr/lastCompletedBuild/testReport/neutron_tempest_plugin.scenario.admin.test_floatingip/FloatingIpTestCasesAdmin/test_two_vms_fips_id_6bba729b_3fb6_494b_9e1e_82bbd89a1045_/


The test obtains the hypervisor hostnames via nova API:
GET http://10.0.0.131:8774/v2.1/os-hypervisors
...
        Body: b'{"hypervisors": [{"id": 2, "hypervisor_hostname": "compute-0.novalocal", "state": "up", "status": "enabled"}, {"id": 5, "hypervisor_hostname": "compute-1.novalocal", "state": "up", "status": "enabled"}]}'

And then tries to create a server with AZ=nova:compute-0.novalocal, but the server creation fails:
No valid host was found. No such host - host: compute-0.novalocal


I have run the test on 16.1 and the GET /os-hypervisors request is answered with values compute-X.redhat.local, which are the correct ones.


nova scheduler logs: http://rhos-ci-logs.lab.eng.tlv2.redhat.com/logs/rcj/DFG-network-networking-ovn-16.2_director-rhel-virthost-3cont_2comp-ipv4-geneve-non_dvr/28/controller-2/var/log/containers/nova/nova-scheduler.log.gz
2021-04-13 16:42:40.513 15 WARNING nova.scheduler.host_manager [req-ce9dfbdb-7263-4f2e-b515-ad932520e38f 2a99279a343a4a99b8c46d75253c97c6 46dca22ee1824ee2ab238dfb3b875762 - default default] No host-to-cell mapping found for selected host compute-0.novalocal.: nova.exception.HostMappingNotFound: Host 'compute-0.novalocal' is not mapped to any cell



I am setting severity to high because it affects test automation.


Version-Release number of selected component (if applicable):
RHOS-16.2-RHEL-8-20210409.n.0

How reproducible:
100%

Steps to Reproduce:
1. run the command 'openstack hypervisor list'
2. or run the tempest test test_two_vms_fips

Comment 1 smooney 2021-04-14 11:47:48 UTC

*** This bug has been marked as a duplicate of bug 1949385 ***