Skip to content

qa: fix keystone in rgw/crypt/barbican.yaml - #52494

Merged
alimaredia merged 3 commits into
ceph:mainfrom
alimaredia:wip-rgw-crypt-keystone-fix
Aug 7, 2023
Merged

alimaredia merged 3 commits into
ceph:mainfrom
alimaredia:wip-rgw-crypt-keystone-fix

Conversation

@alimaredia

Copy link
Copy Markdown
Contributor

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@alimaredia
alimaredia requested a review from a team as a code owner July 17, 2023 21:22
@github-actions github-actions Bot added the rgw label Jul 17, 2023
@alimaredia alimaredia mentioned this pull request Jul 17, 2023
3 of 14 tasks
@alimaredia

Copy link
Copy Markdown
Contributor Author

@tobias-urdin

Copy link
Copy Markdown
Contributor

@tobias-urdin here is the latest run in teuthology. I ran the crypt suite with the same version of keystone as in the tempest suite: http://qa-proxy.ceph.com/teuthology/amaredia-2023-07-17_20:37:05-rgw:crypt-main-distro-default-smithi/7342409/teuthology.log

I wonder if this is just the same as the other issue, that its requires Python 3.9. I'm still on PTO until next week and can help you test that then. It's possible this is related to the the line test-requirements.txt in Keystone but I haven't verified that either.

@tobias-urdin

Copy link
Copy Markdown
Contributor

@alimaredia I've verified that you indeed need to run atleast Python 3.8 available on c8s/RHEL 8 but recommend Python 3.9 on c9s/RHEL 9 since that is the targeted runtime for the 2023.1 release. Looks like that job ran on RHEL 8 based with Python 3.6

@tobias-urdin

Copy link
Copy Markdown
Contributor

Hello @alimaredia – this PR plus the below patch and running it on Ubuntu 22.04 Jammy or CentOS Stream 9 should make it pass.

diff --git a/qa/tasks/barbican.py b/qa/tasks/barbican.py
index 70bd734053a..771304fba92 100644
--- a/qa/tasks/barbican.py
+++ b/qa/tasks/barbican.py
@@ -136,9 +136,8 @@ def set_authtoken_params(ctx, cclient, cconfig):
                         ['sed', '-i',
                          '/[[]filter:authtoken]/{p;s##'+'auth_uri = {}'.format(url)+'#;}',
                          'etc/barbican/barbican-api-paste.ini'])
-    admin_host, admin_port = ctx.keystone.admin_endpoints[keystone_role]
-    admin_url = 'http://{host}:{port}/v3'.format(host=admin_host,
-                                                 port=admin_port)
+    admin_url = 'http://{host}:{port}/v3'.format(host=public_host,
+                                                 port=public_port)
     run_in_barbican_dir(ctx, cclient,
                         ['sed', '-i',
                          '/[[]filter:authtoken]/{p;s##'+'auth_url = {}'.format(admin_url)+'#;}',

@alimaredia
alimaredia force-pushed the wip-rgw-crypt-keystone-fix branch from be7431e to eb336f6 Compare August 3, 2023 16:51
@github-actions github-actions Bot added the tests label Aug 3, 2023
@alimaredia alimaredia changed the title [DNM] qa: fix keystone in rgw/crypt/barbican.yaml qa: fix keystone in rgw/crypt/barbican.yaml Aug 4, 2023
@alimaredia

Copy link
Copy Markdown
Contributor Author

@tobias-urdin thank you! That fix did work. I verified it on centos 9 and ubuntu 22.04:

Centos latest run: https://pulpito.ceph.com/amaredia-2023-08-03_16:51:32-rgw:crypt-main-distro-default-smithi/

Ubunutu latest run: https://pulpito.ceph.com/amaredia-2023-08-03_19:23:02-rgw:crypt-main-distro-default-smithi/

@cbodley for the time being can I pin the crypt suite to one of those 2 distros so that the subsuite will be fully green and then work out fixes on earlier centos and ubuntus?

barbican tests are only passing on ubunutu latest,
this commit allows us to have a green crypt suite.

Signed-off-by: Ali Maredia <[email protected]>
@alimaredia
alimaredia force-pushed the wip-rgw-crypt-keystone-fix branch from c672694 to 863f8d7 Compare August 4, 2023 16:53
@cbodley

cbodley commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

@cbodley for the time being can I pin the crypt suite to one of those 2 distros so that the subsuite will be fully green and then work out fixes on earlier centos and ubuntus?

sure, just make sure we create a new tracker to work through issues on the other distros

@alimaredia

Copy link
Copy Markdown
Contributor Author

Opened up this tracker issue and assigned it to myself to make sure the two suites that use keystone are not pinned to ubuntu_latest anymore:

https://tracker.ceph.com/issues/62324

@alimaredia

Copy link
Copy Markdown
Contributor Author

jenkins test make check

1 similar comment
@alimaredia

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@alimaredia
alimaredia merged commit 0444571 into ceph:main Aug 7, 2023
@cbodley

cbodley commented Aug 7, 2023

Copy link
Copy Markdown
Contributor

thanks @alimaredia @tobias-urdin! i moved https://tracker.ceph.com/issues/61772 to pending-backport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants