canonical / charm-sysconfig

A subordinate charm to apply system settings like grub configurations or systemd configurations.
Apache License 2.0
0 stars 5 forks source link

charm upgrade results in reboot request #13

Closed dashmage closed 8 months ago

dashmage commented 8 months ago

upgrading the sysconfig charm results in status saying reboot is needed. this is because upgrade-charm is running config-changed which rewrites the config files and therefore even if their contents remains the same their timestamp changes which breaks the code in BootResourceState.resources_changed_since_boot() and BootResourceState.get_resource_changed_timestamp().


Imported from Launchpad using lp2gh.

dashmage commented 8 months ago

(by hopem) There is also bug 1863594 which is preventing update-status from running so both need fixing to resolve the problem.

dashmage commented 8 months ago

(by hopem) 20.02 backport submitted - https://code.launchpad.net/~hopem/charm-sysconfig/+git/charm-sysconfig/+merge/381070