Merge lp:~ddellav/charms/trusty/glance/upgrade-action into lp:~openstack-charmers-archive/charms/trusty/glance/next
| Status: | Merged |
|---|---|
| Merged at revision: | 133 |
| Proposed branch: | lp:~ddellav/charms/trusty/glance/upgrade-action |
| Merge into: | lp:~openstack-charmers-archive/charms/trusty/glance/next |
| Diff against target: |
250 lines (+201/-1) 6 files modified
actions.yaml (+2/-0) actions/openstack_upgrade.py (+62/-0) config.yaml (+10/-0) hooks/glance_relations.py (+1/-1) unit_tests/test_actions_openstack_upgrade.py (+117/-0) unit_tests/test_glance_relations.py (+9/-0) |
| To merge this branch: | bzr merge lp:~ddellav/charms/trusty/glance/upgrade-action |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Corey Bryant | Approve on 2015-08-14 | ||
| James Page | 2015-07-22 | Needs Fixing on 2015-08-04 | |
|
Review via email:
|
|||
Description of the Change
This branch adds the openstack_upgrade action, action_
This action will upgrade the charm to the openstack version specified in the openstack-origin config option provided the action_
If the charm was installed from source (git_install) the upgrade action will gracefully fail.
The openstack_upgrade action utilizes the pre-existing do_openstack_
charm_unit_test #6262 glance-next for ddellav mp265592
UNIT OK: passed
charm_lint_check #6637 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #6264 glance-next for ddellav mp265592
UNIT FAIL: unit-test failed
UNIT Results (max last 2 lines):
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.
Full unit test output: http://
Build: http://
charm_lint_check #6638 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #6265 glance-next for ddellav mp265592
UNIT OK: passed
charm_amulet_test #5265 glance-next for ddellav mp265592
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_amulet_test #5267 glance-next for ddellav mp265592
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_amulet_test #5268 glance-next for ddellav mp265592
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_amulet_test #5269 glance-next for ddellav mp265592
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
ERROR subprocess encountered error code 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_lint_check #6733 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #6360 glance-next for ddellav mp265592
UNIT OK: passed
charm_amulet_test #5275 glance-next for ddellav mp265592
AMULET OK: passed
Build: http://
charm_lint_check #7485 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #6942 glance-next for ddellav mp265592
UNIT OK: passed
charm_amulet_test #5607 glance-next for ddellav mp265592
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
| James Page (james-page) wrote : | # |
I note some amulet tests failures as well - pls take a look
charm_lint_check #7583 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #7023 glance-next for ddellav mp265592
UNIT OK: passed
charm_amulet_test #5645 glance-next for ddellav mp265592
AMULET OK: passed
Build: http://
charm_lint_check #7738 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #7165 glance-next for ddellav mp265592
UNIT OK: passed
charm_amulet_test #5677 glance-next for ddellav mp265592
AMULET FAIL: amulet-test failed
AMULET Results (max last 2 lines):
make: *** [functional_test] Error 1
ERROR:root:Make target returned non-zero.
Full amulet test output: http://
Build: http://
charm_lint_check #7863 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #7284 glance-next for ddellav mp265592
UNIT OK: passed
charm_amulet_test #5700 glance-next for ddellav mp265592
AMULET OK: passed
Build: http://
| Corey Bryant (corey.bryant) wrote : | # |
Looking good DDV. I deployed your charm and successfully ran a few tests including an upgrade. I did see a formatting issue with the output of 'juju get' (see below). Also while you're in there you might want to make the invalid config message more explicit as mentioned below..
| Corey Bryant (corey.bryant) wrote : | # |
One more minor suggestion in the config.yaml description
- 136. By David Della Vecchia on 2015-08-14
-
Fixes formatting issue in config.yaml. Updated error message output to be more specific and helpful in action code.
charm_lint_check #8046 glance-next for ddellav mp265592
LINT OK: passed
charm_unit_test #7457 glance-next for ddellav mp265592
UNIT OK: passed
| Corey Bryant (corey.bryant) wrote : | # |
Looks and works good, and all of James' and my comments have been handled. I think this is ready to land. Thanks DDV!
charm_amulet_test #5790 glance-next for ddellav mp265592
AMULET OK: passed
Build: http://

charm_lint_check #6635 glance-next for ddellav mp265592
LINT FAIL: lint-test failed
LINT Results (max last 2 lines):
make: *** [lint] Error 1
ERROR:root:Make target returned non-zero.
Full lint test output: http:// paste.ubuntu. com/11922190/ 10.245. 162.77: 8080/job/ charm_lint_ check/6635/
Build: http://