Merge lp://qastaging/~brad-marshall/charms/precise/nova-compute/instance-path-config into lp://qastaging/~openstack-charmers-archive/charms/precise/nova-compute/trunk
Proposed by
Marco Ceppi
Status: | Merged |
---|---|
Merged at revision: | 58 |
Proposed branch: | lp://qastaging/~brad-marshall/charms/precise/nova-compute/instance-path-config |
Merge into: | lp://qastaging/~openstack-charmers-archive/charms/precise/nova-compute/trunk |
Diff against target: |
106 lines (+31/-1) 7 files modified
config.yaml (+3/-0) hooks/nova_compute_context.py (+3/-0) hooks/nova_compute_hooks.py (+6/-1) hooks/nova_compute_utils.py (+5/-0) templates/folsom/nova.conf (+5/-0) templates/grizzly/nova.conf (+5/-0) templates/havana/nova.conf (+4/-0) |
To merge this branch: | bzr merge lp://qastaging/~brad-marshall/charms/precise/nova-compute/instance-path-config |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jacek Nykis (community) | Needs Resubmitting | ||
James Page | Needs Fixing | ||
Review via email:
|
This proposal supersedes a proposal from 2014-02-19.
Description of the change
Added an instances-path variable to the config that allows setting of instances_path in nova.conf. It will also ensure the directory is owned by user nova.
To post a comment you must log in.
Hi Brad
Thanks for this merge-proposal - looks useful.
Despite what charm proof tells you, I think not providing a default value is the right thing todo here - it avoids having todo things like:
if config( 'instances- path') != '':
...
as config() will return None for an unset value - resulting in cleaner code IMHO:
if config( 'instances- path') is None:
...
Please can you update inline with this.