Merge lp://staging/~frankban/juju-quickstart/old-style-bundles-regression into lp://staging/juju-quickstart
Status: | Merged |
---|---|
Merged at revision: | 123 |
Proposed branch: | lp://staging/~frankban/juju-quickstart/old-style-bundles-regression |
Merge into: | lp://staging/juju-quickstart |
Diff against target: |
1630 lines (+868/-269) 15 files modified
quickstart/__init__.py (+1/-1) quickstart/app.py (+4/-2) quickstart/charmstore.py (+161/-0) quickstart/manage.py (+5/-5) quickstart/models/bundles.py (+136/-59) quickstart/models/references.py (+9/-48) quickstart/netutils.py (+9/-18) quickstart/settings.py (+2/-2) quickstart/tests/helpers.py (+5/-4) quickstart/tests/models/test_bundles.py (+166/-25) quickstart/tests/models/test_references.py (+0/-37) quickstart/tests/test_app.py (+31/-27) quickstart/tests/test_charmstore.py (+313/-0) quickstart/tests/test_netutils.py (+25/-40) quickstart/utils.py (+1/-1) |
To merge this branch: | bzr merge lp://staging/~frankban/juju-quickstart/old-style-bundles-regression |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+252353@code.staging.launchpad.net |
Description of the change
Fix the old-style bundle regression.
This branch fixes
https:/
In essence, legacy bundles are converted by the
ingestion process like the following:
- if a basked includes multiple bundles, the resulting
v4 bundle name is {basket-
each {bundle-name};
- if a basket only includes one bundle, the v4 bundle
is just {basket-name}.
Previously quickstart always assumed the former: this
branch adds a check for the latter before exiting with
an error.
This branch also introduces a charmstore module in
quickstart. All the interactions between quickstart
and the charm store are now collected in this module.
As part of this refactoring, quickstart is now able
to distinguish HTTP 404 errors and all the other
generic IOErrors that can be raised when connecting
to the network.
Also simplified the logging format and bootstrap logging
earlier in the application execution.
Tests: `make check`.
QA:
install bundles with quickstart:
`devenv/
Try the following bundles:
- devenv/
- devenv/
- devenv/
- devenv/
- devenv/
Those instead should return errors:
- devenv/
- devenv/
- devenv/
- devenv/
- devenv/
- devenv/
Reviewers: mp+252353_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix the old-style bundle regression.
This branch fixes /bugs.launchpad .net/juju- quickstart/ +bug/1429129 name}-{ bundle- name} for
https:/
In essence, legacy bundles are converted by the
ingestion process like the following:
- if a basked includes multiple bundles, the resulting
v4 bundle name is {basket-
each {bundle-name};
- if a basket only includes one bundle, the v4 bundle
is just {basket-name}.
Previously quickstart always assumed the former: this
branch adds a check for the latter before exiting with
an error.
This branch also introduces a charmstore module in
quickstart. All the interactions between quickstart
and the charm store are now collected in this module.
As part of this refactoring, quickstart is now able
to distinguish HTTP 404 errors and all the other
generic IOErrors that can be raised when connecting
to the network.
Also simplified the logging format and bootstrap logging
earlier in the application execution.
Tests: `make check`.
QA: bin/juju- quickstart {bundle}` bin/juju- quickstart mediawiki-single bin/juju- quickstart u/bigdata- dev/apache- analytics- sql bin/juju- quickstart bundle: mediawiki/ scalable bin/juju- quickstart ~landscape/ landscape- dense-maas/ landscape- dense-maas bin/juju- quickstart bundle: django/ example- single
install bundles with quickstart:
`devenv/
Try the following bundles:
- devenv/
- devenv/
- devenv/
- devenv/
bundle:
- devenv/
Those instead should return errors: bin/juju- quickstart mediawiki/trusty bin/juju- quickstart mediawiki-nosuch bin/juju- quickstart no-such bin/juju- quickstart bundle:no/such bin/juju- quickstart bundle:invalid bin/juju- quickstart ~landscape/ landscape- dense-maas/ landscape
- devenv/
- devenv/
- devenv/
- devenv/
- devenv/
- devenv/
bundle:
https:/ /code.launchpad .net/~frankban/ juju-quickstart /old-style- bundles- regression/ +merge/ 252353
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/215070043/
Affected files (+856, -266 lines): __init_ _.py charmstore. py manage. py models/ bundles. py models/ references. py netutils. py settings. py tests/helpers. py tests/models/ test_bundles. py tests/models/ test_references .py tests/test_ app.py tests/test_ charmstore. py tests/test_ netutils. py
A [revision details]
M quickstart/
M quickstart/app.py
A quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
M quickstart/
A quickstart/
M quickstart/