Merge lp://staging/~bac/charms/trusty/openstack-dashboard/dashboard-plugin into lp://staging/~openstack-charmers-archive/charms/trusty/openstack-dashboard/next
Status: | Merged |
---|---|
Merged at revision: | 90 |
Proposed branch: | lp://staging/~bac/charms/trusty/openstack-dashboard/dashboard-plugin |
Merge into: | lp://staging/~openstack-charmers-archive/charms/trusty/openstack-dashboard/next |
Diff against target: |
116 lines (+47/-6) 4 files modified
hooks/horizon_hooks.py (+12/-3) hooks/horizon_utils.py (+1/-0) metadata.yaml (+3/-3) unit_tests/test_horizon_hooks.py (+31/-0) |
To merge this branch: | bzr merge lp://staging/~bac/charms/trusty/openstack-dashboard/dashboard-plugin |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Liam Young (community) | Approve | ||
Review via email:
|
Description of the change
This branch adds a new relation 'dashboard-plugin' for openstack-dashboard to communicate to subordinate plugin charms details about the installation so the plugin can insert itself.
Currently the two pieces of information sent via the relationship are bin_path and openstack_dir.
The bin_path can be different based on how openstack is installed by the charm. If installed via distro or cloud-archive, a debian package is used to install openstack and the system python libraries are modified. If installed via git source then a virtual environment is used. If a subordinate charm needs to install python packages via pip then it needs to know which pip to use. bin_path specifies the correct environment to use, either /usr/bin or the result of git_pip_venv_dir.
openstack_dir provides the path to where openstack is installed. Currently it is always /usr/share/
charm_lint_check #9387 openstack- dashboard- next for bac mp270177
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/12273326/ 10.245. 162.77: 8080/job/ charm_lint_ check/9387/
Build: http://