Skip to content

qa/rgw: verify suite tests civetweb with ssl - #20444

Merged
cbodley merged 9 commits into
ceph:masterfrom
cbodley:wip-qa-ssl
Mar 12, 2018
Merged

cbodley merged 9 commits into
ceph:masterfrom
cbodley:wip-qa-ssl

Conversation

@cbodley

@cbodley cbodley commented Feb 14, 2018 •

Copy link
Copy Markdown
Contributor

adds an 'ssl' task to generate certificates with openssl and install them as trusted. if the rgw task specifies a certificate, it's added to the rgw_frontends configuration, and the s3test/swift tasks will configure ssl as well

@theanalyst

Copy link
Copy Markdown
Member

s3tests also does not have an option to run against a non trusted ssl; (which is not the case here) but that is also worth adding

@cbodley

cbodley commented Feb 15, 2018

Copy link
Copy Markdown
Contributor Author

with help from @mdw-at-linuxbox, i figured out how to resolve the failing s3tests. tests that were using the python 'requests' library directly weren't able to verify the certificate, because 'requests' uses its own ca bundle. the s3test task now overrides this by providing the system's ca bundle in the REQUESTS_CA_BUNDLE environment variable

see latest test run at http://qa-proxy.ceph.com/teuthology/cbodley-2018-02-15_15:48:33-rgw:verify-master-distro-basic-smithi/2191725/teuthology.log

@cbodley
cbodley force-pushed the wip-qa-ssl branch 7 times, most recently from c719f27 to a822816 Compare March 5, 2018 20:25
cbodley added 3 commits March 9, 2018 16:31
we only run radosgw instances on clients that are specified directly in
the rgw task - this list omits entries that are brought in via overrides

Signed-off-by: Casey Bodley <[email protected]>
@cbodley

cbodley commented Mar 12, 2018

Copy link
Copy Markdown
Contributor Author

full suite run: http://pulpito.ceph.com/cbodley-2018-03-09_21:57:24-rgw-wip-cbodley-testing-distro-basic-smithi/

known failures from lifecycle expiration, ragweed upgrade tests, and segfault in multisite tests (fixed in master, but not in wip-cbodley-testing)

@cbodley
cbodley merged commit 04a7369 into ceph:master Mar 12, 2018
@cbodley
cbodley deleted the wip-qa-ssl branch March 12, 2018 14:33
@epuertat

Copy link
Copy Markdown
Member

@cbodley I'm on the dashboard_v2 backporting to Luminous and found that this PR is required for a later one (#20863) that @rjfd added to deal with ssl module name clashing on vstart_runner.py. Is it this PR applicable to Luminous rgw testing? Is it safe to backport? Thanks!

@cbodley

cbodley commented Aug 30, 2018

Copy link
Copy Markdown
Contributor Author

sure @epuertat, it would be wonderful to see this backported

@epuertat

Copy link
Copy Markdown
Member

Thanks, @cbodley!

When resolving the 2 merge conflicts, I get:

  • A new file qa/tasks/ragweed.py added.
  • qa/tasks/rgw.py:
    • imports method util.get_remote_for_role
    • adds class RGWEndpoint,
    • In function start_rgw():
      • ctx.rgw.role_endpoints[client] returns kind of named tuple (endpoint.hostname and endpoint.port, instead of a regular tuple (host, port))
      • The following code was expected (should I backport something else before?):
          frontends = ctx.rgw.frontend
          frontend_prefix = client_config.get('frontend_prefix', None)
          if frontend_prefix:
              frontends += ' prefix={pfx}'.format(pfx=frontend_prefix)
      • And adds the following snippet:
          if endpoint.cert:
              # add the ssl certificate path
              frontends += ' ssl_certificate={}'.format(endpoint.cert.certificate)
              if ctx.rgw.frontend == 'civetweb':
                  frontends += ' port={}s'.format(endpoint.port)
              else:
                  frontends += ' ssl_port={}'.format(endpoint.port)
          else:
              frontends += ' port={}'.format(endpoint.port)

I see nothing unreasonable over there, but would like to get some expert advice: is everything above ok?

@cbodley

cbodley commented Aug 30, 2018

Copy link
Copy Markdown
Contributor Author

you might want to pull in 43a7399 for the frontend_prefix conflict. everything else looks fine

@epuertat

Copy link
Copy Markdown
Member

Thank you so much for your help, @cbodley! Unfortunately and for the time being, I'll put this on hold, as the commit that triggered this (98e4b33) was to fix the ssl.py clashing, which currently does not happen in Luminous. The agreement for the dashboard_v2 backporting was to minimize the number of non-dashboard commits, so even if this is just testing, it's better to skip these ones. Anyway, if this QA backporting happens, I expect that linking this PR to the later fix will help do that.

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.

4 participants