Merge lp:~corey.bryant/ubuntu/trusty/neutron/fix-for-1273877 into lp:~ubuntu-server-dev/neutron/icehouse

Proposed by James Page
Status: Merged
Approved by: Chuck Short
Approved revision: 237
Merged at revision: 236
Proposed branch: lp:~corey.bryant/ubuntu/trusty/neutron/fix-for-1273877
Merge into: lp:~ubuntu-server-dev/neutron/icehouse
Diff against target: 244 lines (+130/-41)
9 files modified
debian/changelog (+13/-1)
debian/control (+26/-17)
debian/neutron-plugin-nicira.install (+0/-3)
debian/neutron-plugin-vmware.install (+3/-0)
debian/patches/series (+1/-0)
debian/patches/sql-alchemy-0.8.3-compat.patch (+67/-0)
debian/tests/control (+1/-1)
debian/tests/nicira-plugin (+0/-19)
debian/tests/vmware-plugin (+19/-0)
To merge this branch: bzr merge lp:~corey.bryant/ubuntu/trusty/neutron/fix-for-1273877
Reviewer Review Type Date Requested Status
Chuck Short (community) Needs Fixing
Review via email: mp+207952@code.launchpad.net

This proposal supersedes a proposal from 2014-02-24.

Description of the change

This is for neutron packing updates for https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/1273877.

  * Renamed Nicira NVP plugin to VMware NSX:
    - debian/neutron-plugin-*.install: Update path and file for rename
    - debian/tests/*-plugin: Replace nicira-plugin with vmware-plugin
    - debian/control:
      + Change neutron-plugin-nicira to transtional package
      + Add neutron-plugin-vmware package which breaks/replaces
        neutron-plugin-nicira package.

To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

Needs to reference the bug in the the debian/changelog (LP: #1273877) is fine.

review: Needs Fixing
237. By Corey Bryant

* Renamed Nicira NVP plugin to VMware NSX (LP: #1273877):
  - debian/neutron-plugin-*.install: Update path and file for rename
  - debian/tests/*-plugin: Replace nicira-plugin with vmware-plugin
  - debian/control:
    + Change neutron-plugin-nicira to transtional package
    + Add neutron-plugin-vmware package which breaks/replaces
      neutron-plugin-nicira package.
*

Revision history for this message
Corey Bryant (corey.bryant) wrote :

> Needs to reference the bug in the the debian/changelog (LP: #1273877) is fine.

Should be all set now, thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-02-18 17:27:06 +0000
3+++ debian/changelog 2014-02-24 15:46:04 +0000
4@@ -1,11 +1,23 @@
5 neutron (1:2014.1~b2-0ubuntu7) UNRELEASED; urgency=medium
6
7+ [ Chuck Short ]
8 * debian/rules: Re-enabled tests.
9 * debian/patches/requirements.patch: Dropped no longer needed.
10 * debian/patches/sql-alchemy-0.8.3-compat.patch: Dropped no longer needed.
11 * debian/patches/bump-sqlalchemy-version.patch: Dropped no longer needed.
12
13- -- Chuck Short <zulcss@ubuntu.com> Thu, 06 Feb 2014 16:33:21 -0500
14+ [ Corey Bryant ]
15+ * debian/patches/sql-alchemy-0.8.3-compat.patch: Revert prior drop.
16+ * Renamed Nicira NVP plugin to VMware NSX (LP: #1273877):
17+ - debian/neutron-plugin-*.install: Update path and file for rename
18+ - debian/tests/*-plugin: Replace nicira-plugin with vmware-plugin
19+ - debian/control:
20+ + Change neutron-plugin-nicira to transtional package
21+ + Add neutron-plugin-vmware package which breaks/replaces
22+ neutron-plugin-nicira package.
23+ *
24+
25+ -- Corey Bryant <corey.bryant@canonical.com> Mon, 24 Feb 2014 10:31:13 -0500
26
27 neutron (1:2014.1~b2-0ubuntu6) trusty; urgency=medium
28
29
30=== modified file 'debian/control'
31--- debian/control 2013-12-19 15:00:13 +0000
32+++ debian/control 2014-02-24 15:46:04 +0000
33@@ -273,27 +273,36 @@
34 .
35 This package provides the Metaplugin plugin.
36
37+Package: neutron-plugin-vmware
38+Architecture: all
39+Provides: neutron-plugin
40+Depends:
41+ neutron-common (= ${source:Version}),
42+ ${misc:Depends},
43+ ${python:Depends},
44+ ${shlibs:Depends}
45+Breaks: neutron-plugin-nicira ( << 1:2014.1~b2-0ubuntu7~ )
46+Replaces: neutron-plugin-nicira ( << 1:2014.1~b2-0ubuntu7~ )
47+Description: Neutron is a virtual network service for Openstack - VMware plugin
48+ Neutron is a virtual network service for Openstack, and a part of
49+ Netstack. Just like OpenStack Nova provides an API to dynamically
50+ request and configure virtual servers, Neutron provides an API to
51+ dynamically request and configure virtual networks. These networks
52+ connect "interfaces" from other OpenStack services (e.g., virtual NICs
53+ from Nova VMs). The Neutron API supports extensions to provide
54+ advanced network capabilities (e.g., QoS, ACLs, network monitoring,
55+ etc.)
56+ .
57+ This package provides the VMware NSX plugin
58+
59 Package: neutron-plugin-nicira
60+Depends: neutron-plugin-vmware, ${misc:Depends}
61 Architecture: all
62-Provides: neutron-plugin
63-Depends:
64- neutron-common (= ${source:Version}),
65- ${misc:Depends},
66- ${python:Depends},
67- ${shlibs:Depends}
68 Breaks: quantum-plugin-nicira ( << 1:2013.2~b2-0ubuntu1~ )
69 Replaces: quantum-plugin-nicira ( << 1:2013.2~b2-0ubuntu1~ )
70-Description: Neutron is a virtual network service for Openstack - Nicira plugin
71- Neutron is a virtual network service for Openstack, and a part of
72- Netstack. Just like OpenStack Nova provides an API to dynamically
73- request and configure virtual servers, Neutron provides an API to
74- dynamically request and configure virtual networks. These networks
75- connect "interfaces" from other OpenStack services (e.g., virtual NICs
76- from Nova VMs). The Neutron API supports extensions to provide
77- advanced network capabilities (e.g., QoS, ACLs, network monitoring,
78- etc.)
79- .
80- This package provides the Nicira NVP plugin
81+Section: oldlibs
82+Description: transitional dummy package
83+ This is a transitional dummy package. It can safely be removed.
84
85 Package: neutron-l3-agent
86 Architecture: all
87
88=== removed file 'debian/neutron-plugin-nicira.install'
89--- debian/neutron-plugin-nicira.install 2014-01-15 18:46:48 +0000
90+++ debian/neutron-plugin-nicira.install 1970-01-01 00:00:00 +0000
91@@ -1,3 +0,0 @@
92-etc/neutron/plugins/nicira/* etc/neutron/plugins/nicira
93-usr/bin/neutron-check-nvp-config usr/bin
94-usr/bin/neutron-check-nsx-config usr/bin
95
96=== added file 'debian/neutron-plugin-vmware.install'
97--- debian/neutron-plugin-vmware.install 1970-01-01 00:00:00 +0000
98+++ debian/neutron-plugin-vmware.install 2014-02-24 15:46:04 +0000
99@@ -0,0 +1,3 @@
100+etc/neutron/plugins/vmware/* etc/neutron/plugins/vmware
101+usr/bin/neutron-check-nvp-config usr/bin
102+usr/bin/neutron-check-nsx-config usr/bin
103
104=== modified file 'debian/patches/series'
105--- debian/patches/series 2014-02-18 17:27:06 +0000
106+++ debian/patches/series 2014-02-24 15:46:04 +0000
107@@ -2,5 +2,6 @@
108 disable-udev-tests.patch
109 disable-failing-metaplugin-tests.patch
110 #disable-failing-cisco-test.patch
111+sql-alchemy-0.8.3-compat.patch
112 skip-lb-test.patch
113 skip-ipv6-tests.patch
114
115=== added file 'debian/patches/sql-alchemy-0.8.3-compat.patch'
116--- debian/patches/sql-alchemy-0.8.3-compat.patch 1970-01-01 00:00:00 +0000
117+++ debian/patches/sql-alchemy-0.8.3-compat.patch 2014-02-24 15:46:04 +0000
118@@ -0,0 +1,67 @@
119+Description: Fix sqlalchemy 0.8.3 compat
120+Author: Chuck Short <zulcss@ubuntu.com>
121+Forwarded: No
122+diff --git a/neutron/openstack/common/db/sqlalchemy/session.py b/neutron/openstack/common/db/sqlalchemy/session.py
123+index 3279343..113424c 100644
124+--- a/neutron/openstack/common/db/sqlalchemy/session.py
125++++ b/neutron/openstack/common/db/sqlalchemy/session.py
126+@@ -441,6 +441,11 @@ def get_session(autocommit=True, expire_on_commit=False,
127+ # 1 column - (IntegrityError) column c1 is not unique
128+ # N columns - (IntegrityError) column c1, c2, ..., N are not unique
129+ #
130++# sqlite since 3.7.16:
131++# 1 column - (IntegrityError) UNIQUE constraint failed: k1
132++#
133++# N columns - (IntegrityError) UNIQUE constraint failed: k1, k2
134++#
135+ # postgres:
136+ # 1 column - (IntegrityError) duplicate key value violates unique
137+ # constraint "users_c1_key"
138+@@ -453,9 +458,10 @@ def get_session(autocommit=True, expire_on_commit=False,
139+ # N columns - (IntegrityError) (1062, "Duplicate entry 'values joined
140+ # with -' for key 'name_of_our_constraint'")
141+ _DUP_KEY_RE_DB = {
142+- "sqlite": re.compile(r"^.*columns?([^)]+)(is|are)\s+not\s+unique$"),
143+- "postgresql": re.compile(r"^.*duplicate\s+key.*\"([^\"]+)\"\s*\n.*$"),
144+- "mysql": re.compile(r"^.*\(1062,.*'([^\']+)'\"\)$")
145++ "sqlite": (re.compile(r"^.*columns?([^)]+)(is|are)\s+not\s+unique$"),
146++ re.compile(r"^.*UNIQUE\s+constraint\s+failed:\s+(.+)$")),
147++ "postgresql": (re.compile(r"^.*duplicate\s+key.*\"([^\"]+)\"\s*\n.*$"),),
148++ "mysql": (re.compile(r"^.*\(1062,.*'([^\']+)'\"\)$"),)
149+ }
150+
151+
152+@@ -480,10 +486,14 @@ def _raise_if_duplicate_entry_error(integrity_error, engine_name):
153+ if engine_name not in ["mysql", "sqlite", "postgresql"]:
154+ return
155+
156+- m = _DUP_KEY_RE_DB[engine_name].match(integrity_error.message)
157+- if not m:
158++ for pattern in _DUP_KEY_RE_DB[engine_name]:
159++ match = pattern.match(integrity_error.message)
160++ if match:
161++ break
162++ else:
163+ return
164+- columns = m.group(1)
165++
166++ columns = match.group(1)
167+
168+ if engine_name == "sqlite":
169+ columns = columns.strip().split(", ")
170+diff --git a/run_tests.sh b/run_tests.sh
171+index cc17124..06934e9 100755
172+--- a/run_tests.sh
173++++ b/run_tests.sh
174+@@ -162,7 +162,7 @@ function run_pep8 {
175+ }
176+
177+
178+-TESTRTESTS="python setup.py testr"
179++TESTRTESTS="python -m neutron.openstack.common.lockutils python setup.py testr"
180+
181+ if [ $never_venv -eq 0 ]
182+ then
183+--
184+1.8.5.2
185+
186
187=== modified file 'debian/tests/control'
188--- debian/tests/control 2013-10-03 22:05:30 +0000
189+++ debian/tests/control 2014-02-24 15:46:04 +0000
190@@ -1,5 +1,5 @@
191 Tests: neutron-daemons python-neutron cisco-plugin nec-plugin bigswitch-plugin
192- hyperv-plugin brocade-plugin plumgrid-plugin nicira-plugin openvswitch-plugin
193+ hyperv-plugin brocade-plugin plumgrid-plugin vmware-plugin openvswitch-plugin
194 linuxbridge-plugin ryu-plugin midonet-plugin
195 Depends: neutron-server, neutron-l3-agent, neutron-dhcp-agent, neutron-metadata-agent,
196 neutron-lbaas-agent, python-neutron, rabbitmq-server
197
198=== removed file 'debian/tests/nicira-plugin'
199--- debian/tests/nicira-plugin 2013-09-13 12:34:20 +0000
200+++ debian/tests/nicira-plugin 1970-01-01 00:00:00 +0000
201@@ -1,19 +0,0 @@
202-#!/bin/bash
203-#----------------------
204-# Testing nicira-plugin
205-#----------------------
206-set -e
207-apt-get -y install neutron-plugin-nicira
208-
209-# update plugin path
210-sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/nicira\/nvp\.ini\"/g' /etc/default/neutron-server
211-sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.nicira\.NeutronPlugin\.NvpPluginV2/g' /etc/neutron/neutron.conf
212-service neutron-server restart > /dev/null 2>&1
213-if pidof -x neutron-server > /dev/null; then
214- apt-get -y remove --purge neutron-plugin-nicira
215- echo "OK"
216-else
217- echo "ERROR: NICIRA PLUGIN IS NOT RUNNING"
218- apt-get -y remove --purge neutron-plugin-nicira
219- exit 1
220-fi
221
222=== added file 'debian/tests/vmware-plugin'
223--- debian/tests/vmware-plugin 1970-01-01 00:00:00 +0000
224+++ debian/tests/vmware-plugin 2014-02-24 15:46:04 +0000
225@@ -0,0 +1,19 @@
226+#!/bin/bash
227+#----------------------
228+# Testing vmware-plugin
229+#----------------------
230+set -e
231+apt-get -y install neutron-plugin-vmware
232+
233+# update plugin path
234+sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/vmware\/nsx\.ini\"/g' /etc/default/neutron-server
235+sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.nicira\.NeutronPlugin\.NvpPluginV2/g' /etc/neutron/neutron.conf
236+service neutron-server restart > /dev/null 2>&1
237+if pidof -x neutron-server > /dev/null; then
238+ apt-get -y remove --purge neutron-plugin-vmware
239+ echo "OK"
240+else
241+ echo "ERROR: VMWARE PLUGIN IS NOT RUNNING"
242+ apt-get -y remove --purge neutron-plugin-vmware
243+ exit 1
244+fi

Subscribers

People subscribed via source and target branches