lp:~kwmonroe/charms/trusty/layer-ibm-im/switch-to-resources

Created by Kevin W Monroe and last modified
Get this branch:
bzr branch lp:~kwmonroe/charms/trusty/layer-ibm-im/switch-to-resources
Only Kevin W Monroe can upload to this branch. If you are Kevin W Monroe please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Kevin W Monroe
Status:
Development

Recent revisions

21. By Kevin W Monroe

change upgrade-charm hook logic

The first time a fixpack resource was uploaded, the upgrade-charm hook would
fetch it, md5sum it, and compare that sum to a bogus previous value (because
there was no previous valid fixpack). This sum mismatch triggered the install
of a new fixpack, which goes out to re-fetch it. The double-fetch on initial
fixpack (first in upgrade-charm, then in install_ibm_im_fixpack) is
inefficient.

Instead, upgrade-charm now checks for the ibm-im.updated state, which is only
set when a fixpack gets installed. On initial fixpack upload, this state will
not be set, so we avoid the double fetch.

20. By Kevin W Monroe

tweak sentry status message in amulet test

19. By Kevin W Monroe

update sentry message for placeholder resource test

18. By Kevin W Monroe

fixup last commit (missed an extra ibm_im_fp_empty assignment)

17. By Kevin W Monroe

use underscores instead of hyphens in function names

16. By Kevin W Monroe

never let the grep fail when detecting an empty fixpack (set -e will make the hook fail on subshell failures); make check-fixpack only run during upgrade-charm (otherwise it ran on update-status, every 5 minutes)

15. By Kevin W Monroe

be more explicity with log/status messages

14. By Kevin W Monroe

update tests since we can test charm deployment with a placeholder resource

13. By Kevin W Monroe

update fixpack placeholder description

12. By Kevin W Monroe

handle empty fixpack resource (need this since resources cannot be optional)

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers