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
New test for Gnocchi #393
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use block_until_file_has_contents or block_until_file_ready rather than a simple ls.
https://github.com/openstack-charmers/zaza/blob/master/zaza/model.py#L1246
https://github.com/openstack-charmers/zaza/blob/master/zaza/model.py#L1288
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
Replace ls with block_until_file_has_contents
There was a problem hiding this 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.
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
* 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
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.