Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1254)

Issue 5892046: Agent lifecycle suport for subordinates

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by bcsaller
Modified:
12 years ago
Reviewers:
hazmat, mp+99095
Visibility:
Public.

Description

Agent lifecycle suport for subordinates Includes changes to the unit lifecycle to support deployment of subordinates in reaction to relation events. https://code.launchpad.net/~bcsaller/juju/subordinate-unit-agent-deploy/+merge/101475 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 15

Patch Set 2 : Agent lifecycle suport for subordinates #

Total comments: 6

Patch Set 3 : Agent lifecycle suport for subordinates #

Total comments: 10

Patch Set 4 : Agent lifecycle suport for subordinates #

Patch Set 5 : Agent lifecycle suport for subordinates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4801 lines, -3157 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A bin/relation-ids View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A examples/precise/recorder/hooks/juju-info-relation-changed View 1 chunk +5 lines, -0 lines 0 comments Download
A examples/precise/recorder/hooks/juju-info-relation-departed View 1 chunk +3 lines, -0 lines 0 comments Download
A examples/precise/recorder/hooks/juju-info-relation-joined View 1 chunk +6 lines, -0 lines 0 comments Download
A examples/precise/recorder/metadata.yaml View 1 chunk +9 lines, -0 lines 0 comments Download
A examples/precise/recorder/revision View 1 chunk +1 line, -0 lines 0 comments Download
M juju/agents/tests/test_machine.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
M juju/agents/unit.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M juju/charm/base.py View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M juju/charm/bundle.py View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M juju/charm/directory.py View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M juju/charm/repository.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M juju/charm/tests/test_bundle.py View 1 2 3 2 chunks +29 lines, -0 lines 0 comments Download
M juju/control/bootstrap.py View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M juju/control/config_set.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M juju/control/destroy_environment.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M juju/control/destroy_service.py View 1 2 3 2 chunks +29 lines, -0 lines 0 comments Download
M juju/control/remove_relation.py View 1 2 3 2 chunks +22 lines, -1 line 0 comments Download
M juju/control/scp.py View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M juju/control/status.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M juju/control/tests/test_bootstrap.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M juju/control/tests/test_destroy_service.py View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
M juju/control/tests/test_remove_relation.py View 1 2 3 2 chunks +21 lines, -1 line 0 comments Download
M juju/control/tests/test_status.py View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M juju/environment/config.py View 1 2 3 4 4 chunks +9 lines, -4 lines 0 comments Download
M juju/environment/environment.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M juju/environment/tests/test_config.py View 1 2 3 4 5 chunks +23 lines, -0 lines 0 comments Download
M juju/environment/tests/test_environment.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M juju/errors.py View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M juju/hooks/cli.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M juju/hooks/commands.py View 1 2 3 4 5 chunks +44 lines, -1 line 0 comments Download
M juju/hooks/executor.py View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M juju/hooks/invoker.py View 1 2 3 6 chunks +75 lines, -9 lines 0 comments Download
M juju/hooks/protocol.py View 1 2 3 4 9 chunks +87 lines, -16 lines 0 comments Download
M juju/hooks/scheduler.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M juju/hooks/tests/test_cli.py View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M juju/hooks/tests/test_communications.py View 1 2 3 4 11 chunks +56 lines, -12 lines 0 comments Download
M juju/hooks/tests/test_invoker.py View 1 2 3 4 40 chunks +379 lines, -47 lines 0 comments Download
M juju/lib/lxc/__init__.py View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M juju/lib/lxc/tests/test_lxc.py View 1 2 5 chunks +12 lines, -6 lines 0 comments Download
M juju/machine/unit.py View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M juju/providers/ec2/__init__.py View 1 2 3 4 4 chunks +27 lines, -2 lines 0 comments Download
M juju/providers/ec2/files.py View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M juju/providers/ec2/tests/common.py View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M juju/providers/ec2/tests/test_files.py View 1 2 3 4 2 chunks +18 lines, -1 line 0 comments Download
M juju/providers/ec2/tests/test_launch.py View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M juju/providers/ec2/tests/test_provider.py View 1 2 3 4 4 chunks +62 lines, -3 lines 0 comments Download
M juju/providers/ec2/tests/test_utils.py View 1 2 3 4 4 chunks +53 lines, -18 lines 0 comments Download
M juju/providers/ec2/utils.py View 1 2 3 4 4 chunks +17 lines, -4 lines 0 comments Download
M juju/state/errors.py View 1 2 3 4 4 chunks +43 lines, -5 lines 0 comments Download
M juju/state/hook.py View 1 2 3 10 chunks +118 lines, -34 lines 0 comments Download
M juju/state/relation.py View 1 2 3 4 chunks +17 lines, -5 lines 0 comments Download
M juju/state/tests/test_errors.py View 1 2 3 4 2 chunks +36 lines, -3 lines 0 comments Download
M juju/state/tests/test_hook.py View 1 2 3 10 chunks +295 lines, -20 lines 0 comments Download
M juju/state/tests/test_relation.py View 1 2 3 4 chunks +23 lines, -5 lines 0 comments Download
M juju/state/tests/test_service.py View 1 2 3 1 chunk +2889 lines, -2890 lines 0 comments Download
M juju/state/tests/test_topology.py View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M juju/state/topology.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M juju/tests/test_errors.py View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M juju/unit/charm.py View 1 chunk +1 line, -0 lines 0 comments Download
M juju/unit/deploy.py View 1 2 3 chunks +13 lines, -12 lines 0 comments Download
M juju/unit/lifecycle.py View 1 2 3 5 chunks +54 lines, -2 lines 0 comments Download
M juju/unit/tests/test_lifecycle.py View 1 2 3 7 chunks +113 lines, -6 lines 0 comments Download

Messages

Total messages: 11
bcsaller
Please take a look.
12 years, 1 month ago (2012-03-23 18:51:45 UTC) #1
hazmat
just some initial feedback, although the add_subordinate_unit would more properly be applied to rel-type branch. ...
12 years, 1 month ago (2012-03-25 21:12:41 UTC) #2
bcsaller
Please take a look.
12 years ago (2012-04-03 06:52:03 UTC) #3
bcsaller
[WIP] I spent some time merging and retesting this branch. I didn't properly respond to ...
12 years ago (2012-04-03 07:03:41 UTC) #4
bcsaller
The previously mentioned script ------------------ #!/bin/bash set -x ./bin/juju destroy-environment ./bin/juju bootstrap ./bin/juju deploy --repository ...
12 years ago (2012-04-03 07:07:09 UTC) #5
hazmat
outside of the lack of test/info around subordinate removal this looks good. http://codereview.appspot.com/5892046/diff/7001/juju/agents/unit.py File juju/agents/unit.py ...
12 years ago (2012-04-04 16:38:51 UTC) #6
bcsaller
https://codereview.appspot.com/5892046/diff/1/juju/agents/unit.py File juju/agents/unit.py (right): https://codereview.appspot.com/5892046/diff/1/juju/agents/unit.py#newcode40 juju/agents/unit.py:40: container_name = os.environ.get("JUJU_CONTAINER_NAME", "") On 2012/03/25 21:12:41, hazmat wrote: ...
12 years ago (2012-04-09 06:00:04 UTC) #7
hazmat
So based on our conversation, and the desire to land this functionality soon, we should ...
12 years ago (2012-04-09 23:02:22 UTC) #8
bcsaller
Please take a look.
12 years ago (2012-04-10 23:01:30 UTC) #9
bcsaller
Please take a look.
12 years ago (2012-04-11 01:23:52 UTC) #10
hazmat
12 years ago (2012-04-11 09:40:12 UTC) #11
As has been noted a few times, this can't be reviewed till the diff
actually looks sane.

-k


On Tue, Apr 10, 2012 at 9:23 PM, <bcsaller@gmail.com> wrote:

> Please take a look.
>
>
https://codereview.appspot.**com/5892046/<https://codereview.appspot.com/5892...
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b