]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoNSX: add nsx switch lookup to dhcp and metadata operations
armando-migliaccio [Thu, 24 Apr 2014 19:11:41 +0000 (12:11 -0700)]
NSX: add nsx switch lookup to dhcp and metadata operations

The operations in questions were still using the neutron network
uuid as the nsx switch uuid, but this is no longer valid.

Close-bug: #1312439

Change-Id: I0f4bf02bb176c5c3914c7dd7e8249121af1b5a79
(cherry picked from commit 0f2f768578900a7ca74091ab400bd9facce9eaf9)

10 years agoFixed floating IP logic in PLUMgrid plugin
Fawad Khaliq [Tue, 8 Apr 2014 22:49:35 +0000 (15:49 -0700)]
Fixed floating IP logic in PLUMgrid plugin

  * Fixed associate and disassociate
    floating IP logic
  * Added unit tests

Change-Id: I310f5550bca1c9015cbda3e0338eb90a36dc96f1
Closes-Bug: 1298495
(cherry picked from commit 9f8cb33557ecc7c0a832610e913a56a8b8e6c524)

10 years agoIBM: set secret=True on passwd config field
Aaron Rosen [Thu, 24 Apr 2014 01:34:14 +0000 (18:34 -0700)]
IBM: set secret=True on passwd config field

This should carry secret=True to avoid being logged as clear text.

Change-Id: I7d15b9648b3a037589405b9ca9d26aae4a834f15
Closes-bug: 1311943
(cherry picked from commit 4c82fc82238c56400998e3e25b3039e817015bac)

10 years agoUpdate ensure()/reconnect() to catch MessagingError
Russell Bryant [Wed, 9 Apr 2014 15:32:44 +0000 (11:32 -0400)]
Update ensure()/reconnect() to catch MessagingError

The error handling code that gets connections reset if necessary
caught ConnectionError. It really needs to catch MessagingError,
which ConnectionError inherits from. There are other types of
MessagingErrors that may occur, such as InternalError, and they need
to cause the connection to reset, as well.

This fix has already been merged into oslo.messaging.

--

Cherry-picked from oslo-incubator 234f64d608266f43d8856ff98c89ceba6699d752
See also https://bugzilla.redhat.com/show_bug.cgi?id=1086077

Closes-bug: #1303890
Change-Id: Ic5082b74a362ded8b35cbc75cf178fe6e0db62d0
(cherry picked from commit 9a830b370551019a4bd3a0c7504f48961e755bd4)

10 years agoNSX: Fix fake_api_client to raise NotFound
Aaron Rosen [Tue, 22 Apr 2014 19:46:08 +0000 (12:46 -0700)]
NSX: Fix fake_api_client to raise NotFound

If one quries NSX doing GET /ws.v1/lswitch/LS_UUID/lport and LS_UUID
is a UUID that does not exist in NSX. NSX raises a 404. If LS_UUID is *
NSX returns an empty result string. This patch fixes the fake_api_client
so that it's behavior is correct.

Change-Id: Id66299d6ae3cfa43a65d4cb28f34348d64d8ed65
Closes-bug: 1311291
(cherry picked from commit dd143a619900792a0563b9ac4fe1f78197291d94)

10 years agonetaddr<=0.7.10 raises ValueError instead of AddrFormatError
Aaron Rosen [Wed, 16 Apr 2014 18:31:25 +0000 (11:31 -0700)]
netaddr<=0.7.10 raises ValueError instead of AddrFormatError

This patch ensures that ValueError is also caught in addition to
AddrFormatError as in netaddr>=0.7.11 AddrFormatError is raised and
in netaddr<=0.7.10 ValueError is raised.

Change-Id: I595c90e42129a2d365f3860e3042e826bd031365
Closes-bug: #1308675
(cherry picked from commit dd2ccd12adfb6c7d4aa500ba4120f767beeed35c)

10 years agoValidate CIDR given as ip-prefix in security-group-rule-create
marios [Fri, 29 Nov 2013 16:23:54 +0000 (18:23 +0200)]
Validate CIDR given as ip-prefix in security-group-rule-create

There was no validation for the provided ip prefix. This just adds
a simple parse using netaddr and explodes with appropriate message.
Also makes sure ip prefix _is_ cidr (192.168.1.1-->192.168.1.1/32).

Validation occurs at the attribute level (API model) as well as at
the db level, where the ethertype is validated against the ip_prefix
address type.

Unit test cases added - bad prefix, unmasked prefix and incorrect
ethertype. Also adds attribute test cases for the added
convert_ip_prefix_to_cidr method

Closes-Bug: 1255338

Conflicts:
neutron/tests/unit/test_security_groups_rpc.py

Change-Id: I71fb8c887963a122a5bd8cfdda800026c1cd3954
(cherry picked from commit 65aa92b0348b7ab8413f359b00825610cdf66607)

10 years agogw_port should be set as lazy='join'
armando-migliaccio [Fri, 18 Apr 2014 19:32:26 +0000 (12:32 -0700)]
gw_port should be set as lazy='join'

This forces the object to be ready ahead of accessing time.
The change in loading behavior is also beneficial while listing
routers, as reduces the amount of queries being issued. Tests
show a performance gain of 15-30% for router-list times.

As Mr. Aaron Rosen is used to saying: Woot woot!!

Closes-bug: #1309144

Change-Id: Ibae261b91de26ca7c50e3f6c80e9be2a799785a3
(cherry picked from commit 966dbb5368d710e2652b18f5b9cb4295f58598da)

10 years agoNSX: ensure dhcp port is setup on metadata network
armando-migliaccio [Tue, 8 Apr 2014 15:43:00 +0000 (08:43 -0700)]
NSX: ensure dhcp port is setup on metadata network

Change in scheduling behavior caused a regression
where the dhcp port is no longer provisioned on
the (admin) metadata network created when a subnet
is uplinked to a router.

This change recovers the past behavior and extend UT
coverage to avoid further regression.

Closes-bug: #1304127

Change-Id: I8420203f68a43368f3784adb0c4cbbe55f048662
(cherry picked from commit 4cb3eb2a98246f28f8016cfe32946d365203fbae)

10 years agoOpening stable/icehouse
Thierry Carrez [Thu, 17 Apr 2014 13:36:44 +0000 (15:36 +0200)]
Opening stable/icehouse

Bump version to next stable release on icehouse branch, and set
defaultbranch in .gitreview for convenience.

Change-Id: I70ddfb8cc70f9d7fca4ff63f95d5bd9c7fb7ef81

10 years agoAlso patches dhcp_agent.ini
Thomas Goirand [Sat, 7 Jun 2014 09:59:12 +0000 (17:59 +0800)]
Also patches dhcp_agent.ini

Change-Id: Icdadf7f68710987d97875e6758769631d46abdce

10 years ago* Added sane-defaults-for-ml2_conf.ini.patch
Thomas Goirand [Sat, 7 Jun 2014 09:26:24 +0000 (17:26 +0800)]
* Added sane-defaults-for-ml2_conf.ini.patch
* Fixed debian/changelog

Change-Id: I70ad50cae04ebfd52c4f4a0f2f84e6091a40d309

10 years agoMerge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into...
Thomas Goirand [Sat, 7 Jun 2014 09:26:56 +0000 (09:26 +0000)]
Merge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into debian/icehouse

Conflicts:
debian/changelog

10 years ago * Updates the OVS_lib_defer_apply_doesn_t_handle_concurrency.patch patch
Thomas Goirand [Thu, 5 Jun 2014 07:27:58 +0000 (07:27 +0000)]
  * Updates the OVS_lib_defer_apply_doesn_t_handle_concurrency.patch patch
    (Closes: #750415).
  * Now build-depends on openstack-pkg-tools (>= 12~).

10 years agoAdded missing dbconfig-common dependency.
Thomas Goirand [Tue, 3 Jun 2014 07:46:50 +0000 (15:46 +0800)]
Added missing dbconfig-common dependency.

Change-Id: Ie97b19b17857b3c026a08dffd97420ef9a1c9114

10 years agoAdds Install_SNAT_rules_for_ipv4_only.patch. Note that without this patch,
Thomas Goirand [Mon, 2 Jun 2014 16:08:25 +0000 (00:08 +0800)]
Adds Install_SNAT_rules_for_ipv4_only.patch. Note that without this patch,
it's possible to destroy an OpenStack cloud network, which is why I'm
putting urgency=high in this upload.

Change-Id: I34aa3c656f0218a1986ef6b78f7e28132d6172a6

10 years agoSwitched from restarting daemons to copytruncate for logrotate.
Thomas Goirand [Thu, 29 May 2014 05:43:35 +0000 (13:43 +0800)]
Switched from restarting daemons to copytruncate for logrotate.

Change-Id: Id7529a82ba4baba916ced64e7b12b4e7a88520d3

10 years agoFixed linuxbridge init script.
Thomas Goirand [Wed, 21 May 2014 00:39:01 +0000 (08:39 +0800)]
Fixed linuxbridge init script.

Change-Id: Ia46155d2e5f5c739f06b0d1241fcb446599c0391

10 years agoAdded Russian Debconf translation, thanks to Yuri Kozlov <yuray@komyakino.ru> (Closes...
Thomas Goirand [Sun, 4 May 2014 06:37:04 +0000 (14:37 +0800)]
Added Russian Debconf translation, thanks to Yuri Kozlov <yuray@komyakino.ru> (Closes: #746939).

Change-Id: I3798cc693cdb6f6738bcae7d3b40372fc0dc5f5f

10 years agoMerge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into...
Thomas Goirand [Sat, 3 May 2014 03:21:46 +0000 (03:21 +0000)]
Merge branch 'debian/icehouse' of ssh://git.debian.org/git/openstack/neutron into debian/icehouse

Conflicts:
debian/changelog

10 years agoFixed fr.po, thanks to Christian Perrier (Closes: #745249).
Thomas Goirand [Sat, 3 May 2014 02:25:01 +0000 (02:25 +0000)]
Fixed fr.po, thanks to Christian Perrier (Closes: #745249).
Added it.po thanks to Beatrice Torracca (Closes: #746575).

10 years agoAdded a Provides: neutron-plugin-ml2 in neutron-common (LP: #1309858).
Thomas Goirand [Sun, 20 Apr 2014 02:15:41 +0000 (10:15 +0800)]
Added a Provides: neutron-plugin-ml2 in neutron-common (LP: #1309858).

Change-Id: Id9a98e99c6d5d05bb574424647f85384db7b9896

10 years agoFixed fr.po (Closes: #745249). Thanks to Christian Perrier for this.
Thomas Goirand [Sun, 20 Apr 2014 01:51:00 +0000 (09:51 +0800)]
Fixed fr.po (Closes: #745249). Thanks to Christian Perrier for this.

Change-Id: I8084032bdb0a9d2fd8b40e9885681280d3541cec

10 years agoUploading to unstable.
Thomas Goirand [Fri, 18 Apr 2014 09:07:29 +0000 (09:07 +0000)]
Uploading to unstable.

10 years agoPackaging Icehouse first release to unstable.
Thomas Goirand [Fri, 18 Apr 2014 01:22:13 +0000 (09:22 +0800)]
Packaging Icehouse first release to unstable.

Change-Id: If6186892352e0686efccfc3a41f529430ed5d946

10 years agoFixed 11c6e18605c8_pool_monitor_status_.py migration
Thomas Goirand [Wed, 16 Apr 2014 12:55:52 +0000 (20:55 +0800)]
Fixed 11c6e18605c8_pool_monitor_status_.py migration

Change-Id: Ic6c16c99635505b61b44dc8fce1ccbd10862482a

10 years agore-adds 0001-Add-parameter-and-iptables-rules-to-protect-dnsmasq-.patch
Thomas Goirand [Wed, 16 Apr 2014 02:02:46 +0000 (10:02 +0800)]
re-adds 0001-Add-parameter-and-iptables-rules-to-protect-dnsmasq-.patch

Change-Id: I76512e455a321952870e3d57fd1e5c74f06d5ad1

10 years agodebian/changelog: documents re-addintion of 0004-Fix-Metering-doesn-t-respect-the...
Thomas Goirand [Mon, 14 Apr 2014 17:18:15 +0000 (01:18 +0800)]
debian/changelog: documents re-addintion of 0004-Fix-Metering-doesn-t-respect-the-l3-agent-binding.patch

Change-Id: Ia33d0a7fa31c4cdd55d4cc88cb9d394e35d03272

10 years agoRe-added 0004-Fix-Metering-doesn-t-respect-the-l3-agent-binding.patch
Thomas Goirand [Mon, 14 Apr 2014 17:13:44 +0000 (01:13 +0800)]
Re-added 0004-Fix-Metering-doesn-t-respect-the-l3-agent-binding.patch

Change-Id: I68fbd4f84ba31430ec110fc31148610798fa56cb

10 years agoDocuments: Allow selecting log destination for Neutron daemons
Thomas Goirand [Fri, 11 Apr 2014 06:07:05 +0000 (14:07 +0800)]
Documents: Allow selecting log destination for Neutron daemons

Change-Id: I20d3c211db7735f69e6a2b1444e8901c927df375

10 years agoAllow selecting log destination for Neutron daemons
Sylvain Baubeau [Mon, 7 Apr 2014 15:38:58 +0000 (17:38 +0200)]
Allow selecting log destination for Neutron daemons

10 years agoNow packaging Icehouse RC2
Thomas Goirand [Wed, 9 Apr 2014 15:47:00 +0000 (23:47 +0800)]
Now packaging Icehouse RC2

Change-Id: I9430e892bd90122111526481d4392b3850ac1a21

10 years agoMerge tag '2014.1.rc2' into debian/icehouse
Thomas Goirand [Wed, 9 Apr 2014 15:44:22 +0000 (23:44 +0800)]
Merge tag '2014.1.rc2' into debian/icehouse

Neutron icehouse-rc2 milestone (2014.1.rc2)

Conflicts:
neutron/tests/unit/vmware/extensions/test_networkgw.py

Change-Id: I9e1d8789e01c5e35f26fa732b177dffd6caac635

10 years agoMerge "NSX: Fix KeyError in sync if nsx_router_id not found" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 08:07:59 +0000 (08:07 +0000)]
Merge "NSX: Fix KeyError in sync if nsx_router_id not found" into milestone-proposed

10 years agoMerge "Hide ipv6 subnet API attributes" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 02:17:04 +0000 (02:17 +0000)]
Merge "Hide ipv6 subnet API attributes" into milestone-proposed

10 years agoNSX: Fix KeyError in sync if nsx_router_id not found
Aaron Rosen [Tue, 8 Apr 2014 20:20:49 +0000 (13:20 -0700)]
NSX: Fix KeyError in sync if nsx_router_id not found

Previously, a KeyError would occur in the sync code which would
cause the sync thread to stop running. This would occur if there
was a router entry in the database but no nsx_router_mapping and
the router was not found in nsx. Note: this should never happen unless
one did not run the db migration which introduced and migrated the data
for the NeutronNsxRouterMapping table.

(cherry picked from commit d90d71cfdae1d9c9c3b54cc33adfabce683c633c)
Change-Id: I44f3e7de9323f594501db63d3ad33e80e617bfdc
Closes-bug: #1304647

10 years agoMerge "Correctly inherit __table_args__ from parent class" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 00:11:21 +0000 (00:11 +0000)]
Merge "Correctly inherit __table_args__ from parent class" into milestone-proposed

10 years agoMerge "Add a note that rpc_workers option is experimental" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 00:08:11 +0000 (00:08 +0000)]
Merge "Add a note that rpc_workers option is experimental" into milestone-proposed

10 years agoHide ipv6 subnet API attributes
Salvatore Orlando [Mon, 7 Apr 2014 23:29:54 +0000 (16:29 -0700)]
Hide ipv6 subnet API attributes

The attributes for ra mode and address mode should be hidden
until the IPv6 feature is fully implemented.

The changes in this patch will be reverted by another patch
which closes this bug.

Change-Id: I69a1a571b5beb566641200e60b84f0716c1ec138
Related-Bug: 1304093
(cherry picked from commit d739486a3f70cb83f8730cf7201a8b8ccf4b4c70)

10 years agoMerge "Add L2 Agent side handling for non consistent security_group settings" into...
Jenkins [Tue, 8 Apr 2014 21:25:38 +0000 (21:25 +0000)]
Merge "Add L2 Agent side handling for non consistent security_group settings" into milestone-proposed

10 years agoCorrectly inherit __table_args__ from parent class
Darren Birkett [Thu, 6 Mar 2014 16:17:03 +0000 (16:17 +0000)]
Correctly inherit __table_args__ from parent class

Where unique constraints are added to certain tables by populating
__table_args__, we need to ensure we inherit the top level
__table_args__ that define the default storage engine to use when
creating tables.

Change-Id: Ib886b84922830b60282b4f882591e43f5041e713
Fixes: bug 1288358
(cherry picked from commit 72e37ddcd067432675543c8f4d327fe766bc8044)

10 years agoAdds OVS_lib_defer_apply_doesn_t_handle_concurrency.patch
Thomas Goirand [Tue, 8 Apr 2014 16:01:29 +0000 (00:01 +0800)]
Adds OVS_lib_defer_apply_doesn_t_handle_concurrency.patch

Change-Id: Ie1e469decd5ec1068133efffe29e15463812e086

10 years agoMerge "Delete routers that are requested but not reported as active" into milestone...
Jenkins [Tue, 8 Apr 2014 14:28:05 +0000 (14:28 +0000)]
Merge "Delete routers that are requested but not reported as active" into milestone-proposed

10 years agoAdd a note that rpc_workers option is experimental
Carl Baldwin [Thu, 3 Apr 2014 20:44:49 +0000 (20:44 +0000)]
Add a note that rpc_workers option is experimental

blueprint multiple-rpc-workers

Closes-Bug: 1304374
Change-Id: Id354b96fc591752e1e79b072997423b6447d5de9

10 years agoDelete routers that are requested but not reported as active
Carl Baldwin [Tue, 1 Apr 2014 22:02:17 +0000 (22:02 +0000)]
Delete routers that are requested but not reported as active

There are two cases that I can think of that result in a router being
requested but not reported as active.  One is that admin_state_up has
been set to False.  In this case, the router is never removed and
continues to be operational.

The other case is if a router is changed and then deleted before the
change is processed.  In this case, it is prudent to be sure that the
router is queued for deletion.

Change-Id: I4738f599a18f0d130cc8ad4d4dafc488eec75ffd
Closes-Bug: #1215387
(cherry picked from commit 9da60d0a417dd70c16ae34f5877c564e425e4cf8)

10 years agoFix _validate_mac_address method
Aaron Rosen [Sat, 15 Mar 2014 05:57:09 +0000 (22:57 -0700)]
Fix _validate_mac_address method

The method _validate_mac_address previously used: netaddr.EUI(data)
which would convert data passed in to the correct mac_address representation.
For example if data=123 it would return: EUI('00-00-00-00-00-7B'). To fix
this issue I used netaddr.valid_mac() instead which returns a bool if a mac is
valid or not and does not raise. Note this file needs some improvements to
improve how exception handling is done that will come later.

Change-Id: I4fb868e40abbad9e743028cc768f47ca9b3e0e70
Closes-bug: 1291163
(cherry picked from commit b9390333a146d0435710f85d365318268e267fc3)

10 years agoAdd L2 Agent side handling for non consistent security_group settings
Irena Berezovsky [Tue, 25 Mar 2014 07:30:17 +0000 (09:30 +0200)]
Add L2 Agent side handling for non consistent security_group settings

Add setting of the firewall_driver to NoopDriver when firewall_driver is None and
add warning if driver combination is not valid.
Modify is_valid_driver_combination to verify default settings: enable_security_group (True) and firewall_driver (None).

Change-Id: I841f9cf96ac6ee2ad17a4e8908d6c8a96f368cca
Closes-Bug: #1296957
(cherry picked from commit 5c6ff449bbd7386f0f3e41efc524024434f325df)

10 years agoFix wrong section name "security_group" in sample config files
Akihiro Motoki [Tue, 8 Apr 2014 01:31:06 +0000 (10:31 +0900)]
Fix wrong section name "security_group" in sample config files

The section name [security_group] in Sample config files of
ML2 and Big Switch plugins was wrong and it should be
[securitygroup].

Change-Id: I8204b2f37f96a5e46038e117853ac8637a9705fd
Closes-Bug: #1304105
(cherry picked from commit ec24d2cb3ac17a86ee5c4626c625131c10732143)

10 years agoMerge "Fix Jenkins translation jobs" into milestone-proposed
Jenkins [Mon, 7 Apr 2014 15:11:58 +0000 (15:11 +0000)]
Merge "Fix Jenkins translation jobs" into milestone-proposed

10 years agoMerge the 2 Alembic migration patches into a single one.
Thomas Goirand [Mon, 7 Apr 2014 14:27:24 +0000 (22:27 +0800)]
Merge the 2 Alembic migration patches into a single one.

Change-Id: Ia312c97c1b443bcd5df3ff5824d9a70f2dab0abb

10 years agoMerge "Updated from global requirements" into milestone-proposed
OpenStack Jenkins [Mon, 7 Apr 2014 10:06:37 +0000 (10:06 +0000)]
Merge "Updated from global requirements" into milestone-proposed

10 years agoFix Jenkins translation jobs
Thierry Carrez [Mon, 7 Apr 2014 09:37:38 +0000 (11:37 +0200)]
Fix Jenkins translation jobs

The -propose-translation-update and -upstream-translation-update
jobs do not update from transifex since our po files contain
duplicate entries where obsolete entries duplicate normal entries.

Remove all obsolete entries to fix the jobs.

Change-Id: I1ab0f23f5b1dc9a88636dab09fadb5d44008cf51
Closes-Bug: #1299349

10 years agoMerge "ML2: ODL driver sets port status" into milestone-proposed
Jenkins [Mon, 7 Apr 2014 09:31:06 +0000 (09:31 +0000)]
Merge "ML2: ODL driver sets port status" into milestone-proposed

10 years agoMore SQLite patches.
Thomas Goirand [Mon, 7 Apr 2014 06:21:02 +0000 (14:21 +0800)]
More SQLite patches.

Change-Id: I4ce294fbdf39f5f4b70258d54dd0e2e6a0732c4a

10 years agoAdd missing comma in nsx router mappings migration
Henry Gessau [Sat, 5 Apr 2014 22:10:52 +0000 (18:10 -0400)]
Add missing comma in nsx router mappings migration

Change-Id: I85bcc9b7fe636f34dbdf6f8c3172352c8e586e2a
Closes-bug: #1303179
Related-bug: #1207402
(cherry picked from commit acae91475775a8c85598b1bfdc4910e5fe81ced9)

10 years agoML2: ODL driver sets port status
Robert Kukura [Thu, 3 Apr 2014 21:01:00 +0000 (17:01 -0400)]
ML2: ODL driver sets port status

The OpenDaylight mechanism driver does not depend on an L2 agent to
plug the port. Now that nova waits for notification that the port
status is ACTIVE, the ML2 driver API is extended so that the mechanism
driver that binds a port can optionally set the port status, and the
OpenDaylight mechanism driver uses this to set the port status to
ACTIVE.

Closes-Bug: 1301449
Change-Id: I171c405f36b4f2354d9585e8ae3dfa50ddaa9a7e
(cherry picked from commit a9e3074aa9f442c2fff1ba058ac8ed585c6caa24)

10 years agoUpdated from global requirements
OpenStack Jenkins [Sun, 6 Apr 2014 14:22:16 +0000 (14:22 +0000)]
Updated from global requirements

Change-Id: I73c3798ede53e2c4d936f997d9a502e1b5cfa462

10 years agoMerge "Fix test MAC addresses to be valid" into milestone-proposed
Jenkins [Sun, 6 Apr 2014 05:13:57 +0000 (05:13 +0000)]
Merge "Fix test MAC addresses to be valid" into milestone-proposed

10 years agoMerge "Cisco VPN driver correct reporting for admin state chg" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 14:06:09 +0000 (14:06 +0000)]
Merge "Cisco VPN driver correct reporting for admin state chg" into milestone-proposed

10 years agoMerge "De-duplicate unit tests for ports in Big Switch" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 07:10:43 +0000 (07:10 +0000)]
Merge "De-duplicate unit tests for ports in Big Switch" into milestone-proposed

10 years agoMerge "Add unit test for add_vxlan in test_linux_ip_lib" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 03:15:25 +0000 (03:15 +0000)]
Merge "Add unit test for add_vxlan in test_linux_ip_lib" into milestone-proposed

10 years agoMerge "Add missing DB migrations for BSN ML2 plugin" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:39:25 +0000 (02:39 +0000)]
Merge "Add missing DB migrations for BSN ML2 plugin" into milestone-proposed

10 years agoMerge "Set ns_name in RouterInfo as attribute" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:39:15 +0000 (02:39 +0000)]
Merge "Set ns_name in RouterInfo as attribute" into milestone-proposed

10 years agoMerge "use floatingip's ID as key instead of itself" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:27:30 +0000 (02:27 +0000)]
Merge "use floatingip's ID as key instead of itself" into milestone-proposed

10 years agoMerge "fixes tests using called_once_ without assert" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:22:48 +0000 (02:22 +0000)]
Merge "fixes tests using called_once_ without assert" into milestone-proposed

10 years agoMerge "Only send notifications on uuid device_id's" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:31:24 +0000 (01:31 +0000)]
Merge "Only send notifications on uuid device_id's" into milestone-proposed

10 years agoMerge "NSX: Fix pagination support" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:28:16 +0000 (01:28 +0000)]
Merge "NSX: Fix pagination support" into milestone-proposed

10 years agoMerge "Update BigSwitch Name to its correct name" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:28:06 +0000 (01:28 +0000)]
Merge "Update BigSwitch Name to its correct name" into milestone-proposed

10 years agoMerge "Fixing Arista CLI command" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:49 +0000 (01:27 +0000)]
Merge "Fixing Arista CLI command" into milestone-proposed

10 years agoMerge "Stop using portbindings_db in BSN ML2 driver" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:39 +0000 (01:27 +0000)]
Merge "Stop using portbindings_db in BSN ML2 driver" into milestone-proposed

10 years agoMerge "Don't emit log for missing attribute check policy" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:29 +0000 (01:27 +0000)]
Merge "Don't emit log for missing attribute check policy" into milestone-proposed

10 years agoMerge "Fix function parsing the kernel version" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:18 +0000 (01:27 +0000)]
Merge "Fix function parsing the kernel version" into milestone-proposed

10 years agoMerge "Return 409 for second firewall creation" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:09 +0000 (01:27 +0000)]
Merge "Return 409 for second firewall creation" into milestone-proposed

10 years agoMerge "Redundant SG rule create calls in unit tests" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:59 +0000 (01:26 +0000)]
Merge "Redundant SG rule create calls in unit tests" into milestone-proposed

10 years agoMerge "NSX plugin: return 400 for invalid gw certificate" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:48 +0000 (01:26 +0000)]
Merge "NSX plugin: return 400 for invalid gw certificate" into milestone-proposed

10 years agoMerge "fixes broken neutron-netns-cleanup" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:39 +0000 (01:26 +0000)]
Merge "fixes broken neutron-netns-cleanup" into milestone-proposed

10 years agoMerge "Log configuration values for OFA agent" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 00:24:14 +0000 (00:24 +0000)]
Merge "Log configuration values for OFA agent" into milestone-proposed

10 years agoMerge "Changed the message line of RouterInUse class" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 00:11:42 +0000 (00:11 +0000)]
Merge "Changed the message line of RouterInUse class" into milestone-proposed

10 years agoSet ns_name in RouterInfo as attribute
Jakub Libosvar [Thu, 3 Apr 2014 12:52:59 +0000 (14:52 +0200)]
Set ns_name in RouterInfo as attribute

Closes-Bug: #1302007
Change-Id: I02a9b92eea06010569d3d9c5a987e69f89b23be5
(cherry picked from commit ceee7b4ac9d027499dfd2568868f1192bfb77879)

10 years agouse floatingip's ID as key instead of itself
Yong Sheng Gong [Wed, 19 Mar 2014 08:14:33 +0000 (16:14 +0800)]
use floatingip's ID as key instead of itself

Change-Id: I267f174a0e2e611ec007404c7b44e2c73a359c38
Closes-Bug: 1294526
(cherry picked from commit 7120325d37df414d8de084c5b41fdfbea3a06565)

10 years agoDe-duplicate unit tests for ports in Big Switch
Kevin Benton [Thu, 20 Mar 2014 14:24:33 +0000 (07:24 -0700)]
De-duplicate unit tests for ports in Big Switch

This eliminates the separate classes that existed
for the VIF type testing. Each class was going
through all of the port tests when none of the
logic those tests were exercising was affected by
the VIF types.

This cut the number of tests run in test_restproxy_plugin
by close to 44% without a reduction in code coverage.

Closes-Bug: #1295448
Change-Id: I8c84e1599568fad36b6dd3d51e4ba8a3c012c6c5
(cherry picked from commit 913f45bc16dd2c35f7be772d5867f9208064498a)

10 years agoNSX: Fix pagination support
armando-migliaccio [Fri, 21 Mar 2014 21:48:19 +0000 (14:48 -0700)]
NSX: Fix pagination support

Add pagination support to the base plugin,
leaving the service plugin unaltered.

Minor tweaks to the UT where required to
avoid intermittent failures caused by random
ordering.

Closes-bug: 1295854

Change-Id: I03e9e104967716046909d6120426e879f714a5c8
(cherry picked from commit 16ce0ae2c2b50b4317cdb95e62246d805b3d76a9)

10 years agofixes tests using called_once_ without assert
Miguel Angel Ajo [Mon, 31 Mar 2014 13:50:55 +0000 (15:50 +0200)]
fixes tests using called_once_ without assert

A few tests were using mock's called_once, or called_once_with_args
instead of assert_called_once or assert_called_once_with_args. Those
methods return a bool that needs to be actively checked.

The tests are fixed to avoid them from passing if the call condition
is not met.

Change-Id: I21e5257b26b2a08cc8f0b108233d1d5cc0b97b89
Closes-bug: #1297875
(cherry picked from commit c6c4a20777921dc1b21e80edb96ccd957a054c68)

10 years agoAdd missing DB migrations for BSN ML2 plugin
Kevin Benton [Tue, 1 Apr 2014 02:58:31 +0000 (19:58 -0700)]
Add missing DB migrations for BSN ML2 plugin

Adds missing database migrations for the Big Switch
ML2 driver and plugin.

Closes-Bug: #1298459
Change-Id: I6a46a53e069353501d85c4c8400f98514d6f0162
(cherry picked from commit d3be7b040eaa61a4d0ac617026cf5c9132d3831e)

10 years agoUpdate BigSwitch Name to its correct name
Kanzhe Jiang [Fri, 28 Mar 2014 18:31:56 +0000 (11:31 -0700)]
Update BigSwitch Name to its correct name

Update Neutron documentation and code comments to replace
"BigSwitch" name to "Big Switch"

Closes-Bug: #1299145
Change-Id: I7c14f6170871b361c8929898ee6af5d1a1f41714
(cherry picked from commit 408ef55d4ef1a9d246571511203ab337ba5346c6)

10 years agoStop using portbindings_db in BSN ML2 driver
Kevin Benton [Tue, 1 Apr 2014 08:05:29 +0000 (01:05 -0700)]
Stop using portbindings_db in BSN ML2 driver

Avoids using the portbindings_db in the Big Switch
ML2 driver since ML2 has deprecated that database for
its own version that tracks the same information.

Also eliminates unnecessary 'binding_host' field since
it is now always the same as as the 'portbinding:host_id'
field.

Closes-Bug: #1300628
Change-Id: I17d47cb446cdd2e989c3e0d01b797a81309faaa7
(cherry picked from commit c70c2719d700902854ef0381cb725722ac2da05e)

10 years agoFix function parsing the kernel version
Simon Pasquier [Tue, 1 Apr 2014 13:55:55 +0000 (15:55 +0200)]
Fix function parsing the kernel version

Change-Id: Id56efb476144a18cd9eb7279bc0f602760a86173
Closes-Bug: #1300808
(cherry picked from commit d4fdac7ae596888b8e83d9559019eafb728cd3fe)

10 years agoFixing Arista CLI command
sukhdev [Wed, 2 Apr 2014 02:01:50 +0000 (19:01 -0700)]
Fixing Arista CLI command

A minor change is made to the Arista API between ML2 Driver and the
back-end. This fix addresses this change to align Icehouse release with
Arista EOS releases.

Change-Id: Ia7cd3701c76d920a7e0d1334290c73ce7e8e5576
Closes-Bug: 1301093
(cherry picked from commit f3e9b6d6dc53d2e85c9085a1e3ec11b51f803948)

10 years agoReturn 409 for second firewall creation
Akihiro Motoki [Wed, 2 Apr 2014 02:34:01 +0000 (11:34 +0900)]
Return 409 for second firewall creation

Second firewall creation returns 500, but it is an expected behavior
of firewall reference implementation and an internal server error
should not be returned.

Change-Id: I9f537b238007d35172e2504591d9d3568ba3a41a
Closes-Bug: #1301105
(cherry picked from commit 9df867c672bfb3f80511086c889b744113c56604)

10 years agoDon't emit log for missing attribute check policy
Salvatore Orlando [Fri, 4 Apr 2014 10:30:12 +0000 (03:30 -0700)]
Don't emit log for missing attribute check policy

A missing policy for validating whether an attribute should
be visible or not is a perfectly normal condition, and
there is no value in logging it.

Writing this information to the log is also having a
considerable performance impact on list operations.

Change-Id: Ie9d3ae6b249a5c49f6d81c1e56915174d8479a07
Closes-Bug: 1302467
(cherry picked from commit ef01fb553a141c012c8d8600edd6b709c5807111)

10 years agoFix test MAC addresses to be valid
Brian Haley [Mon, 31 Mar 2014 16:14:59 +0000 (12:14 -0400)]
Fix test MAC addresses to be valid

MAC addresses should have 6 octets - 'ff:ff:ff:ff:ff:ff'.

Change-Id: I9c2457d978ccce15549d3258961093a130375bff
Closes-bug: #1302282
(cherry picked from commit 5f042a64308cb00698b454da09b4a87f2ac3fafd)

10 years agoRedundant SG rule create calls in unit tests
sridhargaddam [Thu, 3 Apr 2014 17:59:37 +0000 (23:29 +0530)]
Redundant SG rule create calls in unit tests

This patch removes the redundant calls in the test cases.

Closes-Bug: #1302091
Change-Id: I509843b427dc454c0e6b2fd2cbff1bbbb284337f
(cherry picked from commit c49ec8b3ba10bb414a0f135d29ff3685e26d58b3)

10 years agoNSX plugin: return 400 for invalid gw certificate
Salvatore Orlando [Sat, 15 Mar 2014 00:43:42 +0000 (17:43 -0700)]
NSX plugin: return 400 for invalid gw certificate

Gateway certificates are validated by the NSX backend.
The code currently treats a failure in certification
validation as a backend failure and therefore returns
a 500 status code.

This patch changes this behaviour by returning a 400
status code and an appropriate error description.
To this aim a handler for 400 errors has been added to
the NSX API client.

Closes-Bug: #1293508

Change-Id: I196f14337e47cd40710a6d8a30bbe1cac5ffe05b
(cherry picked from commit 13c9f3b813f5bb368e311ba0d428fa759d68289a)

10 years agoAdd unit test for add_vxlan in test_linux_ip_lib
Sphoorti Joglekar [Fri, 14 Mar 2014 12:52:43 +0000 (18:22 +0530)]
Add unit test for add_vxlan in test_linux_ip_lib

This patch adds unit tests for the add_vxlan function in the test_linux_ip_lib.py
file.

Fixes bug: 1291974

Change-Id: I0238bedab7a3566aff1115a091ada494a01d2e02
(cherry picked from commit dd52ddb1e9322b3985ceba2db842e8201220f67f)

10 years agofixes broken neutron-netns-cleanup
Miguel Angel Ajo [Tue, 18 Mar 2014 12:33:19 +0000 (13:33 +0100)]
fixes broken neutron-netns-cleanup

Some configuration parameters used in neutron.agent.linux.utils
were missing. The namespace attribute in the FakeNetwork object
was missing, and used in neutron.agent.linux.dhcp. Also, the
plugin object was missing for release_dhcp_port operation.

We provide a fake plugin object to accept current and any future
plugin calls as this is meant to be an standalone tool that
should work without any RPC connectivity.

FakeNetwork was switched for neutron.agent.linux.dhcp.NetModel
to follow any future changes in NetModel.

Two wrong called_once_with_args calls without assert were fixed.

Change-Id: Ia51ea9bd4c8eea6b250858964ad5286c933702e0
Closes-Bug: #1291915
Partial-Bug: #1297875
(cherry picked from commit 907bf41afbdb9f565c45a535f637c8928d0be52a)

10 years agoCisco VPN driver correct reporting for admin state chg
Paul Michali [Fri, 21 Mar 2014 13:14:07 +0000 (13:14 +0000)]
Cisco VPN driver correct reporting for admin state chg

Depends on reference implementation change (81124 review) that will pass VPN
service admin up/down changes to the service driver (for subsequent passing
to the device driver).

This change will save the runtime state of the IPSec connections that have
been removed due to a VPN service down change, so that this can be reported
to the plugin properly. Otherwise, without the change, there is no info
on the downed connection and no change report so the plugin thinks the
connection is still active.

In addition, the status for the VPN service will reflect whether there are
any IPSec connections ACTIVE. If one or more are acive, the service will
be active, otherwise it will be DOWN.

Updated UT to add tests for admin state and status reporting. Also changed
some IPSec create UTs because they were not cleaning up correctly upon test
failures (only seen with a live CSR).

In the future, when the Cisco CSR REST API supports admin up/down support,
the IPSec connections will not be deleted, but instead will be shut down, in
response to an admin down event (and then brought up, for admin up). During
the down time, the state will be reported correctly and no run-time state
recording needed.

Change-Id: I294bfb400c31ef36dfe5d9e85b34845e5aef8515
Closes-Bug: 1291619
(cherry picked from commit c1ccc585bda70925a4cffe617743ef6472fe60c4)

10 years agoLog configuration values for OFA agent
fumihiko kakuma [Fri, 7 Mar 2014 05:03:14 +0000 (14:03 +0900)]
Log configuration values for OFA agent

When other agents start up, they log the configuration values
to their logs. This patch adds the same feature to the
Openflow agent.

fixes bug 1289139

Change-Id: Ibab20154805a12ec265a2499cbfd6c376c376130
(cherry picked from commit 7d1e49a08a170ecf4e2546b25c67d4a8d41fd34a)

10 years agoOnly send notifications on uuid device_id's
Aaron Rosen [Mon, 31 Mar 2014 18:03:48 +0000 (11:03 -0700)]
Only send notifications on uuid device_id's

Neutron assumes that all ports with the device_owner that start with
'compute:' are ports created by nova compute. Thus, when the debug agent
creates a port with device_owner = compute:probe the nova notifier
feature tells nova when this port is wired even though nova does not know
about it (doesn't really matter we just log an error). This patch adds a check
to make sure the device_id is a uuid as nova only uses uuids and the debug
agent uses the hostname for device_id.

Change-Id: I04e7195a1fb30bc37e1c0141315c053174f8722c
Closes-bug: #1288582
(cherry picked from commit 6b4fecb9de0aa80e66b31555001dca95d14c789f)

10 years agoChanged the message line of RouterInUse class
sushma_korati [Thu, 27 Mar 2014 09:33:45 +0000 (15:03 +0530)]
Changed the message line of RouterInUse class

Implements: Changed the message line of RouterInUse class,
so user will not get confused with active or inactive ports
while deleting the router.

Closes-Bug: #1236372
Change-Id: I7a82550e2c6051f9e4940a8f1dd4401059e0a8d8
(cherry picked from commit 238689570145fdafe8e61967bb56133f167d39ab)

10 years agoReplace HTTPSConnection in NEC plugin
Daniel Gollub [Sun, 2 Mar 2014 08:33:38 +0000 (09:33 +0100)]
Replace HTTPSConnection in NEC plugin

Replace HTTPSConnection in NEC plugin PFC driver with Requests.

SSL Verification is from now on enabled by default.

This changes the default behaviour and is the primary intention of this
change: verify SSL certificates.

This might break existing configuration/setups where the SSL certificate
used by the NEC PFC driver would not pass the verification.

SecurityImpact
DocImpact
Partial-Bug: 1188189

Change-Id: I1e5fdc9c2ed5b812aa6509d1639bd499acc5c337
(cherry picked from commit 264b4a2523c165640f17aa4837f87ddfd0b49640)