Failed to upload resource "tools": Put https://...: resource#hw-health/tools not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Incomplete
|
High
|
Ian Booth |
Bug Description
Context: this is a recently upgraded cloud, upgraded from xenial to bionic, and upgraded Juju from 2.4 to 2.9.31
We're monitoring hardware via the hw-health charm, deployed from cs:hw-health-13
The existing machines are reporting no issues, but when deploying new machines the charm complains about a missing tools resource.
```
juju charm-resources cs:hw-health-13
Resource Revision
tools 0
juju list-resources hw-health
No resources to display.
```
When attempting to attach a resource I'm getting an error however:
```
juju attach-resource hw-health tools=./tools.zip
ERROR failed to upload resource "tools": Put https:/
```
In the unit log I can see a similar error, not being able to download the resource:
```
2022-06-24 16:40:27 INFO unit.hw-
2022-06-24 16:40:27 INFO unit.hw-
2022-06-24 16:40:27 WARNING unit.hw-
608eefcc41/
2022-06-24 16:40:27 ERROR unit.hw-
```
If I can help out with any diagnostics or if theres any questions please let me know
Slightly different symptoms than: https:/ /bugs.launchpad .net/juju/ +bug/1975726 but they seem related. (Both about resources, both about attach-resource, and both not reproducible on a clean deploy)