Bug 1730076

Summary: novajoin_enrollment tests return code 500 'No valid host was found' error
Product: Red Hat OpenStack Reporter: Pavan <pkesavar>
Component: python-novajoin-tests-tempestAssignee: Ade Lee <alee>
Status: CLOSED ERRATA QA Contact: Pavan <pkesavar>
Severity: high Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: alee, chkumar, hrybacki, jagee, jschluet, rcritten, rmascena
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 15.0 (Stein)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-novajoin-tests-tempest-0.0.1-0.20190923150420.80dd51a.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 12:02:11 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:
Bug Depends On:    
Bug Blocks: 1624486, 1624488    

Description Pavan 2019-07-15 18:51:59 UTC
Description of problem:
The novajoin_enrollment tests return code 500 'No valid host was found' error.

{1} novajoin_tempest_plugin.tests.scenario.test_novajoin_enrollment.ServerTest.test_enrollment_metadata_in_image [10.836171s] ... FAILED
{1} novajoin_tempest_plugin.tests.scenario.test_novajoin_enrollment.ServerTest.test_enrollment_metadata_in_instance [10.716608s] ... FAILED

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/usr/lib/python3.6/site-packages/novajoin_tempest_plugin/tests/scenario/test_novajoin_enrollment.py", line 169, in test_enrollment_metadata_in_image'
    b"    wait_until='ACTIVE')"
    b'  File "/usr/lib/python3.6/site-packages/novajoin_tempest_plugin/tests/scenario/manager.py", line 122, in create_server'
    b"    'ACTIVE')"
    b'  File "/usr/lib/python3.6/site-packages/tempest/common/waiters.py", line 76, in wait_for_server_status'
    b'    server_id=server_id)'
    b'tempest.exceptions.BuildErrorException: Server 26850630-38c6-4382-8072-78537cafa908 failed to build and is in ERROR status'
    b'Details: {\'code\': 500, \'created\': \'2019-07-15T17:22:28Z\', \'message\': \'No valid host was found. \', \'details\': \'  File "/usr/lib/python3.6/site-packages/nova/conductor/manager.py", line 1352, in schedule_and_build_instances\\n    instance_uuids, return_alternates=True)\\n  File "/usr/lib/python3.6/site-packages/nova/conductor/manager.py", line 806, in _schedule_instances\\n    return_alternates=return_alternates)\\n  File "/usr/lib/python3.6/site-packages/nova/scheduler/client/query.py", line 42, in select_destinations\\n    instance_uuids, return_objects, return_alternates)\\n  File "/usr/lib/python3.6/site-packages/nova/scheduler/rpcapi.py", line 160, in select_destinations\\n    return cctxt.call(ctxt, \\\'select_destinations\\\', **msg_args)\\n  File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/client.py", line 178, in call\\n    retry=self.retry)\\n  File "/usr/lib/python3.6/site-packages/oslo_messaging/transport.py", line 128, in _send\\n    retry=retry)\\n  File "/usr/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 645, in send\\n    call_monitor_timeout, retry=retry)\\n  File "/usr/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 636, in _send\\n    raise result\\n\'}'
    b''


Version-Release number of selected component (if applicable):
RHOS_TRUNK-15.0-RHEL-8-20190708.n.2

How reproducible:


Steps to Reproduce:
1. Deploy RHOS-15 with 'passed_phase1' or the latest puddle with topology controller:3,compute:2,freeipa:1,ironic:4
2. Install 'openstack-tempest-all' and 'python3-novajoin-tests-tempest' packages
3. source /home/stack/overcloudrc
4. On the undercloud /home/stack dir, create workspace for tempest

(undercloud) [stack@undercloud-0 ~]$ tempest init novajoin_tempest
2019-07-15 10:27:23.909 1025847 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf

5. change directory, cd novajoin_tempest
6. Configure the tempest.conf as per novajoin tempest tests 

discover-tempest-config --out etc/tempest.conf --deployer-input ~/tempest-deployer-input.conf --debug --create identity.uri $OS_AUTH_URL auth.admin_password $OS_PASSWORD auth.admin_username $OS_USERNAME auth.use_dynamic_credentials true network.tenant_network_cidr 172.17.2.0/24 validation.connect_method 'fixed' validation.network_for_ssh 'ctlplane' compute.allow_tenant_isolation 'True' object-storage.operator_role 'swiftoperator' novajoin.tripleo_controllers 'controller-0,controller-1,controller-2' novajoin.tripleo_computes 'compute-0,compute-1' novajoin.tripleo_undercloud 'undercloud-0' novajoin.flavor_tag baremetal image.image_path http://download-node-02.eng.bos.redhat.com/qa/rhts/lookaside/security-dfg/python-novajoin/Fedora-Cloud-Base-29-1.2.x86_64.qcow2 image.http_image http://download-node-02.eng.bos.redhat.com/qa/rhts/lookaside/security-dfg/python-novajoin/Fedora-Cloud-Base-29-1.2.x86_64.qcow2 validation.image_ssh_user fedora

7. execute novajoin tempest tests

(overcloud) [stack@undercloud-0 novajoin]$ tempest run --regex novajoin_tempest_plugin

Actual results:
{1} novajoin_tempest_plugin.tests.scenario.test_novajoin_enrollment.ServerTest.test_enrollment_metadata_in_image [10.836171s] ... FAILED
{1} novajoin_tempest_plugin.tests.scenario.test_novajoin_enrollment.ServerTest.test_enrollment_metadata_in_instance [10.716608s] ... FAILED

Expected results:
Tests pass/ok

Additional info: 
access the undercloud sos report here: https://drive.google.com/open?id=149fU1k9p52q9khOAWvprgiLxHbE8_T7P

Comment 6 Alex McLeod 2020-02-19 12:48:50 UTC
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to '-'.

Comment 8 errata-xmlrpc 2020-03-05 12:02:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0710

Comment 9 Red Hat Bugzilla 2023-09-14 05:31:51 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days