Charm should only write out files on change

Bug #1820545 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Livepatch Charm
Invalid
Medium
Unassigned

Bug Description

Hi,

See logging that the following files are constantly being written out:

| 2019-03-17 21:37:40 INFO juju-log Reactive main running for hook update-status
| 2019-03-17 21:37:40 INFO juju-log Initializing Snap Layer
| 2019-03-17 21:37:40 INFO juju-log Invoking reactive handler: reactive/canonical_livepatch.py:187:init_nagios_checks
| 2019-03-17 21:37:40 INFO juju-log Writing file /etc/cron.d/check_canonical-livepatch root:root 644
| 2019-03-17 21:37:40 INFO juju-log Writing file /usr/lib/nagios/plugins/check_canonical-livepatch.py root:root 755
|
| 2019-03-17 21:43:23 INFO juju-log Reactive main running for hook update-status
| 2019-03-17 21:43:23 INFO juju-log Initializing Snap Layer
| 2019-03-17 21:43:23 INFO juju-log Invoking reactive handler: reactive/canonical_livepatch.py:187:init_nagios_checks
| 2019-03-17 21:43:23 INFO juju-log Writing file /etc/cron.d/check_canonical-livepatch root:root 644
| 2019-03-17 21:43:23 INFO juju-log Writing file /usr/lib/nagios/plugins/check_canonical-livepatch.py root:root 755
|
| 2019-03-17 21:48:58 INFO juju-log Reactive main running for hook update-status
| 2019-03-17 21:48:58 INFO juju-log Initializing Snap Layer
| 2019-03-17 21:48:58 INFO juju-log Invoking reactive handler: reactive/canonical_livepatch.py:187:init_nagios_checks
| 2019-03-17 21:48:58 INFO juju-log Writing file /etc/cron.d/check_canonical-livepatch root:root 644
| 2019-03-17 21:48:58 INFO juju-log Writing file /usr/lib/nagios/plugins/check_canonical-livepatch.py root:root 755

Causing unnecessary cron reloads:

| ar 17 21:38:01 hutton cron[2431]: (*system*check_canonical-livepatch) RELOAD (/etc/cron.d/check_canonical-livepatch)
| Mar 17 21:44:01 hutton cron[2431]: (*system*check_canonical-livepatch) RELOAD (/etc/cron.d/check_canonical-livepatch)
| Mar 17 21:49:01 hutton cron[2431]: (*system*check_canonical-livepatch) RELOAD (/etc/cron.d/check_canonical-livepatch)

Haw Loeung (hloeung)
summary: - Charm should only write out files on chane
+ Charm should only write out files on change
Changed in canonical-livepatch-charm:
importance: Undecided → Wishlist
Revision history for this message
Haw Loeung (hloeung) wrote :

FYI, this is with the latest charm.

.codetree_charmstore:
cs:canonical-livepatch-31;channel=stable

https://jujucharms.com/canonical-livepatch/:

Latest version (#31)

Revision history for this message
Barry Price (barryprice) wrote :

This is actually a regression, I'm certain we've fixed this before.

Will try to get a re;ease out this week to address thisone, along with some other recent bugfixes.

Changed in canonical-livepatch-charm:
importance: Wishlist → Medium
status: New → Triaged
assignee: nobody → Barry Price (barryprice)
Revision history for this message
Barry Price (barryprice) wrote :

Okay, so in this case it was actually an old release on the unit:

-rw-r--r-- 1 root root 8387 Apr 24 2018 canonical_livepatch.py

Closing this as invalid, and working out why the latest wasn't deployed, even though .codetree_charmstore shows it was downloaded (which is still a problem, but not a charm bug).

Changed in canonical-livepatch-charm:
status: Triaged → Invalid
assignee: Barry Price (barryprice) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.