Bug 2226734 - Test sends command to verify SSL connection setup is correct , succeeds but return 1 instead of 0
Summary: Test sends command to verify SSL connection setup is correct , succeeds but r...
Keywords:
Status: ON_DEV
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novajoin-tests-tempest
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 17.1
Assignee: Ade Lee
QA Contact: Jeremy Agee
URL:
Whiteboard:
: 2225236 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-26 11:28 UTC by MilanaLevy
Modified: 2023-08-14 15:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 890938 0 None NEW allow skip horizon haproxy test 2023-08-09 19:25:53 UTC
Red Hat Issue Tracker OSP-26912 0 None None None 2023-07-26 11:30:04 UTC

Description MilanaLevy 2023-07-26 11:28:54 UTC
Description of problem:
Excecuting in controller "[tripleo-admin@controller-0 ~]$ echo 'GET / HTTP/1.0\r\n' | openssl s_client -connect 172.17.1.129:443 -tls1_2" will be successful but the return code is 1 and this fail the test.The test sends ssh command that do the same action but gets the same return code of 1 and the test fail.

Version-Release number of selected component (if applicable):


How reproducible:
Every time

Steps to Reproduce:
1.Enter the controller with tripleo-admin
2.Send ssh command to check the connection setup like the test does
3.type the command echo $?

Actual results:
The exit code will be 1

Expected results:
Exit code should be 0

Additional info:
The test is 
novajoin_tempest_plugin.tests.scenario.test_tripleo_tls.TripleOTLSTest.test_haproxy_tls_connections

Comment 1 MilanaLevy 2023-07-31 15:00:45 UTC
*** Bug 2225236 has been marked as a duplicate of this bug. ***

Comment 2 Ade Lee 2023-08-09 19:06:54 UTC
This operation "openssl s_client -connect 172.17.1.129:443 -tls1_2" succeeds for other services , but fails for horizon because when TLS-everywhere is enabled for horizon, client cert verification is enabled and set to be required for the connection between haproxy and horizon.  The "s_client connect" test - which is testing this connection between haproxy and horizon - fails because no client cert is provided to the test.

There are currently two fixes upstream, neither of which made it into 17.1 GA. The first removes the requirement for client cert auth for horizon (https://review.opendev.org/c/openstack/tripleo-heat-templates/+/883129).  This is the most likely fix.  The second leaves the client cert as required, but also sets up a client cert to be used for horizon by haproxy (https://review.opendev.org/c/openstack/puppet-tripleo/+/886290).

Its not clear yet which solution will be merged.  But if the second solution is merged, we will need to modify the test to make sure that the generated client cert is used in the sclient_connect command.

In the meantime, we'll need to disable the test for horizon, as the functionality is currently broken.


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