]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 4 Mar 2014 06:27:53 +0000 (06:27 +0000)]
Imported Translations from Transifex

Change-Id: Ie6efde5d61d0c500fbbc45d715f605f4c316d166

10 years agoDifferent class names for VPNaaS migrations
Ann Kamyshnikova [Thu, 27 Feb 2014 12:27:40 +0000 (16:27 +0400)]
Different class names for VPNaaS migrations

In migrations 52ff27f7567a_support_for_vpnaas.py and
338d7508968c_vpnaas_peer_address_.py different class names are set:
neutron.services.vpn.plugin.VPNDriverPlugin and ne
utron.services.vpn.plugin.VPNPlugin.

Closes-bug: #1285641

Change-Id: Ieda8d3a8a022179867010b6e47d09cf7f43f5da9

10 years agoML2: database needs to be initalized after drivers loaded
Aaron Rosen [Fri, 28 Feb 2014 06:26:30 +0000 (22:26 -0800)]
ML2: database needs to be initalized after drivers loaded

Previously, if you started neutron-server with an empty database some
of the tables that drivers use are not automatically created. That said,
one should probably run neutron-db-manage manually to create the tables
and not rely on neutron to do this. This regression was cause in 326b85.

Change-Id: I2c578733de0213945b31fba86a3b0ea45c02295a
Closes-bug: #1285993
Co-Authored-By: Itsuro Oda <oda@valinux.co.jp>
10 years agoreplace rest of q_exc to n_exc in code base
Aaron Rosen [Tue, 4 Mar 2014 01:42:20 +0000 (17:42 -0800)]
replace rest of q_exc to n_exc in code base

The following patch renames the rest of q_exc to n_exc which were
left when quantum was renamed to neutron.

used: find . -name "*.py"  -print | xargs sed -i 's/q_exc/n_exc/g'

Change-Id: I04041030694b28c400b6c9c552433f2eaa4a37ba
Closes-bug: #1287462

10 years agoAdds multiple RPC worker processes to neutron server
Carl Baldwin [Tue, 11 Feb 2014 05:55:29 +0000 (05:55 +0000)]
Adds multiple RPC worker processes to neutron server

blueprint multiple-rpc-workers

Co-Authored-By: Terry Wilson<twilson@redhat.com>
Change-Id: I51f2a52add6c11af905e6f1e6e45d31731ebbb5d

10 years agoNEC plugin: PFC packet fitler support
Akihiro MOTOKI [Wed, 23 Oct 2013 04:40:53 +0000 (13:40 +0900)]
NEC plugin: PFC packet fitler support

It also enhances the following points of packet filter code:
- Allow to clear filter fields to wildcard by specifying None
  in PUT method
- Return None for wildcard fields in an API response
- Determine eth_type based on protocol field on DB layer
- Support OFC driver-specific API validation and update support
- Refactor packet filter code and better validations

Implements blueprint nec-packet-filter-pfc
Change-Id: I2b208c66a9f119ef6d2ef78079d9a7e5965202e7

10 years agoFix NVP/Nicira nits
armando-migliaccio [Mon, 3 Mar 2014 22:18:42 +0000 (14:18 -0800)]
Fix NVP/Nicira nits

Some references to NVP or Nicira went overlooked during
the rebranding exercise. This patch kills the last ones.

Implements blueprint nicira-plugin-renaming

Change-Id: I9f5e4f38246adbd6f821310a0bcfc3ad40c3ad38

10 years agoNSX: make sync backend run more often
Aaron Rosen [Wed, 26 Feb 2014 18:26:20 +0000 (10:26 -0800)]
NSX: make sync backend run more often

This patch bumps the state_sync_interval from 120 seconds to 10 seconds
so that resource's operation status are synced to the db quicker. This cuts
the amount of time that tempest takes to run by half.

Closes-bug: 1285338
Co-Authored-By: Salvatore Orlando <salv.orlando@gmail.com>
Change-Id: I494a6f95c2321befc3c0bfedc719e18a1826d9d5

10 years agoEmbrane Plugin fails alembic migrations
Ivar Lazzaro [Mon, 3 Mar 2014 19:29:17 +0000 (11:29 -0800)]
Embrane Plugin fails alembic migrations

Alembic migration from revision f44ab9871cd6 to 2eeaf963a447 is failing on
Embrane Plugin because the floatingips table doesn't exist.

The problem happens because the plugin is actually inheriting from OVS's Plugin,
and therefore it doesn't take part of the correct migration path at installation time.

As far as I have investigated, adding the support on ext_gw_mode and l3_support is enough to solve the problem.

Change-Id: Ide740df34d06d87fab50cf6468c5d753cb46f112
Closes-bug: 1287330

10 years agoImplement Mellanox ML2 MechanismDriver
Irena Berezovsky [Sun, 9 Feb 2014 06:06:45 +0000 (08:06 +0200)]
Implement Mellanox ML2 MechanismDriver

This commit adds support for currently provided Mellanox Plugin
embedded switch functionality as part of the VPI (Ethernet/InfiniBand)
HCA as an ML2 MechanismDriver.
MechanismDriver adds support for VNIC_DIRECT and VNIC_MACVTAP vnic types.
MechanismDriver provides configurable default vif_type for neutron port created
with default VNIC_NORMAL vnic type till nova api support for vnic_type is available.

Implements blueprint mlnx-ml2-support

Change-Id: I16ad318f095b7af879e1b99dcc7f5f9e92facd2b

10 years agoUse database session from the context in N1kv plugin
Abhishek Raut [Thu, 27 Feb 2014 03:38:42 +0000 (19:38 -0800)]
Use database session from the context in N1kv plugin

Avoid inconsistencies by using context.session for database
transactions wherever possible in the Cisco N1KV plugin.

Change-Id: Ic0784cbbf50beae6bb3b124c959ae90f3affb604
Closes-Bug: #1285473

10 years agoRemove nvplib and move utility methods into nsxlib
Salvatore Orlando [Fri, 14 Feb 2014 00:55:13 +0000 (16:55 -0800)]
Remove nvplib and move utility methods into nsxlib

This patch completes the process of moving code from nvplib
to nsxlib. Utility methods such as do_request and get_all_query_pages
are transferred into nsxlib, so that nvplib can be safely removed.

Partially implements blueprint nicira-plugin-renaming

Change-Id: I43be18c89ac908ebae32b39a8508a7006b5fe328

10 years agoBigSwitch: Add address pair support to plugin
Kevin Benton [Tue, 18 Feb 2014 09:22:11 +0000 (09:22 +0000)]
BigSwitch: Add address pair support to plugin

Adds support for the address pair extension to
the BigSwitch/restproxy plugin.

Implements: blueprint bsn-address-pairs
Change-Id: If03e8752155bcb8b21f5a427c54640c5b63f77f3

10 years agoRemove unused 'as e' in exception blocks
shihanzhang [Mon, 3 Mar 2014 01:11:29 +0000 (09:11 +0800)]
Remove unused 'as e' in exception blocks

Change-Id: I0bd26e1657a4e0ec40405d03d43aee9e10a13636
Closes-bug: #1287031

10 years agoRemove vim line from db migartion template
Akihiro Motoki [Mon, 3 Mar 2014 05:57:42 +0000 (14:57 +0900)]
Remove vim line from db migartion template

This commit also empties __init__.py and removes vim
modelines in the db migration related codes.

Change-Id: I9f83109c5becb6cf7e2e6ad9ad8eb9af3d8e0972
Closes-Bug: #1286991

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 3 Mar 2014 06:26:26 +0000 (06:26 +0000)]
Imported Translations from Transifex

Change-Id: I6b0267b40434d3fecdb8e071874c1c2543b643b0

10 years agoSupport advanced NVP IPsec VPN Service
berlin [Tue, 5 Nov 2013 02:31:00 +0000 (10:31 +0800)]
Support advanced NVP IPsec VPN Service

The patch adds NVP advanced IPsec VPN Service support for NVP with VCNS:
    * NVP IPsec VPN is an  advanced Service depending on NVP
      advanced service router
    * NVP IPsec VPN Service will finally call VCNS IPsec VPN bulk
      reconfiguration to map to VPN DB logic

Implements: blueprint nvp-vpnaas-plugin
Change-Id: Ic8a96f5defc2b868c6f18fb4966b04079d3c781a

10 years agoImproves Arista's ML2 driver's sync performance
Shashank Hegde [Fri, 14 Feb 2014 02:20:45 +0000 (18:20 -0800)]
Improves Arista's ML2 driver's sync performance

In large scale deployments a full sync between Neutron and EOS can take minutes.
In order to cut that time, this patch batches multimle EOS CLI commands and
sends them to EOS instead of sending each command separately. For example, if a
tenant has 10 networks, instead of making 10 RPC calls to EOS to create those 10
networks, this patch builds a commands to create those 10 networks and makes
just one RPC call to EOS which cuts down sync times significantly. All the _bulk()
methods are added to batch such requests.

Another optimization is to timestamp when the Region data was modified (This
includes any tenant creation, their networks, VMs and ports). The sync gets the
timestamp from EOS and only if the timestamps do not match, the driver performs
a full sync.

Closes-Bug: 1279619
Change-Id: I7d17604a7088d7dbb6e3dbb0afdb8e6759c1f67d

10 years agoFix NVP FWaaS errors when creating firewall without policy
berlin [Thu, 20 Feb 2014 03:07:03 +0000 (11:07 +0800)]
Fix NVP FWaaS errors when creating firewall without policy

Change-Id: I7ced6fe91a2d27c3739c54aa90489976532b3ecc
Closes-Bug: #1282366

10 years agoRemove call to addCleanup(cfg.CONF.reset)
Irena Berezovsky [Sun, 2 Mar 2014 06:52:56 +0000 (08:52 +0200)]
Remove call to addCleanup(cfg.CONF.reset)

The addCleanup(cfg.CONF.reset) is done by base class,
therefore no need to invoke it from mlnx agent unit test setUp method.

Change-Id: Ie7e55d92e63a28699d8fec7c63951449eb7c0a50
Closes-Bug: 1286716

10 years agonec plugin: Avoid long transaction in delete_ports
Akihiro Motoki [Fri, 21 Feb 2014 08:42:46 +0000 (17:42 +0900)]
nec plugin: Avoid long transaction in delete_ports

db_plugin.delete_ports() can lead to long transaction
if plugin.deleete_port talks with external system.
This commit removes a transaction in delete_ports and
allows NEC plugin to use more granular db transactions
in delete_port. It greatly helps db race conditions and
timeouts in delete_port operations.

To avoid to impact other plugins/drivers by changing
db_plugin.delete_ports directly and to land this patch soon,
this commit overrides delete_ports() in NEC plugin.
Further disssion on transaction in delete_ports will be
discussed under bug 1282925.

Closes-Bug: #1282922
Related-Bug: #1282925

Change-Id: I2c00694ad34eb2058bf7a0ff1c920ceded327d43

10 years agoAvoid using "raise" to reraise with modified exception
Akihiro Motoki [Wed, 12 Feb 2014 17:51:45 +0000 (02:51 +0900)]
Avoid using "raise" to reraise with modified exception

The code changes the exception and reraises it.
This commit changes the code to use the same way as
excutils.save_and_reraise_exception does to ensure
the exception context.

This is the last patch of reraise clean up series.

Closes-Bug: #1279813
Change-Id: I8787dcbdc8321f75964de26e97cae395707aafc2

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 2 Mar 2014 06:27:26 +0000 (06:27 +0000)]
Imported Translations from Transifex

Change-Id: Ie3ccabd213f1ff460585ae05beef6e4df9c46c38

10 years agoImplement OpenFlow Agent mechanism driver
fumihiko kakuma [Wed, 29 Jan 2014 01:54:12 +0000 (10:54 +0900)]
Implement OpenFlow Agent mechanism driver

This adds ML2 mechanism driver controlling OpenFlow switches
and an agent using Ryu as OpenFlow Python library.
- An agent acts as an OpenFlow controller on each compute nodes.
- OpenFlow 1.3 (vendor agnostic unlike OVS extensions).

Implements: blueprint ryu-ml2-driver
Change-Id: I6a8168d24f911996639179d91c4da49151751057

10 years agoFinish off rebranding of the Nicira NVP plugin
armando-migliaccio [Tue, 18 Feb 2014 19:43:23 +0000 (11:43 -0800)]
Finish off rebranding of the Nicira NVP plugin

Old names are kept for backward compatibility.

Last references to the old NVP plugins are going
to be dropped in Juno.

Completes blueprint nicira-plugin-renaming

Change-Id: Ia1aa4f658891e7ce9469748432c338353195edfd

10 years agoLog configuration values for OVS agent
Stephen Ma [Sun, 2 Mar 2014 01:57:48 +0000 (01:57 +0000)]
Log configuration values for OVS agent

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

Change-Id: I00bc82a3dafbd214a2ddbdf525dd4cc327838af9
Closes-bug: #1285962

10 years agoBigSwitch: Asynchronous rest calls for port create
Kevin Benton [Tue, 18 Feb 2014 22:18:47 +0000 (22:18 +0000)]
BigSwitch: Asynchronous rest calls for port create

Makes rest calls for port creation an async
operation so create_port calls immediately
return in a BUILD state.

Implements: blueprint bsn-port-async
Change-Id: Ib512a846fa878ec33205df08a3b2464b7ea0941a

10 years agoIntroduce status for floating IPs
Salvatore Orlando [Tue, 14 Jan 2014 20:01:40 +0000 (12:01 -0800)]
Introduce status for floating IPs

Add a new 'status' attribute to the floating IP resource.
Extend the plugin RPC interface for allowing status updates from agents,
and implement support for operational status in the L3 agent.

The default behaviour for all the plugins different from
neutron.services.l3_router.l3_router_plugin is to set the status of
a floating IP to ACTIVE upon creation.

Implements blueprint fip-op-status
Change-Id: Ib0176fbcde95b0db5dfdabd4fc297d1d29c0d604

10 years agoBigSwitch: Add agent to support neutron sec groups
Kevin Benton [Tue, 11 Feb 2014 03:36:22 +0000 (19:36 -0800)]
BigSwitch: Add agent to support neutron sec groups

Adds a BigSwitch Agent responsible for supporting
neutron security groups on the compute node. Adds
the mixin classes to the plugin to support the
security group calls.

Implements: blueprint bsn-neutron-sec-groups
Change-Id: I3a09888a3ba7d565c2dce8293821919c1e5d0d15

10 years agoAdds the new IBM SDN-VE plugin
Mohammad Banikazemi [Thu, 27 Feb 2014 11:45:17 +0000 (06:45 -0500)]
Adds the new IBM SDN-VE plugin

It adds a new plugin for SDN-VE, the IBM SDN
controller. The plugin supports the core API
and the port binding and L3 extensions.

Implements: blueprint ibm-sdn-ve-plugin
DocImpact

Change-Id: I92619a95bca2ae0c37e7fdd39da30119b43d1ad6

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 1 Mar 2014 06:29:47 +0000 (06:29 +0000)]
Imported Translations from Transifex

Change-Id: I47d93d0d64fe9613d974d2530d1ba22cf900d441

10 years agoNuage Networks Plugin
ronak [Thu, 16 Jan 2014 18:26:01 +0000 (10:26 -0800)]
Nuage Networks Plugin

Nuage networks’ openstack networking plugin enables integration
of openstack with Nuage Networks’ Virtual Service Platform (VSP)

Change-Id: If20b385b78a350cb9aae2c70b6a44888e74c23bc
Implements: blueprint nuage-networks-plugin

10 years agoFixes spelling error
Matthew Weeks [Fri, 28 Feb 2014 19:31:43 +0000 (11:31 -0800)]
Fixes spelling error
Closes-Bug: #1284257

Change-Id: I3c5ff9b7e8830023f54d09d74c1a9d3c9a4b82f5

10 years agoOpenvswitch update_port should return updated port info
Jon Grimm [Wed, 27 Nov 2013 19:10:33 +0000 (13:10 -0600)]
Openvswitch update_port should return updated port info

Found when I enabled test_extension_allowedaddress_pairs, where
test_create_port_removed_allowed_address_pairs would fail due to the
returned port still containing the original addresspair.  The cause is
ovs simply not updating the port info being returned.

This patch additionally enables test_extension_allowedaddress_pairs for
openvswitch.

Moved checks and updating into method similar to what we do for
extradhcpopts and security_groups.

Additionally, this required fixing is_address_pairs_attribute_updated() as
it was passing (non-hashable) dicts to utils.compare_elements.

Change-Id: Ic871fea68fb9fcc862b1fd5ae5fe7aec540e4a30
Partial-Bug: #1255150

10 years agoUpdated from global requirements
OpenStack Jenkins [Fri, 28 Feb 2014 17:37:58 +0000 (17:37 +0000)]
Updated from global requirements

Change-Id: Idafb224b0a2c4845fd1689527a08e0c36701cddd

10 years agoChange firewall to DOWN when admin state down
Xuhan Peng [Fri, 14 Feb 2014 09:20:01 +0000 (04:20 -0500)]
Change firewall to DOWN when admin state down

Currently firewall remains in status "ACTIVE" after admin state
is changed to DOWN.

This fix sets firewall status to "DOWN" if admin state is updated
from "UP" to "DOWN". "DOWN" status is used by other network resources
so use "DOWN" to keep consistent.

Change-Id: If316b114c4df78368b43c2a15a820bb1177b3a54
Closes-Bug: 1279213

10 years agoNSX: add missing space 'routeron'
Aaron Rosen [Fri, 28 Feb 2014 07:38:59 +0000 (23:38 -0800)]
NSX: add missing space 'routeron'

Noticed this in the logs and figured why not add the space...

Change-Id: Idb85aab428d5bbc5c901c49d4a65e95a60a93cb4

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 28 Feb 2014 06:28:34 +0000 (06:28 +0000)]
Imported Translations from Transifex

Change-Id: I66deed169f57a9501fd4b9a0170d4f2da037e0cc

10 years agoUpdate License Headers to replace Nicira with VMware
armando-migliaccio [Tue, 18 Feb 2014 16:51:34 +0000 (08:51 -0800)]
Update License Headers to replace Nicira with VMware

In the process __init__.py involved have been emptied;
vim modelines and author lines have been dropped from
the license headers affected by the change as well.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I9c535b59bb2e83f275816472e0e32b41444d3bbe

10 years agoRenaming plugin-specific exceptions to match NSX
armando-migliaccio [Fri, 14 Feb 2014 00:57:19 +0000 (16:57 -0800)]
Renaming plugin-specific exceptions to match NSX

Try to get rid of Nvp as much as possible, the base
class already uses the plugin short name so it's
pointless to carry it over.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: Ic3e53bc4e41ffe1a19ea03e807ec89bb6c864f51

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 27 Feb 2014 06:26:05 +0000 (06:26 +0000)]
Imported Translations from Transifex

Change-Id: If3e28d9e7df1d526e4bce2dfc01c6241b2115e72

10 years agoDB Mappings for NSX security groups
Salvatore Orlando [Fri, 27 Dec 2013 23:36:22 +0000 (15:36 -0800)]
DB Mappings for NSX security groups

This patch introduces DB mappings between neutron security
groups and NSX security profiles, thus not requiring anymore
the Neutron router ID to be equal to the NSX one.

This change is needed for enabling asynchronous operations in
the NSX plugin.

Related to blueprint nvp-async-backend-communication

Change-Id: I3b28d535c93cd2bfc776aabe0d99be18fce4454d

10 years agoNSX: port status must reflect fabric, not link status
Salvatore Orlando [Thu, 27 Feb 2014 00:43:59 +0000 (16:43 -0800)]
NSX: port status must reflect fabric, not link status

This patch ensures the status attribute for the port resource is
semantically consistent with the reference plugin when using the
NSX plugin.

Change-Id: Ifb9c7664da926d3e6d5c6ec7c0e375b53a97582a
Closes-Bug: 1285426

10 years agoTypo/grammar fixes for the example neutron config file
Jeremy Hanmer [Wed, 26 Feb 2014 23:59:51 +0000 (15:59 -0800)]
Typo/grammar fixes for the example neutron config file

Change-Id: I12d21ef2a5bff5a8cdd08fea42b413b062479926

10 years agoNSX: Pass NSX uuid when plugging l2 gw attachment
Salvatore Orlando [Wed, 26 Feb 2014 22:38:24 +0000 (14:38 -0800)]
NSX: Pass NSX uuid when plugging l2 gw attachment

The code passed the neutron network identifier.
This is no longer valid as identifiers on the backend are not
anymore the same as neutron identifiers.

Also, this would have hardly worked with networks on extended
logical switches.

Closes-Bug: 1285399
Change-Id: I6fe4d22d5b8d8b7dc3eb1cb3f47ad52ac1a2b565

10 years agostats table needs columns to be bigint
Stephen Gran [Mon, 24 Feb 2014 20:18:49 +0000 (20:18 +0000)]
stats table needs columns to be bigint

Bandwidth measurements trivially overrun 32bit counters.  Change storage
type to BigInteger from Integer.

Closes-Bug: #1284314
Change-Id: I20db25f374de66b8443ff50bac979bff634d8a14
Signed-off-by: Stephen Gran <stephen.gran@guardian.co.uk>
10 years agoRemove import extension dep from db migration
Mark McClain [Wed, 26 Feb 2014 18:24:55 +0000 (13:24 -0500)]
Remove import extension dep from db migration

Change-Id: Ic8907a9960807b30d8b89df0ee29e42b26a7675a
Closes-bug:1285294

10 years agoFix get_vif_port_by_id to only return relevant ports
Vincent Untz [Sun, 23 Feb 2014 16:57:05 +0000 (17:57 +0100)]
Fix get_vif_port_by_id to only return relevant ports

This is returning any port, even if it's not on the switch that we're
looking at. As a side-effect, this means that we can actually manipulate
these ports while we really shouldn't.

Co-Authored-By: Rossella Sblendido <rsblendido@suse.com>
Change-Id: Ia4f4e93237c1c2ea6cb4b6c2f5adf78d6b34c7bf
Closes-Bug: #1283765

10 years agoFix NSX migration path
Salvatore Orlando [Wed, 26 Feb 2014 11:06:38 +0000 (03:06 -0800)]
Fix NSX migration path

The migration path for the NSX plugin was not working correctly,
as two migrations (extra route and network gateways) were
skipped.
Therefore installations were partially relying on automatic
schema generation.

This patch fixes the migration path, as well as an attribute
whose name in the migration and the DB model differed.

Closes-Bug: 1285095

Change-Id: I9e4db294e618d1419d86e07cfb5505dcc01b54ca

10 years agoAdd user-supplied arguments in log_handler
Shuangtai Tian [Wed, 26 Feb 2014 11:11:38 +0000 (19:11 +0800)]
Add user-supplied arguments in log_handler

Sync from Oslo, change-id: I91289cc4a60f5dab89bca852e6f52b4b83831e47

When using PublishErrorsHandler, it will missing user-supplied
arguments. For example, do LOG.info("blabla %s", "foo"), the
payload only contains "blabla %s", but we expect it like "blabla foo".

Change-Id: I9e5515da31a04b82d49e406bc6b246f940fb73fc

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 26 Feb 2014 06:29:30 +0000 (06:29 +0000)]
Imported Translations from Transifex

Change-Id: I69ef916bdf23529a175aa94b761f6f29f00b71d8

10 years agoNSX: Fix newly created port's status should be DOWN
Aaron Rosen [Wed, 12 Feb 2014 22:25:31 +0000 (14:25 -0800)]
NSX: Fix newly created port's status should be DOWN

Previously when creating a port in neutron using the nsx plugin
the port status returned would be ACTIVE even if this was not the
case. Now, DOWN is returned which will be updated by the backend
when the port goes ACTIVE.

Change-Id: I600fb1292ae79146cb14c7e23170262973878de0
Closes-bug: #1279551

10 years agoBigSwitch: Stop using external locks
Kevin Benton [Tue, 25 Feb 2014 19:37:06 +0000 (11:37 -0800)]
BigSwitch: Stop using external locks

Changes BigSwitch server manager REST lock
to an in-memory lock since the plugin isn't
expected to run in independent processes.

Closes-Bug: #1284881
Change-Id: I2fdd5ba79a0c4b94b2b410db54a63f7c0ca47525

10 years agoRename/refactoring of NVP api client to NSX
armando-migliaccio [Wed, 12 Feb 2014 21:39:48 +0000 (13:39 -0800)]
Rename/refactoring of NVP api client to NSX

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I7d3bc088762f53473892480b2e238fe60c2c0b74

10 years agoRemove pyudev dependency
Darragh O'Reilly [Tue, 14 Jan 2014 15:02:17 +0000 (15:02 +0000)]
Remove pyudev dependency

pyudev was only used by the linuxbridge-agent to get the list
of virtual network devices. This can be got from /sys instead.
This patch fixes the problem where testr could not import the
lb-agent module because pyudev was not in requirements.txt.

Change-Id: I0a78c91e97de4413f2ecf6fb56d2ff61b36baa78
Closes-Bug: 1269040

10 years agoRename DB models and related resources for VMware NSX plugin
armando-migliaccio [Wed, 12 Feb 2014 01:35:30 +0000 (17:35 -0800)]
Rename DB models and related resources for VMware NSX plugin

This patch also introduces a DB migration to update the
affected tables, and the enum type for those DB engines that
require it.

Additions made to existing migrations are needed to ensure
that green deployments using the new plugin name will apply
the migrations correctly.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: Ie0fdb51dfa399c44b749fa8345f334a2c8c29151

10 years agoLower log level of errors due to user requests to INFO
Akihiro Motoki [Wed, 19 Feb 2014 19:21:55 +0000 (04:21 +0900)]
Lower log level of errors due to user requests to INFO

Errors due to bad client requests (e.g., NotFound, BadRequest)
are logged as exception/trace level and it is annoying
from the point of operators' view.
This commit changes the log level for errors due to
user requests (HTTP 4xx errors) to INFO.

Closes-Bug: #1282394
Change-Id: Ic5646333db88ce856f9366e914cf961890d30501

10 years agoInclude proper Content-Type in the HTTP response headers
sridhargaddam [Mon, 24 Feb 2014 15:21:31 +0000 (20:51 +0530)]
Include proper Content-Type in the HTTP response headers

Neutron namespace proxy handler and metadata agent were not setting the
Content-Type in its response. Both of them were returning only the response
data which is obtained from the nova-metadata-service. Since they were returning
only the response data, the Content-Type returned to the clients has the default
one which is - "text/html". Ideally this should be set to the data type which is
present in the HTTP Response. The fix now includes the Content-Type which is
returned by nova-metadata-service

Closes-Bug: #1243878
Change-Id: If68f0b508fbea4ecd1eb0e58d602b5ba6ccbe263

10 years agoLBaaS: check for associations before deleting health monitor
Oleg Bondarev [Thu, 24 Oct 2013 12:53:55 +0000 (16:53 +0400)]
LBaaS: check for associations before deleting health monitor

Need to prohibit health monitor deletion if it has associations with
pools. Given that pools may belong to different lbaas drivers the process
of monitor deletion becomes complex and unreliable since association
deletion may fail on any single driver.

DocImpact

Closes-Bug: #1243129
Change-Id: I27c20e7a5be8433f90569534ecf838e33027cb00

10 years agol2-population/lb/vxlan : ip neigh add command failed
mathieu-rohon [Thu, 20 Feb 2014 16:39:00 +0000 (17:39 +0100)]
l2-population/lb/vxlan : ip neigh add command failed

we were using ip neigh add command which must be replaced by
ip neigh replace, to avoid error when creating a VM with an ip
previously used by a deleted VM

Change-Id: I2405096d5925ae37efd5f8abcc02b99cf0c9f5d3
Closes-Bug: #1282662

10 years agol2-population : send flooding entries when the last port goes down
mathieu-rohon [Thu, 20 Feb 2014 09:39:43 +0000 (10:39 +0100)]
l2-population : send flooding entries when the last port goes down

Delete port used to call update_port_down to calculate
its fdb entries during delete_port_precommit. But during
the pre-commit, the port is still up, so update_port_down
acts as if there was still one port on the agent, and
doesn't add flooding entry in its fdb_entries.

Closes bug #1282141

Change-Id: Icedd02f33d999200505950beb9169ae3634e551b

10 years agotests/service: consolidate setUp/tearDown logic
Isaku Yamahata [Mon, 3 Feb 2014 06:44:02 +0000 (15:44 +0900)]
tests/service: consolidate setUp/tearDown logic

Consolidate the duplicate code for extension api tests.
This will be also used by servicevm extensions later.

At the same time, a bug in test_extension_firewall.py is also fixed.
double call of super().setUp().

Closes-bug: #1275654
Change-Id: I72f185ef6e5af55729ced51fc0b72fae799d46ac

10 years agoEnsure ovsdb-client is stopped when OVS agent dies
Terry Wilson [Fri, 24 Jan 2014 19:04:18 +0000 (13:04 -0600)]
Ensure ovsdb-client is stopped when OVS agent dies

If the OVS agent is killed, the interpreter is killed before any cleanup
is done. This patch adds a signal handler for SIGTERM that exits
normally so that the existing cleanup is done and the ovsdb-client
process is terminated.

Change-Id: Ie4f8ff434098100f4699124403d58caa784084cf

10 years agoNSX: Fix status sync with correct mappings
Salvatore Orlando [Mon, 24 Feb 2014 18:44:46 +0000 (10:44 -0800)]
NSX: Fix status sync with correct mappings

The code that syncs router status to the neutron_db was using the nsx
router id instead of the neutron router id thus synchronize_router
would never update the database.

Also, the switch synchronization routine was not fetching the
appropriate neutron id tag thus causing switch synchronization to
be skipped.

This patch also fixes the error in the unit tests which allowed for
the bug to be introduced.

Co-Authored-By: Salvatore Orlando <salv.orlando@gmail.com>
Closes-bug: 1283856

Change-Id: I26342ecea6ad546b224b7fca1e55f754b4883363

10 years agoSupport Port Binding Extension in Cisco N1kv plugin
Abhishek Raut [Fri, 24 Jan 2014 01:37:49 +0000 (17:37 -0800)]
Support Port Binding Extension in Cisco N1kv plugin

Change-Id: I9bcacb2b1f1bb1500b9176a49736aac128938de8
Closes-Bug: #1272128

10 years agochange Openstack to OpenStack in neutron
Ailing Zhang [Mon, 24 Feb 2014 18:34:25 +0000 (10:34 -0800)]
change Openstack to OpenStack in neutron

Change-Id: I769e00efb8d61679a544ed5ded1c93dd3bc252db

10 years agoML2 binding:profile port attribute
Bob Kukura [Thu, 13 Feb 2014 17:35:25 +0000 (12:35 -0500)]
ML2 binding:profile port attribute

The ML2 plugin stores the binding:profile port attribute, defined as a
dictionary, in its ml2_port_bindings DB table. Since the plugin can
support a variety of MechanismDrivers with different needs for
binding:profile attribute content, the plugin will accept, store, and
return arbitrary key/value pairs within the attribute. As with the
binding:host_id attribute, updates to binding:profile trigger
rebinding.

Implements: blueprint ml2-binding-profile
Change-Id: I01cba8d09dde9de1c6160d0235b0d289eed91b29

10 years agoRename/remove Nicira NVP references from VMware NSX unit tests
armando-migliaccio [Mon, 3 Feb 2014 22:19:25 +0000 (14:19 -0800)]
Rename/remove Nicira NVP references from VMware NSX unit tests

This patch sweeps for Nicira and NVP references and replace
them with VMware and NSX where possible. Some clean-up is
done along the way to improve the organization of the
unit tests module.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: I48e4779ccec64ba300b26d4967d3f9fae7cfdc14

10 years agoFix webob.exc.HTTPForbidden parameter miss
Haiwei Xu [Mon, 24 Feb 2014 13:12:59 +0000 (22:12 +0900)]
Fix webob.exc.HTTPForbidden parameter miss

HTTPForbidden should use the parameter 'explanation'
instead of 'detail'.
This patch fixes this bug.

Change-Id: I4c66697daf0ce9e00c8820311dc7141eacd7e733
Closes-Bug: #1283872

10 years agoSync oslo cache with oslo-incubator
Jakub Libosvar [Mon, 24 Feb 2014 08:37:11 +0000 (09:37 +0100)]
Sync oslo cache with oslo-incubator

Due to removal of py3kcompat we need to sync with
oslo-incubator in order to use six package directly.

Related-Bug: #1276440
Change-Id: Ib3d1c9e09497f7ecd7495ef0f70c6105c14a9783

10 years agoChange tenant network type usage for IB Fabric
Irena Berezovsky [Thu, 16 Jan 2014 12:28:01 +0000 (14:28 +0200)]
Change tenant network type usage for IB Fabric

This patch changes tenant network type usage for InfiniBand Fabric
to vlan type. Add the indication of Fabric Type (Ethernet/InfiniBand)
to the provider_network via the plugin configuration file.
If physical network type is not specified for some provider network
listed in the network_vlan_ranges, use default physical network type.

Co-authored-by: Roey Chen <roeyc@mellanox.com>
Change-Id: Id45acfb8234359a43303c2eee2205a44998c039a
Closes-Bug: 1263638

10 years agooptions: consolidate options definitions
Isaku Yamahata [Thu, 13 Feb 2014 11:19:25 +0000 (20:19 +0900)]
options: consolidate options definitions

Some config options(interface_driver, use_namespaces) are defined
multiple times in ad-hoc way.  It causes DuplicateOptError exception
when using those module at the same time.  Right now the exception is
avoided in ad-hoc way by each executable.  Those duplicated
definitions should be consolidated and treated in uniformed way.

This is the blocker for blueprint: l3-agent-consolidation

neutron.services.loadbalancer.drivers.haproxy.agent periodic_interval
conflicts with neutron.service one. Since there is no way to fix it
without changing existing behavior/default value, it is untouched for now.

Closes-bug: #1279769
Change-Id: Ifed79b7ee0033644854499416f8a2b22a20416fe

10 years agoReplace binding:capabilities with binding:vif_details
Bob Kukura [Tue, 4 Feb 2014 04:18:44 +0000 (23:18 -0500)]
Replace binding:capabilities with binding:vif_details

In addition to binding:vif_type, the neutron core plugin needs to
supply various information to nova's VIF driver, such as VIF security
details and PCI details when SR-IOV is being used. This information is
read-only, requires admin privileges, and is not intended for normal
users. Rather than add separate mechanisms throughout the stack for
each such requirement, the binding:capabilities port attibute, which
is a dictionary and is not currently not used by nova, is renamed to
binding:vif_details to serve as a general-purpose mechanism for
supplying binding-specific details to the VIF driver.

This patch does not remove or replace the CAP_PORT_FILTER boolean
previously used in binding:capabilities. A separate patch should
implement the specific key/value pairs carried by binding:vif_details
to implement VIF security. Another patch will implement the key/value
pairs needed for SR-IOV.

The ML2 plugin now allows the bound mechanism driver to supply the
binding:vif_details dictionary content, instead of just the
CAP_PORT_FILTER boolean previously carried by the binding:capabilities
attribute.

DocImpact: Need to update portbinding extension API, but no impact on
user or administrator documentation.

Implements: blueprint vif-details
Related-Bug: 1112912
Change-Id: I34be746fcfa73c70f72b4f9add8eff3ac88c723f

10 years agoMake sure dnsmasq can distinguish IPv6 address from MAC address
Dazhao [Fri, 21 Feb 2014 09:53:30 +0000 (17:53 +0800)]
Make sure dnsmasq can distinguish IPv6 address from MAC address

Currrently, due to in dnsmasq host file, the IPv6 address does
not be wrapped with '[]', dnsmasq cannot distinguish IPv6 address
from MAC address, it will cause the deployed instances cannot get
IPv6 address via dnsmasq dhcp service.

Change-Id: I023e44667a238664d11f2ac2cc484432cd301bcc
Closes-Bug: #1281916

10 years agoRename Neutron core/service plugins for VMware NSX
armando-migliaccio [Mon, 3 Feb 2014 21:03:29 +0000 (13:03 -0800)]
Rename Neutron core/service plugins for VMware NSX

Short aliases are introduced for the NSX plugin(s). This patch
also switches to using the new plugin names/naming scheme in
the unit tests.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: If1f1431b098bf77b9c85e0afb3d7848083d9d451

10 years agoMake metaplugin be used with a router service plugin
Itsuro Oda [Mon, 6 Jan 2014 06:03:14 +0000 (15:03 +0900)]
Make metaplugin be used with a router service plugin

"l3_plugin_list" configuration parameter of the metaplugin is permitted
blank now.
If "l3_plugin_list" is blank, router extension and extensions which extend
the router extension don't be included in "supported-extension-aliases" of
the metaplugin.
This makes the metaplugin be able to be used with a router service plugin.
Note that if "l3_plugin_list" is not blank, a router service plugin must
not be specified, otherwise the error of the bug report still occurs.

This patch removes some router extension related meaningless codes also.
(e.g.  external-net extension belongs to L2 functionality and be handled
 by core plugins properly.)

Closes-bug: 1266347
DocImpact

Change-Id: I0454bc0a4bd7eda5dad18b0538fb7baebe0b9f91

10 years agoFix wrap target in iptables_manager
Sylvain Afchain [Thu, 16 Jan 2014 13:37:36 +0000 (14:37 +0100)]
Fix wrap target in iptables_manager

This patch fixes issues when using wrap target
for add_rule and remove_rule methods.

Change-Id: I01926719ef5ccf229748b9ceb1553e5314ab623e
Closes-bug: #1269189

10 years agoBigSwitch: Fix tenant_id for shared net requests
Kevin Benton [Sun, 9 Feb 2014 19:39:39 +0000 (11:39 -0800)]
BigSwitch: Fix tenant_id for shared net requests

The URI port requests are sent to on the backend
contains the tenant_id of the network. This corrects
a bug where, on port updates and deletes, the tenant_id
of the port rather than the network was being used,
which was incorrect when attached to a shared network.

Closes-Bug: #1278530
Change-Id: I09ffc767c669416555867e975d0b7057a5cfa0cb

10 years agoBigSwitch: Use backend floating IP endpoint
Kevin Benton [Fri, 14 Feb 2014 12:25:40 +0000 (12:25 +0000)]
BigSwitch: Use backend floating IP endpoint

Adds new floating IP REST calls for backend
controllers that support it. Adds backend
capability discovery mechanism.

Implements: blueprint bsn-floating-ip-endpoints
Change-Id: I2301d62a05d256867255865556625603918e84cf

10 years agoUpdated from global requirements
OpenStack Jenkins [Sun, 23 Feb 2014 09:26:34 +0000 (09:26 +0000)]
Updated from global requirements

Change-Id: I194bd7c742152739717882774fef61174ccda9b9

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 23 Feb 2014 06:27:52 +0000 (06:27 +0000)]
Imported Translations from Transifex

Change-Id: I1417148b8fffe3ccb12ea7435997d6b43197b8f8

10 years agoRaise max header size to accommodate large tokens
zhhuabj [Fri, 17 Jan 2014 10:21:01 +0000 (18:21 +0800)]
Raise max header size to accommodate large tokens

The max header is exceeded in the following scenario
- Auth tokens built with a keystone v3 API catalog
- A catalog with approximately 8 or more endpoints defined

Change-Id: Ie815e457c0b25ab828e780b5d90233ba0ceff61f
Closes-Bug: #1251026

10 years agoNSX: get_port_status passed wrong id for network
Aaron Rosen [Tue, 18 Feb 2014 21:15:02 +0000 (13:15 -0800)]
NSX: get_port_status passed wrong id for network

The call to get_port_status in update_port was passing in the neutron
network_id instead of the nsx_network_id. These used to be the same
but now are different. This patch updates the code so that it now
passes in the correct uuid.

Change-Id: I7b0bd617f68291fa457a49e52d595bb8de1d4835
Closes-bug: #1281789

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 22 Feb 2014 06:33:35 +0000 (06:33 +0000)]
Imported Translations from Transifex

Change-Id: I9f7b5e2d2fffd8c54cd0ef5a0358a92b3a550f40

10 years agoReset API naming scheme for VMware NSX plugin
armando-migliaccio [Fri, 24 Jan 2014 00:23:26 +0000 (16:23 -0800)]
Reset API naming scheme for VMware NSX plugin

Introduce new naming scheme, whilst preserving
backward compatibility for the extensions affected.

Deprecated extensions will be removed from Juno.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: Icd68e5db04aa008ac31994ae0cb5c1b7f2551303

10 years agoremove pointless test TestN1kvNonDbTest
Aaron Rosen [Fri, 21 Feb 2014 21:29:41 +0000 (13:29 -0800)]
remove pointless test TestN1kvNonDbTest

Change-Id: Id0cd2ea394276f159c7edfadbdc517a16b24776c
closes-bug: #1283250

10 years agoRename Security Groups related methods for VMware NSX plugin
armando-migliaccio [Fri, 17 Jan 2014 07:08:20 +0000 (23:08 -0800)]
Rename Security Groups related methods for VMware NSX plugin

Second to last step for the renaming/refactoring of nvplib
and related modules. This is about security groups.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I0099bf25be77fdec90d515c890b728a477409ef9

10 years agoRename L2 Switch/Gateway related methods for VMware NSX plugin
armando-migliaccio [Thu, 16 Jan 2014 21:06:30 +0000 (13:06 -0800)]
Rename L2 Switch/Gateway related methods for VMware NSX plugin

Yet another another step for the renaming/refactoring
of nvplib and related modules. This is about l2 switches
and l2 gateways.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I35c2b20a33ed8f2df4334c335f91472f7b822f8e

10 years agoRename Router related methods for VMware NSX plugin
armando-migliaccio [Thu, 16 Jan 2014 01:18:54 +0000 (17:18 -0800)]
Rename Router related methods for VMware NSX plugin

This is another step for the renaming/refactoring of
nvplib and related modules. This is about routers.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: Ic69b2777fa1ae3125b8adf23943360e3fe18e4c2

10 years agoPlugins should call __init__ of db_base_plugin for db.configure
Aaron Rosen [Wed, 19 Feb 2014 23:08:54 +0000 (15:08 -0800)]
Plugins should call __init__ of db_base_plugin for db.configure

Currently each plugin calls db.configure() within the plugin's __init__
class or defines an initialize() method that's sole job is to call this
method. Instead we should just call the super method of a plugin so that
db.configure() is called for us out of the db_base_plugin class.

Note: the only reason why I'm making this change is that I want to add
something to the __init__() class of the db_base_plugin that's needed for
the nova-event-callback blueprint and adding it in the base class of init
looks to be the best place.

Change-Id: Iec3c912735021ceb90f657108aad3a57460d66e7
Closes-bug: #1282303

10 years agoFixes Tempest XML test failures for Cisco N1kv plugin
Sourabh Patwardhan [Thu, 20 Feb 2014 02:16:47 +0000 (18:16 -0800)]
Fixes Tempest XML test failures for Cisco N1kv plugin

Renamed N1kv_profile class to N1kv.
Modified N1kv attribute extension class to fix XML namespace issues.

Change-Id: I29b541730fc95c5e16667b64efd180be31e25b17
Closes-Bug: #1282352

10 years agoFixes broken documentation hyperlinks
Joe Harrison [Mon, 13 Jan 2014 14:27:38 +0000 (15:27 +0100)]
Fixes broken documentation hyperlinks

Several hyperlinks were incorrectly specified in one page of the docs.
These syntax typos have been fixed.

Change-Id: I1a4fe91ac05f51b71e01c001b76712752664ae74
Closes-Bug: #1268611

10 years agoUse "!=" instead of "is not" when comparing two values
Akihiro Motoki [Fri, 21 Feb 2014 12:15:19 +0000 (21:15 +0900)]
Use "!=" instead of "is not" when comparing two values

Change-Id: I2cd9575585dde7c44b528077a7bffa16379b1759
Closes-Bug: #1283019

10 years agoML2/vxlan/test: remove unnecessary self.addCleanup(cfg.CONF.reset)
Isaku Yamahata [Fri, 20 Dec 2013 03:50:17 +0000 (12:50 +0900)]
ML2/vxlan/test: remove unnecessary self.addCleanup(cfg.CONF.reset)

This patch is follow up of change set of
4808f91eb2c245344517fc89c37c6c4c88e9051b bug/1260262 review/61694.
The change set adds unnecessary self.addCleanup(cfg.CONF.reset) to
VxlanTypeMultiRangeTest as pointed out. This patch Remove the line.

Change-Id: Ia6ce4bc346cf6320ba556e80689dadb7d84e5ee8

10 years agoFix test_db_plugin.test_delete_port
Akihiro Motoki [Fri, 21 Feb 2014 09:25:28 +0000 (18:25 +0900)]
Fix test_db_plugin.test_delete_port

Also add PortNotFound check to test_delete_port_public_network.

Change-Id: Iec461364345b200e2d17ba26a6c5362eec6d93ef
Closes-Bug: #1282946

10 years agoHandle racing condition in OFC port deletion
Akihiro Motoki [Tue, 18 Feb 2014 08:01:01 +0000 (17:01 +0900)]
Handle racing condition in OFC port deletion

Multiple delete_port operations can run in parallel.
For such case later operation(s) will receive 404 (NotFound)
error from OFC or NotResultFound sqlalchemy exception.
These are valid exceptions and they should be ignored
in delete_port operations.

Closes-Bug: #1281574

OFCConsistencyBroken is renamed to OFCMappingNotFound
because when multiple delete_port operations run in parallel
OFCConsistencyBroken can occur and it is a valid case
so the excepion name looks inappropriate.

Change-Id: I1511d55994c88b8828f0ff62610c18ddc6dfac8f

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 21 Feb 2014 06:38:31 +0000 (06:38 +0000)]
Imported Translations from Transifex

Change-Id: Ia424e2ea79fa28a561b7d4a85178d111fd0a7f6e

10 years agoAdds https support for metadata agent
Xiaolin Zhang [Thu, 16 Jan 2014 14:28:28 +0000 (22:28 +0800)]
Adds https support for metadata agent

Adds two configure options to support https client for metadata proxy
* auth_insecure: turn off verification of the certificate for ssl, or
* auth_ca_cert: CA cert to check against with for ssl.

Change-Id: I3ffb86ae9ce31931436a4e13957aae30eebf9d92
Closes-Bug: #1263872

10 years agoFix VPN agent does not handle multiple connections per vpn service
berlin [Wed, 19 Feb 2014 07:34:47 +0000 (15:34 +0800)]
Fix VPN agent does not handle multiple connections per vpn service

    Once the OpenSwan process is created, incoming updated vpnservice
data would not be updated into the process class which leads to config
files and openswan process always keep old configurations

Change-Id: Ia91ab08b1d03fbbe46bafd4967b57181fc4c6e71
Closes-Bug: 1263194

10 years agoDon't require passing in port_security=False if security_groups present
Aaron Rosen [Wed, 8 Jan 2014 21:10:54 +0000 (13:10 -0800)]
Don't require passing in port_security=False if security_groups present

If creating a port on a network that is marked as port_security_enabled=False
and one passes in a security_group in the port_create request previously an
error was raised saying they needed to also pass in
port_security_enabled=False. This patch removes that requirement and instead
sets port_security_enabled=True internally if a port has an ip_address and a
security_group is passed in. This is more convient and does not break
backwards compatibility.

Closes-bug: #1267249
Change-Id: Ifb5a5511f016a5d8c5b5075c9fdc27279cdd9bb5