-
Notifications
You must be signed in to change notification settings - Fork 102
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
Unable to upload .tar file as local resource to deployed charmed application #1000
Comments
This issue is marked as incomplete because it has been open 30 days with no activity. Please remove incomplete label or comment or this will be closed in 5 days. |
This issue is marked as incomplete because it has been open 30 days with no activity. Please remove incomplete label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Closed prematurely by the bot. |
The problem
When trying to run the integration tests for the slurmd charmed operator, our CI pipeline fails with the following stacktrace:
This error is raised when we try to attach our resource
lbnl-nhc-1.4.3.tar.gz
to the slurmd application. NHC (Node Health Check) is a utility for measuring the health of compute nodes in your cluster; it is commonly used to collect observability metrics. When we try to attach NHC,pathlib.Path(...).read_text(...)
tries to decode the .tar.gz file as an utf-8 text file rather than a binary file. This causes python-libjuju to raise the aboveUnicodeDecodeError
which then torpedoes our CI pipeline. The block of code below is what is responsible for this issue:python-libjuju/juju/model.py
Lines 2050 to 2052 in 2581b0c
This could potentially be fixed by switch the implementation to
pathlib.Path(...).read_bytes(...)
Steps to reproduce
git clone -b jaime/drop-focal-support git@github.com:jaimesouza/slurmd-operator.git
cd slurmd-operator
tox run -e integration
UnicodeDecodeError
The text was updated successfully, but these errors were encountered: