fix: use file path instead of PEM bytes for novaclient cacert#199
Merged
hemanthnakkina merged 1 commit intoJun 25, 2026
Merged
Conversation
The `hypervisor disable` command (invoked during `sunbeam cluster remove`) passes the base64-decoded CA bundle bytes directly as `cacert` to `novaclient.Client`. However, `keystoneauth1`/`requests` expects `cacert` to be a filesystem path, not certificate content. This causes `OSError: Could not find a suitable TLS CA certificate bundle, invalid path` on TLS-enabled deployments. Reuse the existing on-disk CA bundle written by `_configure_cabundle_tls` to `$SNAP_COMMON/etc/ssl/certs/receive-ca-bundle.pem` and pass that path instead. Fixes https://bugs.launchpad.net/snap-openstack/+bug/2158018 Assisted-by: z-ai/glm-5.2 Signed-off-by: Hemanth Nakkina <hemanth.nakkina@canonical.com>
gboutry
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
hypervisor disablecommand (invoked duringsunbeam cluster remove) passes the base64-decoded CA bundle bytes directly ascacerttonovaclient.Client. However,keystoneauth1/requestsexpectscacertto be a filesystem path, not certificate content. This causesOSError: Could not find a suitable TLS CA certificate bundle, invalid pathon TLS-enabled deployments.Reuse the existing on-disk CA bundle written by
_configure_cabundle_tlsto$SNAP_COMMON/etc/ssl/certs/receive-ca-bundle.pemand pass that path instead.Fixes https://bugs.launchpad.net/snap-openstack/+bug/2158018
Assisted-by: z-ai/glm-5.2