Bug 1730072 - novajoin_tempest_plugin tests return subprocess.CalledProcessError
Summary: novajoin_tempest_plugin tests return subprocess.CalledProcessError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novajoin-tests-tempest
Version: 15.0 (Stein)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: z2
: 15.0 (Stein)
Assignee: Ade Lee
QA Contact: Pavan
URL:
Whiteboard:
Depends On:
Blocks: 1624486 1624488
TreeView+ depends on / blocked
 
Reported: 2019-07-15 18:42 UTC by Pavan
Modified: 2020-03-05 12:02 UTC (History)
7 users (show)

Fixed In Version: python-novajoin-tests-tempest-0.0.1-0.20190923150420.80dd51a.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 12:02:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 679392 0 'None' MERGED Fix running mysql client on containerized deployment 2020-05-07 19:55:30 UTC
Red Hat Product Errata RHBA-2020:0710 0 None None None 2020-03-05 12:02:50 UTC

Description Pavan 2019-07-15 18:42:49 UTC
Description of problem:
The following novajoin_tempest_plugin tests end up with subprocess.CalledProcessError: Command \'[\'ssh\', \'-i\', \'/home/stack/.ssh/id_rsa\', \'heat-admin.24.23\', \'-C\', "echo \'GET / HTTP/1.0\\r\\n\' | openssl s_client -connect b\'172.17.1.39\':b\'5672\' -tls1_2"]\' returned non-zero exit status 1.

{0} novajoin_tempest_plugin.tests.scenario.test_tripleo_tls.TripleOTLSTest.test_mysql_nova_connection_with_ssl [3.733879s] ... FAILED
{0} novajoin_tempest_plugin.tests.scenario.test_tripleo_tls.TripleOTLSTest.test_rabbitmq_tls_connection [2.589469s] ... FAILED


Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/usr/lib/python3.6/site-packages/novajoin_tempest_plugin/tests/scenario/test_tripleo_tls.py", line 132, in test_rabbitmq_tls_connection'
    b'    port=rabbitmq_port)'
    b'  File "/usr/lib/python3.6/site-packages/novajoin_tempest_plugin/tests/scenario/novajoin_manager.py", line 252, in verify_overcloud_tls_connection'
    b'    self.execute_on_controller(user, controller_ip, cmd)'
    b'  File "/usr/lib/python3.6/site-packages/novajoin_tempest_plugin/tests/scenario/novajoin_manager.py", line 340, in execute_on_controller'
    b'    return subprocess.check_output(cmd)'
    b'  File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output'
    b'    **kwargs).stdout'
    b'  File "/usr/lib64/python3.6/subprocess.py", line 438, in run'
    b'    output=stdout, stderr=stderr)'
    b'subprocess.CalledProcessError: Command \'[\'ssh\', \'-i\', \'/home/stack/.ssh/id_rsa\', \'heat-admin.24.23\', \'-C\', "echo \'GET / HTTP/1.0\\r\\n\' | openssl s_client -connect b\'172.17.1.39\':b\'5672\' -tls1_2"]\' returned non-zero exit status 1.'
    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
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:
{2} novajoin_tempest_plugin.tests.scenario.test_tripleo_deployment.TripleOTest.test_overcloud_hosts_are_ipaclients [1.391052s] ... FAILED
{0} novajoin_tempest_plugin.tests.scenario.test_tripleo_tls.TripleOTLSTest.test_haproxy_tls_connections [1.595022s] ... FAILED
{2} novajoin_tempest_plugin.tests.scenario.test_tripleo_deployment.TripleOTest.test_verify_compute_certs_are_tracked [1.499432s] ... FAILED
{2} novajoin_tempest_plugin.tests.scenario.test_tripleo_deployment.TripleOTest.test_verify_controller_certs_are_tracked [1.452935s] ... FAILED

Expected results:
Tests pass/ok

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

Comment 7 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


Note You need to log in before you can comment on or make changes to this bug.