intermittent snapstore outage should not trigger an error on update-status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Etcd Charm |
Fix Released
|
High
|
Unassigned | ||
Kubernetes Control Plane Charm |
Fix Released
|
High
|
Unassigned | ||
Kubernetes Worker Charm |
Fix Released
|
High
|
Unassigned | ||
Snap Layer |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A running k8s deployment's etcd units went into error because they could not run snap refresh --list. It doesn't make sense that the charm is error because it couldn't ask the snap store what its most recent revision was. I would expect, instead, that the charm would go into blocked or waiting, to retry the hook, until the snap store comes back up.
2020-07-17 06:59:39 ERROR juju-log Hook error:
Traceback (most recent call last):
File "/var/lib/
hookenv.
File "/var/lib/
callback(*args, **kwargs)
File "/var/lib/
available_
File "lib/charms/
out = subprocess.
File "/usr/lib/
**kwargs)
File "/usr/lib/
output=stdout, stderr=stderr)
subprocess.
2020-07-17 06:59:39 DEBUG update-status Traceback (most recent call last):
2020-07-17 06:59:39 DEBUG update-status File "/var/lib/
2020-07-17 06:59:39 DEBUG update-status main()
2020-07-17 06:59:39 DEBUG update-status File "/var/lib/
2020-07-17 06:59:39 DEBUG update-status hookenv.
2020-07-17 06:59:39 DEBUG update-status File "/var/lib/
2020-07-17 06:59:39 DEBUG update-status callback(*args, **kwargs)
2020-07-17 06:59:39 DEBUG update-status File "/var/lib/
2020-07-17 06:59:39 DEBUG update-status available_refreshes = snap.get_
2020-07-17 06:59:39 DEBUG update-status File "lib/charms/
2020-07-17 06:59:39 DEBUG update-status out = subprocess.
2020-07-17 06:59:39 DEBUG update-status File "/usr/lib/
2020-07-17 06:59:39 DEBUG update-status **kwargs).stdout
2020-07-17 06:59:39 DEBUG update-status File "/usr/lib/
2020-07-17 06:59:39 DEBUG update-status output=stdout, stderr=stderr)
2020-07-17 06:59:39 DEBUG update-status subprocess.
Changed in charm-etcd: | |
status: | Fix Committed → Fix Released |
Changed in charm-kubernetes-master: | |
status: | Fix Committed → Fix Released |
Changed in charm-kubernetes-worker: | |
status: | Fix Committed → Fix Released |
Changed in charm-etcd: | |
status: | Fix Released → New |
Changed in charm-etcd: | |
status: | Fix Committed → Fix Released |
Changed in charm-kubernetes-master: | |
status: | Fix Committed → Fix Released |
Changed in charm-kubernetes-worker: | |
status: | Fix Committed → Fix Released |
Looks like this is part of the code that was added to layer-snap for snap coherence support[1]. This will need to be fixed in layer-snap.
[1]: https:/ /github. com/stub42/ layer-snap/ commit/ 2d3872544653c2f cec4a9b57d594d9 76b7fd1042