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

Issue 51470044: Remove support for PyJuju and rapi from charm.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by rharding
Modified:
10 years, 4 months ago
Reviewers:
mp+201510, frankban
Visibility:
Public.

Description

Remove support for PyJuju and rapi from charm. - Removes the support for running rapi/pyjuju. - Removes the agent used to communicate with zookeeper. - Removes anything pertaining to zookeeper. - Attempts to clean up docs and such to make sense with pure juju-core. Note: - The functional test run was taking 62min to complete for me. The timeout is bumped to 80min to help allow it to complete. This was against ec2. https://code.launchpad.net/~rharding/charms/precise/juju-gui/remove-pyjuju/+merge/201510 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 28
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -695 lines) Patch
M Dependencies.md View 1 chunk +1 line, -2 lines 0 comments Download
M Makefile View 1 chunk +1 line, -1 line 0 comments Download
M README.md View 1 chunk +1 line, -8 lines 6 comments Download
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M config.yaml View 3 chunks +4 lines, -30 lines 0 comments Download
M config/haproxy.cfg.template View 1 chunk +3 lines, -7 lines 1 comment Download
D config/juju-api-agent.conf.template View 1 chunk +0 lines, -18 lines 0 comments Download
D config/juju-api-improv.conf.template View 1 chunk +0 lines, -12 lines 0 comments Download
M hooks/backend.py View 3 chunks +3 lines, -42 lines 1 comment Download
M hooks/utils.py View 15 chunks +11 lines, -137 lines 9 comments Download
M tests/20-functional.test View 11 chunks +12 lines, -44 lines 11 comments Download
M tests/test_backends.py View 17 chunks +41 lines, -227 lines 0 comments Download
M tests/test_utils.py View 15 chunks +13 lines, -167 lines 0 comments Download

Messages

Total messages: 4
rharding
Please take a look.
10 years, 4 months ago (2014-01-14 15:40:07 UTC) #1
frankban
Thanks a lot for getting rid of all this pyJuju stuff Rick! This branch is ...
10 years, 4 months ago (2014-01-14 17:26:36 UTC) #2
rharding
I'm fighing lbox. When I updated this it put it over at a new url. ...
10 years, 4 months ago (2014-01-15 00:03:16 UTC) #3
frankban
10 years, 4 months ago (2014-01-15 08:58:40 UTC) #4
https://codereview.appspot.com/51470044/diff/1/hooks/utils.py
File hooks/utils.py (right):

https://codereview.appspot.com/51470044/diff/1/hooks/utils.py#newcode148
hooks/utils.py:148: return api_addresses.split()[0]
On 2014/01/15 00:03:16, rharding wrote:
> On 2014/01/14 17:26:36, frankban wrote:
> > So you decided to stop supporting also old releases of juju-core.
> > I am not sure about this: at least we should document it more explicitly.
> 
> Can you talk about this more? My understanding is that we got rid of the agent
> bit and that was the conf file we've removed as part of that. Is the machiner
> agent file something different? 

Those are two different concepts:
- the pyJuju API agent is the one that was started in the GUI node by running
the rapi-delta branch. The GUI used it as WebSocket server, and the agent itself
was connected to the bootstrap node Zookeper instance. Your branch get rid of
this machinery, and that's ok;
- the machiner agent file is a YAML created by juju-core which includes the
information required by the machiner worker. The API addresses are part of that
information. It must be considered an internal juju-core detail, and for this
reason we introduced the JUJU_API_ADDRESSES env var, included in the hooks'
execution context. But old versions of juju-core don't support this, so the
function strategy was:
  - try to use the environment variable;
  - if it is not present, parse the machiner agent file.
I am comfortable with that strategy, and I'd be inclined to preserve that
behavior. Anyway, as I mentioned, I can be ok in dropping support for old
juju-core releases if we clearly document it.
Sign in to reply to this message.

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