Merge lp:~hopem/charms/trusty/nova-compute/fix-missing-default into lp:~openstack-charmers-archive/charms/trusty/nova-compute/next

Proposed by Edward Hope-Morley
Status: Merged
Merged at revision: 101
Proposed branch: lp:~hopem/charms/trusty/nova-compute/fix-missing-default
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-compute/next
Diff against target: 43 lines (+5/-6)
3 files modified
config.yaml (+1/-1)
hooks/nova_compute_context.py (+3/-3)
unit_tests/test_nova_compute_contexts.py (+1/-2)
To merge this branch: bzr merge lp:~hopem/charms/trusty/nova-compute/fix-missing-default
Reviewer Review Type Date Requested Status
Liam Young (community) Approve
Review via email: mp+249100@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #1830 nova-compute-next for hopem mp249100
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/1830/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #1658 nova-compute-next for hopem mp249100
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/1658/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #1849 nova-compute-next for hopem mp249100
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 1
  make: *** [test] Error 1

Full amulet test output: http://paste.ubuntu.com/10146422/
Build: http://10.245.162.77:8080/job/charm_amulet_test/1849/

Revision history for this message
Liam Young (gnuoy) wrote :

Approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2014-12-15 11:38:06 +0000
3+++ config.yaml 2015-02-09 18:16:36 +0000
4@@ -124,7 +124,7 @@
5 this allows you to differentiate between them.
6 disable-neutron-security-groups:
7 type: boolean
8- default:
9+ default: False
10 description: |
11 Disable neutron based security groups - setting this configuration option
12 will override any settings configured via the nova-cloud-controller charm.
13
14=== modified file 'hooks/nova_compute_context.py'
15--- hooks/nova_compute_context.py 2014-12-15 10:28:47 +0000
16+++ hooks/nova_compute_context.py 2015-02-09 18:16:36 +0000
17@@ -421,9 +421,9 @@
18 def __call__(self):
19 ctxt = super(NeutronComputeContext, self).__call__()
20 # NOTE(jamespage) support override of neutron security via config
21- if config('disable-neutron-security-groups') is not None:
22- ctxt['disable_neutron_security_groups'] = \
23- config('disable-neutron-security-groups')
24+ if config('disable-neutron-security-groups'):
25+ ctxt['disable_neutron_security_groups'] = True
26+
27 return ctxt
28
29
30
31=== modified file 'unit_tests/test_nova_compute_contexts.py'
32--- unit_tests/test_nova_compute_contexts.py 2014-12-03 23:23:54 +0000
33+++ unit_tests/test_nova_compute_contexts.py 2015-02-09 18:16:36 +0000
34@@ -202,8 +202,7 @@
35 self.test_config.set('disable-neutron-security-groups', False)
36 qplugin = context.NeutronComputeContext()
37 with patch.object(qplugin, '_ensure_packages'):
38- self.assertEquals({'disable_neutron_security_groups': False},
39- qplugin())
40+ self.assertEquals({}, qplugin())
41
42 @patch('subprocess.call')
43 def test_host_IP_context(self, _call):

Subscribers

People subscribed via source and target branches