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

Issue 14433049: Avoid installing from PPA if not required.

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

Description

Avoid installing from PPA if not required. No longer add the juju-gui PPA by default: the external repository is added only if required, i.e. if the legacy server is used or if a branch is passed to juju-gui-source. The only missing bit to make the charm work well from behind a firewall AFAICT is avoiding the release to be downloaded from Launchpad. Also included the shelltoolbox file in the charm: unfortunately the python-shelltoolbox package is not available on precise. On the other hand, this allows for getting rid of the bootstrap_utils.py file, and the install hook now feels cleaner. Refactoring + some magic removal on the backend framework. Now it should be less surprising, and also allows for more customizations, e.g. what I did in the install method. Also added missing tests for the backend framework: those were required in order to increase our control over what's really happening in the backend "hooks". Switched to the builtin Tornado server by default. This diff is very big, I am sorry, but: - you can ignore the bootstrap_utils removal; - you can ignore the shelltoolbox.py file: it is just a copy of the one present in the raring python-shelltoolbox package; - a lot of code is tests, the rest of the code should be quite easy to follow. QA: `make deploy` and watch the logs: - no PPA should be installed by default; - the deployment succeeds and the GUI works well; switch to builtin-server=false and watch the logs: - the PPA is installed (and then haproxy, apache...); - the config-change hook exits without errors and the GUI works well. Tests: `make unittest` (I ran the functional tests myself). Thank you! https://code.launchpad.net/~frankban/charms/precise/juju-gui/support-firewall/+merge/189645 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 12

Patch Set 2 : Avoid installing from PPA if not required. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1277 lines, -367 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M config.yaml View 1 chunk +1 line, -1 line 0 comments Download
M hooks/backend.py View 1 9 chunks +63 lines, -44 lines 0 comments Download
D hooks/bootstrap_utils.py View 1 chunk +0 lines, -77 lines 0 comments Download
M hooks/install View 2 chunks +17 lines, -21 lines 0 comments Download
A hooks/shelltoolbox.py View 1 1 chunk +669 lines, -0 lines 0 comments Download
M hooks/utils.py View 5 chunks +19 lines, -8 lines 0 comments Download
M revision View 1 chunk +1 line, -1 line 0 comments Download
M tests/20-functional.test View 1 1 chunk +5 lines, -2 lines 0 comments Download
M tests/requirements.pip View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/test_backends.py View 2 chunks +450 lines, -211 lines 0 comments Download
M tests/test_utils.py View 2 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 5
frankban
Please take a look.
10 years, 6 months ago (2013-10-07 15:50:28 UTC) #1
gary.poster
Wow! Great tests, and very nice improvement. Code LGTM. I will check with Rick as ...
10 years, 6 months ago (2013-10-07 17:01:08 UTC) #2
rharding
LGTM QA ok For QA I did a deploy, ssh'd into the box to verify ...
10 years, 6 months ago (2013-10-07 17:15:20 UTC) #3
frankban
*** Submitted: Avoid installing from PPA if not required. No longer add the juju-gui PPA ...
10 years, 6 months ago (2013-10-08 07:49:37 UTC) #4
frankban
10 years, 6 months ago (2013-10-08 08:00:14 UTC) #5
Hi Gary and Rick, thanks for your reviews!
Sign in to reply to this message.

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