You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TLS unit tests will fail with "permission denied" if we have the opensearch snap installed in our machine.
One example of trace:
Traceback (most recent call last):
File "/usr/lib/python3.12/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.12/unittest/case.py", line 634, in run
self._callTestMethod(testMethod)
File "/usr/lib/python3.12/unittest/case.py", line 589, in _callTestMethod
if method() is not None:
^^^^^^^^
File "/home/pguimaraes/Documents/Canonical/Engineering/DPE-4196-improve-plugin-manager/opensearch-operator/.tox/unit/lib/python3.12/site-packages/parameterized/parameterized.py", line 620, in standalone_func
return func(*(a + p.args), **p.kwargs, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/unittest/mock.py", line 1390, in patched
return func(*newargs, **newkeywargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pguimaraes/Documents/Canonical/Engineering/DPE-4196-improve-plugin-manager/opensearch-operator/.tox/unit/lib/python3.12/site-packages/parameterized/parameterized.py", line 93, in dummy_func
return orgfunc(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/unittest/mock.py", line 1390, in patched
return func(*newargs, **newkeywargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pguimaraes/Documents/Canonical/Engineering/DPE-4196-improve-plugin-manager/opensearch-operator/tests/unit/lib/test_opensearch_tls.py", line 1638, in test_on_certificate_available_rotation_ongoing_on_this_unit
self.charm.tls._on_certificate_available(self.charm.on.certificate_available)
File "/home/pguimaraes/Documents/Canonical/Engineering/DPE-4196-improve-plugin-manager/opensearch-operator/lib/charms/opensearch/v0/opensearch_tls.py", line 240, in _on_certificate_available
if not self.store_new_ca(self.charm.secrets.get_object(scope, cert_type.val)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pguimaraes/Documents/Canonical/Engineering/DPE-4196-improve-plugin-manager/opensearch-operator/lib/charms/opensearch/v0/opensearch_tls.py", line 574, in store_new_ca
self._add_ca_to_request_bundle(secrets.get("chain"))
File "/home/pguimaraes/Documents/Canonical/Engineering/DPE-4196-improve-plugin-manager/opensearch-operator/lib/charms/opensearch/v0/opensearch_tls.py", line 964, in _add_ca_to_request_bundle
if not bundle_path.exists():
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/pathlib.py", line 862, in exists
self.stat(follow_symlinks=follow_symlinks)
File "/usr/lib/python3.12/pathlib.py", line 842, in stat
return os.stat(self, follow_symlinks=follow_symlinks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/snap/opensearch/current/etc/opensearch/certificates/chain.pem'
The text was updated successfully, but these errors were encountered:
The TLS unit tests will fail with "permission denied" if we have the opensearch snap installed in our machine.
One example of trace:
The text was updated successfully, but these errors were encountered: