Merge lp://staging/~billy-olsen/openstack-charm-testing/idempotent-post-deploy-config into lp://staging/openstack-charm-testing

Proposed by Billy Olsen
Status: Merged
Merged at revision: 271
Proposed branch: lp://staging/~billy-olsen/openstack-charm-testing/idempotent-post-deploy-config
Merge into: lp://staging/openstack-charm-testing
Diff against target: 125 lines (+61/-7)
3 files modified
bin/post-deploy-config (+59/-5)
tools/quota_high.sh (+1/-1)
tools/quota_million.sh (+1/-1)
To merge this branch: bzr merge lp://staging/~billy-olsen/openstack-charm-testing/idempotent-post-deploy-config
Reviewer Review Type Date Requested Status
Ryan Beisner Approve
Edward Hope-Morley Needs Fixing
Review via email: mp+309807@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Just ran this and I got the following error:

+ ./bin/post-deploy-config neutron-gateway
Using default network name: hopem_admin_net
Traceback (most recent call last):
  File "./bin/post-deploy-config", line 80, in <module>
    config_ports = get_data_port_config(juju_version, service)
  File "./bin/post-deploy-config", line 17, in get_data_port_config
    data_ports = config['settings']['data-port']['value']
KeyError: 'value'

review: Needs Fixing
256. By Billy Olsen

On initial deployment, the default value for the data ports will be empty
and therefore parsing the get-config doesn't contain the value output.
This changes the code to tolerate that.

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Thank you for your work on this. Fixing lint on the way in. ;-)

bin/post-deploy-config:19:23: F821 undefined name 'data_port_settings'
bin/post-deploy-config:75:1: W293 blank line contains whitespace
bin/post-deploy-config:89:1: W293 blank line contains whitespace
bin/post-deploy-config:94:1: W293 blank line contains whitespace
bin/post-deploy-config:115:1: W293 blank line contains whitespace

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: