Merge lp:~fginther/charms/trusty/jenkaas/configure-slaves into lp:~canonical-ci-engineering/charms/trusty/jenkaas/trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~fginther/charms/trusty/jenkaas/configure-slaves |
Merge into: | lp:~canonical-ci-engineering/charms/trusty/jenkaas/trunk |
Diff against target: |
142 lines (+71/-2) (has conflicts) 2 files modified
hooks/actions.py (+26/-1) hooks/services.py (+45/-1) Text conflict in hooks/actions.py Text conflict in hooks/services.py |
To merge this branch: | bzr merge lp:~fginther/charms/trusty/jenkaas/configure-slaves |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Para Siva (community) | Approve | ||
Joe Talbott (community) | Approve | ||
Review via email: mp+262618@code.launchpad.net |
Commit message
Adds a slave_manager to connect other nodes via the jenkaas-slave relation.
Description of the change
Adds a slave_manager to connect other nodes via the jenkaas-slave relation.
Configuring a slave requires the jenkins service to be running (and not just starting up). I didn't think this fit well with the existing service manager as all of those actions should take place while the service is stopped. So, I created a separate service manager, slave_manager, specifically for handling actions as a result of relation changes. This charm only supports a single relation (jenkaas-slave) so it's assumed that this is the relation being managed.
The InRelation and NotInRelation classes were created to fit within the service managers "required_data" usage.
Unmerged revisions
- 12. By Francis Ginther
-
flake8 cleanup.
- 11. By Francis Ginther
-
Remove debug logging.
- 10. By Francis Ginther
-
Remove broken and changed hooks as they are just repeating the departed and joined events and clean up the code around creating and deleting a node.
- 9. By Francis Ginther
-
Add missing jenkaas-
slave-relation- broken and jenkaas- slave-relation- departed symlinks. - 8. By Francis Ginther
-
Create a slave_manager to handle the relations.
- 7. By Francis Ginther
-
First pass at connecting and disconnecting slaves.
I'm not a fan of the InRelation and NotInRelation classes (since they are essentially a method call) but if that's the only way then so be it.