Merge lp:~springfield-team/charm-helpers/trunk into lp:charm-helpers

Proposed by Shiv Prasad Rao
Status: Merged
Merge reported by: Jorge Niedbalski
Merged at revision: not available
Proposed branch: lp:~springfield-team/charm-helpers/trunk
Merge into: lp:charm-helpers
Diff against target: 38 lines (+7/-2)
2 files modified
charmhelpers/contrib/openstack/context.py (+5/-1)
charmhelpers/contrib/openstack/neutron.py (+2/-1)
To merge this branch: bzr merge lp:~springfield-team/charm-helpers/trunk
Reviewer Review Type Date Requested Status
Jorge Niedbalski (community) Approve
Hua Zhang (community) Approve
charmers Pending
Review via email: mp+234402@code.launchpad.net

Description of the change

Additional changes for n1kv

To post a comment you must log in.
Revision history for this message
Hua Zhang (zhhuabj) wrote :

looks good, ship it.

review: Approve
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

Looks good to me.

review: Approve
205. By Shiv Prasad Rao

bug fix

Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

OK, i slightly modified the source to complain a failing test.

======================================================================
FAIL: test_neutron_n1kv_plugin_context (tests.contrib.openstack.test_os_contexts.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
    return func(*args, **keywargs)
  File "/home/niedbalski/src/juju/charms/charm-helpers/tests/contrib/openstack/test_os_contexts.py", line 1506, in test_neutron_n1kv_plugin_context
    }, neutron.n1kv_ctxt())
AssertionError: {'vsm_username': 'n1kv', 'neutron_security_groups': True, 'vsm_ip': 'n1kv', 'res [truncated]... != {'vsm_username': 'n1kv', 'neutron_security_groups': True, 'user_config_flags': { [truncated]...
  {'config': 'some.quantum.driver.class',
   'core_plugin': 'some.quantum.driver.class',
   'local_ip': '10.0.0.1',
   'neutron_plugin': 'n1kv',
   'neutron_security_groups': True,
   'restrict_policy_profiles': 'n1kv',
+ 'user_config_flags': {},
   'vsm_ip': 'n1kv',
   'vsm_password': 'n1kv',
   'vsm_username': 'n1kv'}

Other than that, looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charmhelpers/contrib/openstack/context.py'
2--- charmhelpers/contrib/openstack/context.py 2014-08-06 03:02:27 +0000
3+++ charmhelpers/contrib/openstack/context.py 2014-09-17 16:21:39 +0000
4@@ -597,6 +597,7 @@
5 self.network_manager)
6 n1kv_config = neutron_plugin_attribute(self.plugin, 'config',
7 self.network_manager)
8+ n1kv_user_config_flags = config('n1kv-config-flags')
9 n1kv_ctxt = {
10 'core_plugin': driver,
11 'neutron_plugin': 'n1kv',
12@@ -607,8 +608,11 @@
13 'vsm_username': config('n1kv-vsm-username'),
14 'vsm_password': config('n1kv-vsm-password'),
15 'restrict_policy_profiles': config(
16- 'n1kv_restrict_policy_profiles'),
17+ 'n1kv-restrict-policy-profiles'),
18 }
19+ if n1kv_user_config_flags:
20+ flags = config_flags_parser(n1kv_user_config_flags)
21+ n1kv_ctxt['user_config_flags'] = flags
22
23 return n1kv_ctxt
24
25
26=== modified file 'charmhelpers/contrib/openstack/neutron.py'
27--- charmhelpers/contrib/openstack/neutron.py 2014-06-19 17:10:40 +0000
28+++ charmhelpers/contrib/openstack/neutron.py 2014-09-17 16:21:39 +0000
29@@ -138,7 +138,8 @@
30 relation_prefix='neutron',
31 ssl_dir=NEUTRON_CONF_DIR)],
32 'services': [],
33- 'packages': [['neutron-plugin-cisco']],
34+ 'packages': [[headers_package()] + determine_dkms_package(),
35+ ['neutron-plugin-cisco']],
36 'server_packages': ['neutron-server',
37 'neutron-plugin-cisco'],
38 'server_services': ['neutron-server']

Subscribers

People subscribed via source and target branches