Merge lp:~james-page/charms/precise/nova-cloud-controller/vmware-nsx into lp:~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next

Proposed by James Page
Status: Merged
Merged at revision: 79
Proposed branch: lp:~james-page/charms/precise/nova-cloud-controller/vmware-nsx
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next
Diff against target: 97 lines (+24/-12)
4 files modified
config.yaml (+11/-10)
hooks/nova_cc_context.py (+1/-1)
templates/icehouse/neutron.conf (+1/-1)
templates/icehouse/nsx.ini (+11/-0)
To merge this branch: bzr merge lp:~james-page/charms/precise/nova-cloud-controller/vmware-nsx
Reviewer Review Type Date Requested Status
Liam Young (community) Approve
Review via email: mp+221684@code.launchpad.net

This proposal supersedes a proposal from 2014-05-21.

Description of the change

Fixup support for NSX (renamed from NVP) in Icehouse

To post a comment you must log in.
Revision history for this message
Chris Glass (tribaal) wrote : Posted in a previous version of this proposal

[1]
Lines 66 and 67 in the diff are not equivalent: are we sure we won't have to check in config("neutron-plugin") as well?
I would defensively add the check as well, like:

in_quantum = config('quantum-plugin') in ['nvp', 'nsx']
in_neutron = config('neutron-plugin') in ['nvp', 'nsx']

if in_quantum or in_neutron:
    ...

Revision history for this message
Chris Glass (tribaal) wrote : Posted in a previous version of this proposal

I realized my previous comment is unecessary, after looking at the quantum-gateway branch.

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

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2014-04-16 08:47:14 +0000
+++ config.yaml 2014-06-02 09:22:33 +0000
@@ -69,10 +69,12 @@
69 Quantum plugin to use for network management; supports69 Quantum plugin to use for network management; supports
70 .70 .
71 ovs - OpenvSwitch Plugin71 ovs - OpenvSwitch Plugin
72 nvp - Nicira Network Virtualization Platform72 nvp|nsx - Nicira Network Virtualization Platform/
73 VMware NSX Network Virtualization Platform
74 (renamed for Icehouse)
73 .75 .
74 This configuration only has context when used with76 This configuration only has context when used with
75 network-manager Quantum.77 network-manager Quantum|Neutron.
76 quantum-security-groups:78 quantum-security-groups:
77 type: string79 type: string
78 default: "no"80 default: "no"
@@ -136,18 +138,18 @@
136 default: False138 default: False
137 description: |139 description: |
138 If set to True, supporting services will log to syslog.140 If set to True, supporting services will log to syslog.
139 # Neutron NVP Plugin configuration141 # Neutron NVP and VMware NSX plugin configuration
140 nvp-controllers:142 nvp-controllers:
141 type: string143 type: string
142 description: Space delimited addresses of NVP controllers144 description: Space delimited addresses of NVP/NSX controllers
143 nvp-username:145 nvp-username:
144 type: string146 type: string
145 default: admin147 default: admin
146 description: Username to connect to NVP controllers with148 description: Username to connect to NVP/NSX controllers with
147 nvp-password:149 nvp-password:
148 type: string150 type: string
149 default: admin151 default: admin
150 description: Password to connect to NVP controllers with152 description: Password to connect to NVP/NSX controllers with
151 nvp-cluster-name:153 nvp-cluster-name:
152 type: string154 type: string
153 default: example155 default: example
@@ -155,12 +157,11 @@
155 nvp-tz-uuid:157 nvp-tz-uuid:
156 type: string158 type: string
157 description: |159 description: |
158 This is uuid of the default NVP Transport zone that will be used for160 This is uuid of the default NVP/NSX Transport zone that will be used for
159 creating tunneled isolated Quantum networks. It needs to be created161 creating tunneled isolated Quantum networks. It needs to be created
160 in NVP before starting Quantum with the nvp plugin.162 in NVP before starting Quantum with the nvp plugin.
161 nvp-l3-uuid:163 nvp-l3-uuid:
162 type: string164 type: string
163 description: |165 description: |
164 This is uuid of the default NVP L3 Gateway Service.166 This is uuid of the default NVP/NSX L3 Gateway Service.
165 # end of NVP configuration167 # end of NVP/NSX configuration
166
167168
=== modified file 'hooks/nova_cc_context.py'
--- hooks/nova_cc_context.py 2014-04-12 21:25:19 +0000
+++ hooks/nova_cc_context.py 2014-06-02 09:22:33 +0000
@@ -161,7 +161,7 @@
161 def __call__(self):161 def __call__(self):
162 ctxt = super(NeutronCCContext, self).__call__()162 ctxt = super(NeutronCCContext, self).__call__()
163 ctxt['external_network'] = config('neutron-external-network')163 ctxt['external_network'] = config('neutron-external-network')
164 if 'nvp' in [config('quantum-plugin'), config('neutron-plugin')]:164 if config('quantum-plugin') in ['nvp', 'nsx']:
165 _config = config()165 _config = config()
166 for k, v in _config.iteritems():166 for k, v in _config.iteritems():
167 if k.startswith('nvp'):167 if k.startswith('nvp'):
168168
=== modified file 'templates/icehouse/neutron.conf'
--- templates/icehouse/neutron.conf 2014-04-09 07:58:21 +0000
+++ templates/icehouse/neutron.conf 2014-06-02 09:22:33 +0000
@@ -68,4 +68,4 @@
68[service_providers]68[service_providers]
69service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default69service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
70service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default70service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default
71service_provider=FIREWALL:Iptables:neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver:default
72\ No newline at end of file71\ No newline at end of file
72service_provider=FIREWALL:Iptables:neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver:default
7373
=== added file 'templates/icehouse/nsx.ini'
--- templates/icehouse/nsx.ini 1970-01-01 00:00:00 +0000
+++ templates/icehouse/nsx.ini 2014-06-02 09:22:33 +0000
@@ -0,0 +1,11 @@
1# icehouse
2###############################################################################
3# [ WARNING ]
4# Configuration file maintained by Juju. Local changes may be overwritten.
5###############################################################################
6[DEFAULT]
7nsx_user = {{ nvp_username }}
8nsx_password = {{ nvp_password }}
9nsx_controllers = {{ nvp_controllers }}
10default_tz_uuid = {{ nvp_tz_uuid }}
11default_l3_gw_service_uuid = {{ nvp_l3_uuid }}

Subscribers

People subscribed via source and target branches