lp:~mew/charm-helpers/fetchallthethings

Created by Matthew Wedgwood and last modified
Get this branch:
bzr branch lp:~mew/charm-helpers/fetchallthethings
Only Matthew Wedgwood can upload to this branch. If you are Matthew Wedgwood please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Matthew Wedgwood
Project:
Charm Helpers
Status:
Merged

Recent revisions

40. By Matthew Wedgwood

Create 'fetched' directory if it does not exist

39. By Matthew Wedgwood

fix stupid confusing bugs in downloads and archive extraction. update tests to catch them

38. By Matthew Wedgwood

Add support for uncompressed tar archives

37. By Matthew Wedgwood

merge from trunk

36. By Liam Young

[jamespage]
Redux of configure_source code in fetch helper

1) Fixed up a number of bugs and issues in the original code

2) Implement correct cloud: handling

3) Added tests for everything.

35. By James Page

[gandelman-a]

This adds some small linux-specific utility helpers useful when working with block devices and storage. They are mostly derived from the Openstack helpers but renamed and tests added.

34. By James Page

[gandelman-a]

Fixup broken test to ensure that services are only restarted once.

host.core.restart_on_change(): Ensure restarts happen as described in map.

33. By James Page

[stub] Misc fixes around use of Serializable including:

1) Make Serializable pickleable

2) Ensure string results are usable strings

32. By Matthew Wedgwood

[james-page] Refactoring of service control code in host helper

1) Use 'service' command for all service control

Detecting upstart and init.d configuration files is overkill; this is
exactly what the 'service' command is design todo and it also deals with
saucy onwards where init.d and upstart configuration with the same
name might be installed.

'service' will always do the right thing

2) Added restart and reload helpers

reload detects an error (say the service is not running) and will fallback
to restart if so.

This is inline with the openstack charm helpers code.

31. By Matthew Wedgwood

[james-page] Various refactoring + additions to hookenv

1) cached decorator

Allows caching of function + args to avoid repeated calls out the cli
to juju commands.

2) Normalizing missing unit/config/relation data to None

relation_get('missing') == None
config('missing') == None
unit_get('missing') == None

3) Normalized use of the Serializable object a bit

And added a unit test to cover missing attribute lookups

Question: maybe this should actually return 'None' rather than throwing
an exception inline with 2).

4) Tweaks some tests to be closer to juju behaviour with json

5) Tidied misc pep8/pylint warnings.

Branch metadata

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

Subscribers