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
=== modified file 'debian/changelog'
--- debian/changelog 2014-02-18 17:27:06 +0000
+++ debian/changelog 2014-02-24 15:46:04 +0000
@@ -1,11 +1,23 @@
1neutron (1:2014.1~b2-0ubuntu7) UNRELEASED; urgency=medium1neutron (1:2014.1~b2-0ubuntu7) UNRELEASED; urgency=medium
22
3 [ Chuck Short ]
3 * debian/rules: Re-enabled tests. 4 * debian/rules: Re-enabled tests.
4 * debian/patches/requirements.patch: Dropped no longer needed.5 * debian/patches/requirements.patch: Dropped no longer needed.
5 * debian/patches/sql-alchemy-0.8.3-compat.patch: Dropped no longer needed.6 * debian/patches/sql-alchemy-0.8.3-compat.patch: Dropped no longer needed.
6 * debian/patches/bump-sqlalchemy-version.patch: Dropped no longer needed.7 * debian/patches/bump-sqlalchemy-version.patch: Dropped no longer needed.
78
8 -- Chuck Short <zulcss@ubuntu.com> Thu, 06 Feb 2014 16:33:21 -05009 [ Corey Bryant ]
10 * debian/patches/sql-alchemy-0.8.3-compat.patch: Revert prior drop.
11 * Renamed Nicira NVP plugin to VMware NSX (LP: #1273877):
12 - debian/neutron-plugin-*.install: Update path and file for rename
13 - debian/tests/*-plugin: Replace nicira-plugin with vmware-plugin
14 - debian/control:
15 + Change neutron-plugin-nicira to transtional package
16 + Add neutron-plugin-vmware package which breaks/replaces
17 neutron-plugin-nicira package.
18 *
19
20 -- Corey Bryant <corey.bryant@canonical.com> Mon, 24 Feb 2014 10:31:13 -0500
921
10neutron (1:2014.1~b2-0ubuntu6) trusty; urgency=medium22neutron (1:2014.1~b2-0ubuntu6) trusty; urgency=medium
1123
1224
=== modified file 'debian/control'
--- debian/control 2013-12-19 15:00:13 +0000
+++ debian/control 2014-02-24 15:46:04 +0000
@@ -273,27 +273,36 @@
273 .273 .
274 This package provides the Metaplugin plugin.274 This package provides the Metaplugin plugin.
275275
276Package: neutron-plugin-vmware
277Architecture: all
278Provides: neutron-plugin
279Depends:
280 neutron-common (= ${source:Version}),
281 ${misc:Depends},
282 ${python:Depends},
283 ${shlibs:Depends}
284Breaks: neutron-plugin-nicira ( << 1:2014.1~b2-0ubuntu7~ )
285Replaces: neutron-plugin-nicira ( << 1:2014.1~b2-0ubuntu7~ )
286Description: Neutron is a virtual network service for Openstack - VMware plugin
287 Neutron is a virtual network service for Openstack, and a part of
288 Netstack. Just like OpenStack Nova provides an API to dynamically
289 request and configure virtual servers, Neutron provides an API to
290 dynamically request and configure virtual networks. These networks
291 connect "interfaces" from other OpenStack services (e.g., virtual NICs
292 from Nova VMs). The Neutron API supports extensions to provide
293 advanced network capabilities (e.g., QoS, ACLs, network monitoring,
294 etc.)
295 .
296 This package provides the VMware NSX plugin
297
276Package: neutron-plugin-nicira298Package: neutron-plugin-nicira
299Depends: neutron-plugin-vmware, ${misc:Depends}
277Architecture: all300Architecture: all
278Provides: neutron-plugin
279Depends:
280 neutron-common (= ${source:Version}),
281 ${misc:Depends},
282 ${python:Depends},
283 ${shlibs:Depends}
284Breaks: quantum-plugin-nicira ( << 1:2013.2~b2-0ubuntu1~ )301Breaks: quantum-plugin-nicira ( << 1:2013.2~b2-0ubuntu1~ )
285Replaces: quantum-plugin-nicira ( << 1:2013.2~b2-0ubuntu1~ )302Replaces: quantum-plugin-nicira ( << 1:2013.2~b2-0ubuntu1~ )
286Description: Neutron is a virtual network service for Openstack - Nicira plugin303Section: oldlibs
287 Neutron is a virtual network service for Openstack, and a part of304Description: transitional dummy package
288 Netstack. Just like OpenStack Nova provides an API to dynamically305 This is a transitional dummy package. It can safely be removed.
289 request and configure virtual servers, Neutron provides an API to
290 dynamically request and configure virtual networks. These networks
291 connect "interfaces" from other OpenStack services (e.g., virtual NICs
292 from Nova VMs). The Neutron API supports extensions to provide
293 advanced network capabilities (e.g., QoS, ACLs, network monitoring,
294 etc.)
295 .
296 This package provides the Nicira NVP plugin
297306
298Package: neutron-l3-agent307Package: neutron-l3-agent
299Architecture: all308Architecture: all
300309
=== removed file 'debian/neutron-plugin-nicira.install'
--- debian/neutron-plugin-nicira.install 2014-01-15 18:46:48 +0000
+++ debian/neutron-plugin-nicira.install 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1etc/neutron/plugins/nicira/* etc/neutron/plugins/nicira
2usr/bin/neutron-check-nvp-config usr/bin
3usr/bin/neutron-check-nsx-config usr/bin
40
=== added file 'debian/neutron-plugin-vmware.install'
--- debian/neutron-plugin-vmware.install 1970-01-01 00:00:00 +0000
+++ debian/neutron-plugin-vmware.install 2014-02-24 15:46:04 +0000
@@ -0,0 +1,3 @@
1etc/neutron/plugins/vmware/* etc/neutron/plugins/vmware
2usr/bin/neutron-check-nvp-config usr/bin
3usr/bin/neutron-check-nsx-config usr/bin
04
=== modified file 'debian/patches/series'
--- debian/patches/series 2014-02-18 17:27:06 +0000
+++ debian/patches/series 2014-02-24 15:46:04 +0000
@@ -2,5 +2,6 @@
2disable-udev-tests.patch2disable-udev-tests.patch
3disable-failing-metaplugin-tests.patch3disable-failing-metaplugin-tests.patch
4#disable-failing-cisco-test.patch4#disable-failing-cisco-test.patch
5sql-alchemy-0.8.3-compat.patch
5skip-lb-test.patch6skip-lb-test.patch
6skip-ipv6-tests.patch7skip-ipv6-tests.patch
78
=== added file 'debian/patches/sql-alchemy-0.8.3-compat.patch'
--- debian/patches/sql-alchemy-0.8.3-compat.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/sql-alchemy-0.8.3-compat.patch 2014-02-24 15:46:04 +0000
@@ -0,0 +1,67 @@
1Description: Fix sqlalchemy 0.8.3 compat
2Author: Chuck Short <zulcss@ubuntu.com>
3Forwarded: No
4diff --git a/neutron/openstack/common/db/sqlalchemy/session.py b/neutron/openstack/common/db/sqlalchemy/session.py
5index 3279343..113424c 100644
6--- a/neutron/openstack/common/db/sqlalchemy/session.py
7+++ b/neutron/openstack/common/db/sqlalchemy/session.py
8@@ -441,6 +441,11 @@ def get_session(autocommit=True, expire_on_commit=False,
9 # 1 column - (IntegrityError) column c1 is not unique
10 # N columns - (IntegrityError) column c1, c2, ..., N are not unique
11 #
12+# sqlite since 3.7.16:
13+# 1 column - (IntegrityError) UNIQUE constraint failed: k1
14+#
15+# N columns - (IntegrityError) UNIQUE constraint failed: k1, k2
16+#
17 # postgres:
18 # 1 column - (IntegrityError) duplicate key value violates unique
19 # constraint "users_c1_key"
20@@ -453,9 +458,10 @@ def get_session(autocommit=True, expire_on_commit=False,
21 # N columns - (IntegrityError) (1062, "Duplicate entry 'values joined
22 # with -' for key 'name_of_our_constraint'")
23 _DUP_KEY_RE_DB = {
24- "sqlite": re.compile(r"^.*columns?([^)]+)(is|are)\s+not\s+unique$"),
25- "postgresql": re.compile(r"^.*duplicate\s+key.*\"([^\"]+)\"\s*\n.*$"),
26- "mysql": re.compile(r"^.*\(1062,.*'([^\']+)'\"\)$")
27+ "sqlite": (re.compile(r"^.*columns?([^)]+)(is|are)\s+not\s+unique$"),
28+ re.compile(r"^.*UNIQUE\s+constraint\s+failed:\s+(.+)$")),
29+ "postgresql": (re.compile(r"^.*duplicate\s+key.*\"([^\"]+)\"\s*\n.*$"),),
30+ "mysql": (re.compile(r"^.*\(1062,.*'([^\']+)'\"\)$"),)
31 }
32
33
34@@ -480,10 +486,14 @@ def _raise_if_duplicate_entry_error(integrity_error, engine_name):
35 if engine_name not in ["mysql", "sqlite", "postgresql"]:
36 return
37
38- m = _DUP_KEY_RE_DB[engine_name].match(integrity_error.message)
39- if not m:
40+ for pattern in _DUP_KEY_RE_DB[engine_name]:
41+ match = pattern.match(integrity_error.message)
42+ if match:
43+ break
44+ else:
45 return
46- columns = m.group(1)
47+
48+ columns = match.group(1)
49
50 if engine_name == "sqlite":
51 columns = columns.strip().split(", ")
52diff --git a/run_tests.sh b/run_tests.sh
53index cc17124..06934e9 100755
54--- a/run_tests.sh
55+++ b/run_tests.sh
56@@ -162,7 +162,7 @@ function run_pep8 {
57 }
58
59
60-TESTRTESTS="python setup.py testr"
61+TESTRTESTS="python -m neutron.openstack.common.lockutils python setup.py testr"
62
63 if [ $never_venv -eq 0 ]
64 then
65--
661.8.5.2
67
068
=== modified file 'debian/tests/control'
--- debian/tests/control 2013-10-03 22:05:30 +0000
+++ debian/tests/control 2014-02-24 15:46:04 +0000
@@ -1,5 +1,5 @@
1Tests: neutron-daemons python-neutron cisco-plugin nec-plugin bigswitch-plugin1Tests: neutron-daemons python-neutron cisco-plugin nec-plugin bigswitch-plugin
2 hyperv-plugin brocade-plugin plumgrid-plugin nicira-plugin openvswitch-plugin2 hyperv-plugin brocade-plugin plumgrid-plugin vmware-plugin openvswitch-plugin
3 linuxbridge-plugin ryu-plugin midonet-plugin3 linuxbridge-plugin ryu-plugin midonet-plugin
4Depends: neutron-server, neutron-l3-agent, neutron-dhcp-agent, neutron-metadata-agent,4Depends: neutron-server, neutron-l3-agent, neutron-dhcp-agent, neutron-metadata-agent,
5 neutron-lbaas-agent, python-neutron, rabbitmq-server5 neutron-lbaas-agent, python-neutron, rabbitmq-server
66
=== removed file 'debian/tests/nicira-plugin'
--- debian/tests/nicira-plugin 2013-09-13 12:34:20 +0000
+++ debian/tests/nicira-plugin 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1#!/bin/bash
2#----------------------
3# Testing nicira-plugin
4#----------------------
5set -e
6apt-get -y install neutron-plugin-nicira
7
8# update plugin path
9sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/nicira\/nvp\.ini\"/g' /etc/default/neutron-server
10sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.nicira\.NeutronPlugin\.NvpPluginV2/g' /etc/neutron/neutron.conf
11service neutron-server restart > /dev/null 2>&1
12if pidof -x neutron-server > /dev/null; then
13 apt-get -y remove --purge neutron-plugin-nicira
14 echo "OK"
15else
16 echo "ERROR: NICIRA PLUGIN IS NOT RUNNING"
17 apt-get -y remove --purge neutron-plugin-nicira
18 exit 1
19fi
200
=== added file 'debian/tests/vmware-plugin'
--- debian/tests/vmware-plugin 1970-01-01 00:00:00 +0000
+++ debian/tests/vmware-plugin 2014-02-24 15:46:04 +0000
@@ -0,0 +1,19 @@
1#!/bin/bash
2#----------------------
3# Testing vmware-plugin
4#----------------------
5set -e
6apt-get -y install neutron-plugin-vmware
7
8# update plugin path
9sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/vmware\/nsx\.ini\"/g' /etc/default/neutron-server
10sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.nicira\.NeutronPlugin\.NvpPluginV2/g' /etc/neutron/neutron.conf
11service neutron-server restart > /dev/null 2>&1
12if pidof -x neutron-server > /dev/null; then
13 apt-get -y remove --purge neutron-plugin-vmware
14 echo "OK"
15else
16 echo "ERROR: VMWARE PLUGIN IS NOT RUNNING"
17 apt-get -y remove --purge neutron-plugin-vmware
18 exit 1
19fi

Subscribers

People subscribed via source and target branches