hook failures for unsupported/containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch Charm |
Fix Released
|
Medium
|
Barry Price |
Bug Description
Hi,
On unsupported/
2018-11-12 00:26:24 INFO juju-log OS container detected, livepatch is not needed
2018-11-12 00:26:24 INFO juju-log Invoking reactive handler: reactive/
2018-11-12 00:26:24 INFO juju-log Setting charm primary status False
2018-11-12 00:26:24 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/
write_
File "/var/lib/
current_status = get_livepatch_
File "/var/lib/
livepatch_
File "/usr/lib/
**kwargs)
File "/usr/lib/
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: '/snap/
I think we just need to have an 'unsupported' flag and skip configure_nagios() on that.
Related branches
- Haw Loeung: Approve
-
Diff: 20 lines (+2/-1)2 files modifiedfiles/check_canonical-livepatch.cron (+1/-1)
reactive/canonical_livepatch.py (+1/-0)
Changed in canonical-livepatch-charm: | |
assignee: | nobody → Barry Price (barryprice) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in canonical-livepatch-charm: | |
status: | In Progress → Fix Committed |
Changed in canonical-livepatch-charm: | |
status: | Fix Committed → Fix Released |
Related, /etc/cron. d/check_ canonical- livepatch gets shipped out by configure_nagios() and causes cron spam:
Date: Sun, 11 Nov 2018 17:17:01 +0000 (UTC) canonical- livepatch status >
/var/lib/ nagios/ canonical- livepatch- status. txt
From: Cron Daemon <email address hidden>
To: <email address hidden>
Subject: Cron <root@kimura> /snap/bin/
/bin/sh: 1: /snap/bin/ canonical- livepatch: not found