failed to retrieve image from rocks, no useful output or indication of retrying
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Calico Charm |
Triaged
|
High
|
Unassigned |
Bug Description
during the install hook, the charm failed to retrieve an image from ROCKS and we just get this traceback:
2021-01-22 01:06:49 DEBUG jujuc server.go:211 running hook tool "juju-log" for calico/
2021-01-22 01:06:49 ERROR juju-log Hook error:
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
CTL.pull(image)
File "/var/lib/
return self._exec(*args)
File "/var/lib/
return super()
File "/var/lib/
return sub_run(args, stdout=PIPE, stderr=PIPE, check=True)
File "/usr/lib/
raise CalledProcessEr
subprocess.
There is no useful output, i.e. an HTTP error code or something like that, and no indication that it retried either.
https:/
description: | updated |
Looks like where the charm calls CTL.pull[1], it will need to catch the CalledProcessError, log stdout/stderr from the process, and then enter a Blocked state instead of Error.
[1]: https:/ /github. com/charmed- kubernetes/ layer-calico/ blob/e8a3b6b819 82ee8f5060c4584 eb04897ac6bd6ff /reactive/ calico. py#L664