Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New test for Gnocchi #393

Merged
merged 9 commits into from Aug 20, 2020
Merged

Conversation

camille-rodriguez
Copy link
Contributor

When configuring Gnocchi to use an external endpoint for an S3 backend, it can be necessary to install a root CA on the gnocchi unit to communicate to this endpoint when it is encrypted. The PR https://review.opendev.org/#/c/746562/ adds automation for this option, and these tests confirm its functionality.

A new charm class is added for these tests, to avoid breaking any earlier version of the charm.

Copy link
Contributor

@thedac thedac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can replace the block_until_all_units_idle with either block_until_file_has_contents or block_until_file_ready.


cert_location = '/usr/local/share/ca-certificates'
cert_name = 'gnocchi-external.crt'
cmd = 'ls ' + cert_location + '/' + cert_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the PR using block_until_file_has_contents.


linked_cert_location = '/etc/ssl/certs'
linked_cert_name = 'gnocchi-external.pem'
cmd = 'ls ' + linked_cert_location + '/' + linked_cert_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Copy link
Contributor

@thedac thedac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. I'll run it on the charm PR and land both on successful test.

@thedac thedac merged commit 7ac5bc3 into openstack-charmers:master Aug 20, 2020
openstack-mirroring pushed a commit to openstack/charm-gnocchi that referenced this pull request Aug 20, 2020
To connect to an external S3 endpoint with encryption,
a root CA needs to be installed on the gnocchi units.

Func-test-PR: openstack-charmers/zaza-openstack-tests#393
Change-Id: I50fd881400d4c1bf4beaa70d75af34c28c98ea41
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Aug 20, 2020
* Update charm-gnocchi from branch 'master'
  - Add trusted-external-ca-cert option
    
    To connect to an external S3 endpoint with encryption,
    a root CA needs to be installed on the gnocchi units.
    
    Func-test-PR: openstack-charmers/zaza-openstack-tests#393
    Change-Id: I50fd881400d4c1bf4beaa70d75af34c28c98ea41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants