]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoFix ML2 Plugin binding:profile update
Irena Berezovsky [Tue, 22 Jul 2014 15:13:00 +0000 (18:13 +0300)]
Fix ML2 Plugin binding:profile update

The current fix changes the logic for binding:profile
update. The binding:profile should be considered as changed
once it is present in the port attributes and differs from
existing binding:profile. The specified binding:profile with
None value should be treated as request to clear binding:profile.

Change-Id: Ibda9a1beec697fbee5be0ee379349035c3626509
Closes-Bug: 1338202

10 years agoMerge "Set python hash seed to 0 in tox.ini"
Jenkins [Sat, 26 Jul 2014 00:09:27 +0000 (00:09 +0000)]
Merge "Set python hash seed to 0 in tox.ini"

10 years agoSet python hash seed to 0 in tox.ini
Clark Boylan [Fri, 25 Jul 2014 20:30:00 +0000 (13:30 -0700)]
Set python hash seed to 0 in tox.ini

New tox (>=1.7.0) sets a random python hash seed by default. This is
generally good for testing because it will help keep projects working
regardless of the hash seed, but neutron unittests don't currently pass
with a random hash seed so set it to the python default seed.

This change will allow us to use new tox again and remove the
restriction on tox<=1.6.1 to run unittests.

Note this change will need to be backported to the stable branches to
keep unittests there working with new tox as well.

Change-Id: If151efeb8caae3111515191e238d6e6ae491cd44

10 years agoMerge "VPNaaS: Separate validation for Cisco impl"
Jenkins [Fri, 25 Jul 2014 20:24:15 +0000 (20:24 +0000)]
Merge "VPNaaS: Separate validation for Cisco impl"

10 years agoMerge "Encapsulate some port properties in the PortContext"
Jenkins [Fri, 25 Jul 2014 18:27:58 +0000 (18:27 +0000)]
Merge "Encapsulate some port properties in the PortContext"

10 years agoMerge "update vsm credential correctly"
Jenkins [Fri, 25 Jul 2014 14:42:41 +0000 (14:42 +0000)]
Merge "update vsm credential correctly"

10 years agoMerge "VMWare: don't notify on disassociate_floatingips()"
Jenkins [Fri, 25 Jul 2014 14:20:25 +0000 (14:20 +0000)]
Merge "VMWare: don't notify on disassociate_floatingips()"

10 years agoMerge "sync periodic_task fix from incubator"
Jenkins [Fri, 25 Jul 2014 12:55:06 +0000 (12:55 +0000)]
Merge "sync periodic_task fix from incubator"

10 years agoMerge "Updated from global requirements"
Jenkins [Fri, 25 Jul 2014 11:51:14 +0000 (11:51 +0000)]
Merge "Updated from global requirements"

10 years agoHandle bool correctly during _extend_extra_router_dict
armando-migliaccio [Fri, 25 Jul 2014 04:44:47 +0000 (21:44 -0700)]
Handle bool correctly during _extend_extra_router_dict

Ensure that extension attributes are always used to
override the chosen defaults. This was not working
in the case of default boolean True, as the testing
condition was wrong.

Closes-bug: #1348479

Change-Id: I22bce82c6078a96c0eb4a67e6decb6e9205721a8

10 years agoEncapsulate some port properties in the PortContext
armando-migliaccio [Fri, 18 Jul 2014 00:22:49 +0000 (17:22 -0700)]
Encapsulate some port properties in the PortContext

Bindings to host or status may need further encapsulation
to avoid exposing mechanism drivers to underlying DB model
details. This was particularly true in the case of the
l2pop mech driver.

As a result, some docstrings were reworded, and the newly
introduced properties used directly in the mech drivers.

Partially-implements: blueprint neutron-ovs-dvr
Supports blueprint: ml2-hierarchical-port-binding

Change-Id: If2a373ef04d19b164585fb4bde4fe6e0cfaf43be

10 years agoMerge "Add rule for updating network's router:external attribute"
Jenkins [Thu, 24 Jul 2014 20:29:02 +0000 (20:29 +0000)]
Merge "Add rule for updating network's router:external attribute"

10 years agoMerge "ML2 mechanism driver for SR-IOV capable NIC based switching, Part 2"
Jenkins [Thu, 24 Jul 2014 20:20:28 +0000 (20:20 +0000)]
Merge "ML2 mechanism driver for SR-IOV capable NIC based switching, Part 2"

10 years agoMerge "Log methods using rpc communcation"
Jenkins [Thu, 24 Jul 2014 19:09:56 +0000 (19:09 +0000)]
Merge "Log methods using rpc communcation"

10 years agoMerge "Correct misspelled variable name"
Jenkins [Thu, 24 Jul 2014 19:09:28 +0000 (19:09 +0000)]
Merge "Correct misspelled variable name"

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 24 Jul 2014 16:04:36 +0000 (16:04 +0000)]
Updated from global requirements

Change-Id: Ibdbdae16eb5b15cdfa5ca194dc852abfde14f74d

10 years agoMerge "Move loadbalancer vip port creation outside of transaction"
Jenkins [Thu, 24 Jul 2014 14:19:03 +0000 (14:19 +0000)]
Merge "Move loadbalancer vip port creation outside of transaction"

10 years agoCorrect misspelled variable name
Robert Mizielski [Tue, 15 Jul 2014 09:19:40 +0000 (11:19 +0200)]
Correct misspelled variable name

In neutron/services/loadbalancer/drivers/embrane/driver.py,
"persistence" is wrote with an "a", not with an "e".
This patch fix this.

Change-Id: I8da0d6d28c188c73ed844a8a0c7a523dae713344

10 years agoMerge "OFAgent: Share codes of l2-population in OVS agent"
Jenkins [Thu, 24 Jul 2014 09:59:32 +0000 (09:59 +0000)]
Merge "OFAgent: Share codes of l2-population in OVS agent"

10 years agoMove loadbalancer vip port creation outside of transaction
Eugene Nikanorov [Wed, 23 Jul 2014 10:14:00 +0000 (14:14 +0400)]
Move loadbalancer vip port creation outside of transaction

Currently _create_port_for_vip calls ml2 create_port() method
which includes rpc notification.
That leads to lock wait timeouts in certain cases.

The patch fixes that while making VIP creation process non-atomic.
But that is fine as long until create_vip() returns vip id, it's
not usable from API.

Change-Id: Ie30973de80118a6b022e8c3bb07ca48122ebcd29
Partial-Bug: #1334226

10 years agoMerge "ML2: Update a comment after the recent bind_port change"
Jenkins [Thu, 24 Jul 2014 03:55:41 +0000 (03:55 +0000)]
Merge "ML2: Update a comment after the recent bind_port change"

10 years agoMerge "Clear entries in Cisco N1KV specific tables on rollback"
Jenkins [Thu, 24 Jul 2014 01:36:25 +0000 (01:36 +0000)]
Merge "Clear entries in Cisco N1KV specific tables on rollback"

10 years agoMerge "call security_groups_member_updated in port_update"
Jenkins [Thu, 24 Jul 2014 01:20:27 +0000 (01:20 +0000)]
Merge "call security_groups_member_updated in port_update"

10 years agoMerge "Modify L3 Agent for Distributed Routers"
Jenkins [Thu, 24 Jul 2014 01:01:33 +0000 (01:01 +0000)]
Merge "Modify L3 Agent for Distributed Routers"

10 years agoMerge "Use method's logger in log decorator"
Jenkins [Thu, 24 Jul 2014 00:38:12 +0000 (00:38 +0000)]
Merge "Use method's logger in log decorator"

10 years agoMerge "Missing max_routes in neutron.conf"
Jenkins [Thu, 24 Jul 2014 00:25:17 +0000 (00:25 +0000)]
Merge "Missing max_routes in neutron.conf"

10 years agoMerge "Return a tuple of None's instead of one None"
Jenkins [Thu, 24 Jul 2014 00:22:51 +0000 (00:22 +0000)]
Merge "Return a tuple of None's instead of one None"

10 years agoML2 mechanism driver for SR-IOV capable NIC based switching, Part 2
Irena Berezovsky [Wed, 16 Jul 2014 11:33:42 +0000 (14:33 +0300)]
ML2 mechanism driver for SR-IOV capable NIC based switching, Part 2

This set of changes introduces SRIOV NIC Agent to run with
ML2 mechanism driver for SR-IOV capable NIC based switching.
This is the second part of a 2 part commit.

The review is submitted in two parts:
- Part 1
    The Mechanism Driver to support port binding for SR-IOV virtual
functions of SRIOV capable switching NICs.

- Part2 (this part)
    The SRIOV NIC Based L2 Agent.
Use  configurable list of mappings physical_networks to PF
        interfaces and configurable list of mappings PF interfaces
        to list of excluded VFs to get list of Virtual Functions that agent should manage.
Current implementation supports admin state updates.

Co-authored-by: Samer Deeb <samerd@mellanox.com>
Partially implements: blueprint ml2-sriov-nic-switch

Change-Id: I533ccee067935326d5837f90ba321a962e8dc2a6

10 years agoModify L3 Agent for Distributed Routers
Michael Smith [Tue, 22 Jul 2014 23:58:26 +0000 (16:58 -0700)]
Modify L3 Agent for Distributed Routers

This patch is an enhancement to the existing L3 Agent.
This allows the L3 Agent to support distributed routers
by enhancing the router object to function across
multiple nodes.

Utilized two new types of namespaces:

- FIP to handle multiple VM fips and routers per node
- SNAT to handle centralized SNAT per router

Rules and tables are enhanced and added to support routing
across distributed routers without going to a centralized
router.

Finally, a new configuration param 'agent_mode' is introduced
and it controls what the L3 agent can do: the available values
are: 'legacy', 'dvr', 'dvr_snat' (more details inline).

The l3-scheduler uses the newly introduced agent_mode to
determine what L3 agent to select during the scheduling
process.

Partially-Implements: blueprint neutron-ovs-dvr

DocImpact

Change-Id: Icead821bb74372b15aac2e5cefe8ad7f08c037ab
Co-Authored-By: Rajeev Grover <rajeev.grover@hp.com>
10 years agoOFAgent: Share codes of l2-population in OVS agent
fumihiko kakuma [Tue, 15 Apr 2014 02:54:50 +0000 (11:54 +0900)]
OFAgent: Share codes of l2-population in OVS agent

This is step 1 implementation of OFAgent l2-population.
OFAgent partially uses codes in OVS agent on implementation of l2-population.
We share these codes adding mixin class for OVS to l2-population rpc.
We use a ryu library instead of executing a ovs-vsctl command
and on OFAgent l2-population is no longer optional.
Also a function of local arp responder will be implemented on step 2.

related commit: b6133c35dd587f6b01e8ec12757347b2767713a6

Partially implements: blueprint ofagent-l2pop

Change-Id: I99a2adfd380a9fefe34c53e0dabc21d8cf5936cc

10 years agoMerge "NSX: remove unnecessary checks on network delete"
Jenkins [Tue, 22 Jul 2014 23:09:54 +0000 (23:09 +0000)]
Merge "NSX: remove unnecessary checks on network delete"

10 years agoMerge "This patch changes the name of directory from mech_arista to arista"
Jenkins [Tue, 22 Jul 2014 21:13:52 +0000 (21:13 +0000)]
Merge "This patch changes the name of directory from mech_arista to arista"

10 years agoMerge "Bump min required version for dnsmasq to 2.63"
Jenkins [Tue, 22 Jul 2014 20:38:31 +0000 (20:38 +0000)]
Merge "Bump min required version for dnsmasq to 2.63"

10 years agoMerge "ML2 mechanism driver for SR-IOV capable NIC based switching, Part 1"
Jenkins [Tue, 22 Jul 2014 19:28:20 +0000 (19:28 +0000)]
Merge "ML2 mechanism driver for SR-IOV capable NIC based switching, Part 1"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 22 Jul 2014 17:53:49 +0000 (17:53 +0000)]
Merge "Imported Translations from Transifex"

10 years agoThis patch changes the name of directory from mech_arista to arista
Sukhdev [Tue, 22 Jul 2014 02:28:17 +0000 (19:28 -0700)]
This patch changes the name of directory from mech_arista to arista

This name change of directroy is needed so that additional drivers
can be moved into this directory and share the code among drivers.

In order to accomodate this name change, setup.cfg is modified to
point to the Arista ML2 driver at the new location. Additionally,
a similar new directroy is created for test files as well.

Change-Id: I614ccf8b6d152aa99e20ef1ea762c26115ab9373
closes-bug: 1346712

10 years agoML2 mechanism driver for SR-IOV capable NIC based switching, Part 1
Irena Berezovsky [Tue, 18 Feb 2014 13:13:58 +0000 (15:13 +0200)]
ML2 mechanism driver for SR-IOV capable NIC based switching, Part 1

This set of changes introduces the ML2 mechanism driver for SR-IOV capable NIC based switching.
Please see the blueprint for more information.
The review is submitted in two parts:
- Part 1 (this part)
    The Mechanism Driver to support port binding for SR-IOV virtual functions of
    SRIOV capable switching NICs, such as Mellanox ConnectX Family.

    Use configurable list of supported NIC vendor and product PCI ids to filter
    devices to bind the SR-IOV port.
    Use configurable agent_required option to require SRIOV L2 Agent
    for bort binding.

- Part2
    The SRIOV NIC Based L2 Agent.

Partially implements: blueprint ml2-sriov-nic-switch

Change-Id: If3d28df2a8ffe72ae512ddae076f42fca936cff7

10 years agoMerge "Add partial specs support in ML2 for multiprovider extension"
Jenkins [Tue, 22 Jul 2014 10:19:54 +0000 (10:19 +0000)]
Merge "Add partial specs support in ML2 for multiprovider extension"

10 years agoAdd rule for updating network's router:external attribute
Elena Ezhova [Wed, 9 Jul 2014 16:10:17 +0000 (20:10 +0400)]
Add rule for updating network's router:external attribute

Set admin_only rule for update_network:router:external in policy.json

Also, change the default value of router:external from attr.ATTR_NOT_SPECIFIED
to False, because each time we try to get or update a network the dict with
its attributes is extended by _extend_network_dict_l3 function which adds
router:external=False to the dict if this attribute is not specified.
Thus, if the default value is not specified, router:external is considered
to be updated in any case and the policy rule is applied.

Change-Id: I899d98c7d8c9d9863ac5d8f992b6a2d507ec4482
Closes-Bug: 1338880

10 years agoL2 Agent-side additions to support DVR
Vivekanandan Narasimhan [Mon, 14 Apr 2014 21:55:25 +0000 (14:55 -0700)]
L2 Agent-side additions to support DVR

This patch introduces changes to the L2 agent, whereby the L2 agent
relies on a DVR component that takes care of the port wiring and the
management of tunnels in face of topology changes due to the life
cycles or VM's as well as the life cycles of distributed virtual
routers.

Support for DVR needs to be explicitly enabled. Default behavior
remains unchanged.

Partially-implements: blueprint neutron-ovs-dvr

Change-Id: If75225898a6f0aeea8b0300b711ca7e01f6b4f9a

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 22 Jul 2014 06:07:08 +0000 (06:07 +0000)]
Imported Translations from Transifex

Change-Id: I6ebbb2da3747bbaf13b04eb30447a5e387f4e76b

10 years agoMerge "Split up metering test case into plugin + test case"
Jenkins [Tue, 22 Jul 2014 03:15:04 +0000 (03:15 +0000)]
Merge "Split up metering test case into plugin + test case"

10 years agoMerge "Make readme reference git.openstack.org not github"
Jenkins [Tue, 22 Jul 2014 03:14:42 +0000 (03:14 +0000)]
Merge "Make readme reference git.openstack.org not github"

10 years agoMerge "The default value of quota_firewall_rule should not be -1"
Jenkins [Tue, 22 Jul 2014 02:25:36 +0000 (02:25 +0000)]
Merge "The default value of quota_firewall_rule should not be -1"

10 years agoMerge "NSX: fix router ports port_security_enabled=False"
Jenkins [Tue, 22 Jul 2014 02:25:26 +0000 (02:25 +0000)]
Merge "NSX: fix router ports port_security_enabled=False"

10 years agoMerge "NSX: fix validation logic on network gateway connect"
Jenkins [Tue, 22 Jul 2014 02:25:14 +0000 (02:25 +0000)]
Merge "NSX: fix validation logic on network gateway connect"

10 years agoMerge "Add partial specs support in ML2 for gre/vxlan provider networks"
Jenkins [Tue, 22 Jul 2014 01:08:55 +0000 (01:08 +0000)]
Merge "Add partial specs support in ML2 for gre/vxlan provider networks"

10 years agoMerge "NSX: Optionally not enforce nat rule match length check"
Jenkins [Tue, 22 Jul 2014 00:36:09 +0000 (00:36 +0000)]
Merge "NSX: Optionally not enforce nat rule match length check"

10 years agoMerge "Move _convert_to_nsx_transport_zones into nsx_utils"
Jenkins [Mon, 21 Jul 2014 23:51:25 +0000 (23:51 +0000)]
Merge "Move _convert_to_nsx_transport_zones into nsx_utils"

10 years agoNSX: fix router ports port_security_enabled=False
Aaron Rosen [Fri, 18 Jul 2014 19:09:12 +0000 (12:09 -0700)]
NSX: fix router ports port_security_enabled=False

Previously there was a bug that resulted in a security group being
added to router ports which was not supported in NSX. Removing the
security group didn't actually completely solve the problem as we
never cleared the allowed_address_pairs on the router port. This
patch fixes this issue by disabling port_security_enabled on the
router port.

Change-Id: Ib61756e3bd5866318cbc3bb9856344571399d656
Closes-bug: 1344266
Related-bug: 1329043

10 years agoAdd partial specs support in ML2 for multiprovider extension
Cedric Brandily [Fri, 20 Jun 2014 09:31:01 +0000 (11:31 +0200)]
Add partial specs support in ML2 for multiprovider extension

ML2 provider network partial specs let admins choose some
multiprovider network attributes and let neutron choose remaining
attributes. This change provides the implementation for
multiprovider networks.

In practice, for VLAN/GRE/VXLAN segments provider:segmentation_id
choice can be delegated to neutron, in such case neutron try to find
a segment in tenant network pools which respects provided segment
attributes. For VLAN segments provider:physical_network choice can
also be delegated.

DocImpact

Implements blueprint provider-network-partial-specs

Change-Id: I1cf1441a179ec527674276b71e9924841f8570b6

10 years agoAdd partial specs support in ML2 for gre/vxlan provider networks
Cedric Brandily [Mon, 16 Jun 2014 20:03:14 +0000 (22:03 +0200)]
Add partial specs support in ML2 for gre/vxlan provider networks

ML2 provider networks partial specs let admins choose some provider
network attributes and let neutron choose remaining attributes. This
change provides the implementation for GRE/VXLAN provider networks.

In practice, for GRE/VXLAN provider networks provider:segmentation_id
choice can be delegated to neutron, in such case neutron will try to
find a network in tenant network pools which respects provided
provider attributes.

DocImpact

Related to blueprint provider-network-partial-specs
Partial-Bug: #1330562

Change-Id: I720d7d04f6e3453145e888d9e4d9b5e381d0f7d4

10 years agoMerge "NSX: Remove unneed call to _ensure_default_security_group"
Jenkins [Mon, 21 Jul 2014 19:51:23 +0000 (19:51 +0000)]
Merge "NSX: Remove unneed call to _ensure_default_security_group"

10 years agoMerge "Fix incorrect downgrade"
Jenkins [Mon, 21 Jul 2014 19:49:23 +0000 (19:49 +0000)]
Merge "Fix incorrect downgrade"

10 years agoMerge "Initialize RpcProxy objects correctly"
Jenkins [Mon, 21 Jul 2014 19:44:26 +0000 (19:44 +0000)]
Merge "Initialize RpcProxy objects correctly"

10 years agoMerge "Correct LOG.debug use"
Jenkins [Mon, 21 Jul 2014 18:34:57 +0000 (18:34 +0000)]
Merge "Correct LOG.debug use"

10 years agocall security_groups_member_updated in port_update
Xu Chen [Thu, 19 Jun 2014 19:01:33 +0000 (15:01 -0400)]
call security_groups_member_updated in port_update

When a running VM is added to a security group, all existing VMs (ports)
in the security group should be notified/updated - otherwise they would
have incorrect rules, not knowing the new VM/port added.

The current behavior would only update the port of the added VM. This
patch forces an security_groups_member_updated() call for all the
security groups that have ports removed or added.

Change-Id: Ibdcd74f47043762386b62f3ec0fa1723060446ac
Closes-Bug: 1316618

10 years agoMerge "Support Router Advertisement Daemon (radvd) for IPv6"
Jenkins [Mon, 21 Jul 2014 17:52:41 +0000 (17:52 +0000)]
Merge "Support Router Advertisement Daemon (radvd) for IPv6"

10 years agoMerge "Fix spelling mistake in the log message"
Jenkins [Mon, 21 Jul 2014 17:01:41 +0000 (17:01 +0000)]
Merge "Fix spelling mistake in the log message"

10 years agoThe default value of quota_firewall_rule should not be -1
Liping Mao [Mon, 21 Jul 2014 15:41:54 +0000 (23:41 +0800)]
The default value of quota_firewall_rule should not be -1

A bad tenant User can create unlimited firewall rules to
"attack" the network node, so I modify the default value to 100.

Change-Id: I485c24cb1a7ed77dee81356fe6d95276808a47d4
Closes-Bug: #1346372

10 years agoCorrect LOG.debug use
Cedric Brandily [Mon, 21 Jul 2014 14:45:38 +0000 (16:45 +0200)]
Correct LOG.debug use

The commit b3202c3283597de031572e0ede082237487d8110 used:

  LOG.debug("...%(key1)s...", key1=value1)

which  is not supported, this change ues instead:

  LOG.debug("...%(key1)s...", {"key1": value1})

Change-Id: I9bd63c27ca8acf89284399fda8cd74c82906113b

10 years agoFix incorrect downgrade
Ann Kamyshnikova [Mon, 21 Jul 2014 12:13:14 +0000 (16:13 +0400)]
Fix incorrect downgrade

In downgrade of migration b7a8863760e_rm_cisco_vlan_bindin is used
Integer type with parameter display_width. Integer should be used
without any parameters.

Closes-bug: #1346245

Change-Id: Ic444af81ed3ec25116d2171ab465ce473cba8113

10 years agoFix spelling mistake in the log message
Livnat Peer [Wed, 16 Jul 2014 10:57:03 +0000 (13:57 +0300)]
Fix spelling mistake in the log message

Change-Id: I749308b94055eaca0503053daa87f4e89c873c56

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 21 Jul 2014 06:06:35 +0000 (06:06 +0000)]
Imported Translations from Transifex

Change-Id: I7e52fc97c41e35b294e464f75351dbc18f5123af

10 years agoMerge "Add partial specs support in ML2 for vlan provider networks"
Jenkins [Mon, 21 Jul 2014 04:51:53 +0000 (04:51 +0000)]
Merge "Add partial specs support in ML2 for vlan provider networks"

10 years agoMerge "Support Quota extension in MidoNet plugin"
Jenkins [Mon, 21 Jul 2014 04:51:44 +0000 (04:51 +0000)]
Merge "Support Quota extension in MidoNet plugin"

10 years agoSupport Router Advertisement Daemon (radvd) for IPv6
Robert Li [Fri, 11 Jul 2014 15:02:19 +0000 (11:02 -0400)]
Support Router Advertisement Daemon (radvd) for IPv6

Launch radvd from inside l3 agent when any router port has an IPv6 address. If
slaac is used for IPv6 addresses, advertise the prefix associated with the port;
otherwise, advertise default route only.

Change-Id: Ib8b0b3e71f7af9afa769c41357c66f88f4326807
Implements: blueprint neutron-ipv6-radvd-ra
Co-Authored-By: Henry Gessau <gessau@cisco.com>
10 years agoMove plugin.delete_port call out of transaction
Eugene Nikanorov [Sat, 19 Jul 2014 13:08:53 +0000 (17:08 +0400)]
Move plugin.delete_port call out of transaction

This might fix a few cases of lock wait timeouts.

Change-Id: Iaa656a8582b2ff3ec55709bbe47b1ac9f5fc2a99
Closes-Bug: #1342166

10 years agoAdd partial specs support in ML2 for vlan provider networks
Cedric Brandily [Mon, 16 Jun 2014 20:43:13 +0000 (22:43 +0200)]
Add partial specs support in ML2 for vlan provider networks

ML2 provider networks partial specs let admins choose some provider
network attributes and let neutron choose remaining attributes. This
change provides the implementation for VLAN provider networks.

In practice, for VLAN provider networks provider:physical_network
and provider:segmentation_id choices can be delegated to neutron,
in such case neutron will try to find a network in tenant network
pools which respects provided provider attributes.

DocImpact

Related to blueprint provider-network-partial-specs
Partial-Bug: #1330562

Change-Id: I2c52c71167edaa153b2e04681273e2f1be8d03aa

10 years agoMerge "Mock out tunnel_sync in test to avoid sleeping"
Jenkins [Sat, 19 Jul 2014 07:21:12 +0000 (07:21 +0000)]
Merge "Mock out tunnel_sync in test to avoid sleeping"

10 years agoMerge "Validate expected parameters in add/remove router interfaces"
Jenkins [Sat, 19 Jul 2014 06:39:56 +0000 (06:39 +0000)]
Merge "Validate expected parameters in add/remove router interfaces"

10 years agoMerge "Add a gate-specific tox env for functional tests"
Jenkins [Sat, 19 Jul 2014 02:48:16 +0000 (02:48 +0000)]
Merge "Add a gate-specific tox env for functional tests"

10 years agoMerge "Dnsmasq config files syntax issue when dhcp_domain is empty"
Jenkins [Sat, 19 Jul 2014 00:23:15 +0000 (00:23 +0000)]
Merge "Dnsmasq config files syntax issue when dhcp_domain is empty"

10 years agoMerge "Fix incorrect default paramater in migration"
Jenkins [Fri, 18 Jul 2014 22:27:31 +0000 (22:27 +0000)]
Merge "Fix incorrect default paramater in migration"

10 years agoMerge "Fix DVR regression for ofagent"
Jenkins [Fri, 18 Jul 2014 22:09:00 +0000 (22:09 +0000)]
Merge "Fix DVR regression for ofagent"

10 years agoMerge "Allow to import _LC, _LE, _LI and _LW functions directly"
Jenkins [Fri, 18 Jul 2014 20:47:37 +0000 (20:47 +0000)]
Merge "Allow to import _LC, _LE, _LI and _LW functions directly"

10 years agoML2: Update a comment after the recent bind_port change
YAMAMOTO Takashi [Fri, 18 Jul 2014 14:16:58 +0000 (23:16 +0900)]
ML2: Update a comment after the recent bind_port change

A missing comment update in
commit b1677dcb80ce8b83aadb2180efad3527a96bd3bc.

No functional changes.

Change-Id: Icf1bd66a8c093d0b40632e22be662a3c8ba5c48b

10 years agoNSX: fix validation logic on network gateway connect
Salvatore Orlando [Thu, 10 Jul 2014 21:55:04 +0000 (14:55 -0700)]
NSX: fix validation logic on network gateway connect

This patch adds validation for the segmentation ID when the
network type for the gateway connection is vlan.
This will avoid requests with invalid vlan IDs are sent to
the backend resulting in 500 error responses being
returned to API users.

To this aim this patch slightly alters the current validation
logic due to the fact that some checks are unnecessary since
the same routine sets default values which avoid the
conditions being checked.

Change-Id: If0e71f6fdf27a49f0eda727e21405cffbc260a7a
Closes-Bug: #1340431

10 years agoInitialize RpcProxy objects correctly
Ilya Shakhat [Fri, 18 Jul 2014 10:09:18 +0000 (14:09 +0400)]
Initialize RpcProxy objects correctly

RpcProxy class is used as base in classes with multiple inheritance
(ex. MeteringAgent). To initialize objects of such classes correctly
every constructor should call its base constructor via super().__init__()

Closes bug 1332788

Change-Id: I00ef804b6ee6c73dec3e177202bb85311e3e2b10

10 years agoFix DVR regression for ofagent
YAMAMOTO Takashi [Fri, 11 Jul 2014 00:15:58 +0000 (09:15 +0900)]
Fix DVR regression for ofagent

Background:
    ML2 plugin sometimes uses truncated port uuids.
    For example, in the case of ofagent and linuxbridge,
    if port id is 804ceaa1-0e3e-11e4-b537-08606e7f74e7,
    an agent would send "tap804ceaa1-0e" to the plugin.
    ML2 plugin's _device_to_port_id() would restore it to
    "804ceaa1-0e".  While it's still truncated, ML2 plugin's
    get_port() handles that by using "startswith".

The recently merged DVR change (https://review.openstack.org/#/c/102332/)
assumes that port_id is always a complete uuid (it's the case
for openvswitch) and fails to handle the above mentioned case.
This commit fixes the regression.

Change-Id: I9c0845be606969068ab5d13c0165e76760378500
Closes-Bug: #1343750

10 years agoMerge "RPC additions to support DVR"
Jenkins [Thu, 17 Jul 2014 21:05:53 +0000 (21:05 +0000)]
Merge "RPC additions to support DVR"

10 years agoMerge "no quota for allowed address pair"
Jenkins [Thu, 17 Jul 2014 20:54:48 +0000 (20:54 +0000)]
Merge "no quota for allowed address pair"

10 years agoRPC additions to support DVR
Vivekanandan Narasimhan [Tue, 24 Jun 2014 14:22:38 +0000 (07:22 -0700)]
RPC additions to support DVR

This patch introduces the RPC contract changes
required for both the server (plugin) and agent
to propagate and retrieve additional information
about Distributed Routers, like MAC addresses
and Port Bindings.

Partially-implements: blueprint neutron-ovs-dvr

Change-Id: I04a2ee5fceea79d2786c799178f8dd1675925a39
Authored-by: Vivekanandan Narasimhan <vivekanandan.narasimhan@hp.com>
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
10 years agono quota for allowed address pair
Liping Mao [Tue, 15 Jul 2014 06:22:46 +0000 (14:22 +0800)]
no quota for allowed address pair

There is no quota for allowed address pair. User can create unlimited
allowed address pairs. I add quota for allowed address pairs.

Change-Id: I2efb0c0f527f1fb22c4d4b07f6d280863f565648
Closes-Bug: #1336207

10 years agoAllow to import _LC, _LE, _LI and _LW functions directly
Cedric Brandily [Tue, 15 Jul 2014 18:05:55 +0000 (20:05 +0200)]
Allow to import _LC, _LE, _LI and _LW functions directly

_LC, _LE, _LI, _LW are translation helper functions. This change updates
hacking rules to allow importing them directly:

    from neutron.openstack.common.gettextutils import _LC
    from neutron.openstack.common.gettextutils import _LE
    from neutron.openstack.common.gettextutils import _LI
    from neutron.openstack.common.gettextutils import _LW

neutron.policy module has been updated as an example of _LE, _LI and
_LW uses.

Change-Id: I11cba6bca48a179945385fce69e6f642270f5563

10 years agoL2 Model additions to support DVR
Vivekanandan Narasimhan [Tue, 24 Jun 2014 01:53:32 +0000 (18:53 -0700)]
L2 Model additions to support DVR

This patch introduces the models, the DB migrations
and the config options required by the L2 layer to
support DVR east/west traffic.

These changes will be used by the control-plane made
of ML2, L2pop and L2 agent.

Two new configuration options have been introduced:
'dvr_base_mac' is used to set DVR MAC addresses apart
from tenant ones (every distributed router will have
ports being created on compute hosts) and
'enable_distributed_routing' is used to enable dvr
support in the L2 agent. This gives the capability of
rolling out the dvr functionality in stages.

Partially-implements: blueprint neutron-ovs-dvr

DocImpact

Change-Id: Iab6505f239d2c4c9bcbf4e32a292d7b4b5320c8e
Authored-by: Vivekanandan Narasimhan <vivekanandan.narasimhan@hp.com>
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
10 years agoMerge "Fix a log typo in ML2 manager.bind_port()"
Jenkins [Thu, 17 Jul 2014 10:41:14 +0000 (10:41 +0000)]
Merge "Fix a log typo in ML2 manager.bind_port()"

10 years agoMake readme reference git.openstack.org not github
Joe Gordon [Thu, 17 Jul 2014 08:57:12 +0000 (10:57 +0200)]
Make readme reference git.openstack.org not github

Point to our offical mirror instead of github.

Change-Id: I43c3d5ce4f92f35ed4fe5bddce5a5d19016ab988

10 years agoReturn a tuple of None's instead of one None
Kevin Benton [Sun, 6 Jul 2014 07:00:23 +0000 (00:00 -0700)]
Return a tuple of None's instead of one None

The expected return value of _commit_port_binding is something that
can be unpacked into two values. This changes the condition where a
concurrent delete was detected to return a 2-tuple of None's
instead of a bare None to prevent an iterable error.

Closes-Bug: #1342880
Change-Id: I9d3a51eab33819ffda6a65a00c3b5d1006a3577e

10 years agoMerge "VPNaaS: separate out validation logic for ref impl"
Jenkins [Thu, 17 Jul 2014 03:11:48 +0000 (03:11 +0000)]
Merge "VPNaaS: separate out validation logic for ref impl"

10 years agoFix a log typo in ML2 manager.bind_port()
Li Ma [Sun, 13 Jul 2014 08:51:38 +0000 (01:51 -0700)]
Fix a log typo in ML2 manager.bind_port()

Change-Id: I43134ef4a9e01aac1967fb7b69ad36f96cde04c0

10 years agoMerge "Shamelessly removing commented print line"
Jenkins [Thu, 17 Jul 2014 00:39:17 +0000 (00:39 +0000)]
Merge "Shamelessly removing commented print line"

10 years agoMerge "ofagent: Handle device name prefixes other than "tap""
Jenkins [Wed, 16 Jul 2014 22:05:00 +0000 (22:05 +0000)]
Merge "ofagent: Handle device name prefixes other than "tap""

10 years agoMerge "Big Switch: Remove consistency hash on full sync"
Jenkins [Wed, 16 Jul 2014 21:59:40 +0000 (21:59 +0000)]
Merge "Big Switch: Remove consistency hash on full sync"

10 years agoMerge "Added support for NOS version 4.1.0, 5.0.0 and greater"
Jenkins [Wed, 16 Jul 2014 21:44:55 +0000 (21:44 +0000)]
Merge "Added support for NOS version 4.1.0, 5.0.0 and greater"

10 years agoMerge "Fixes port update failure when device ID is not updated"
Jenkins [Wed, 16 Jul 2014 21:42:30 +0000 (21:42 +0000)]
Merge "Fixes port update failure when device ID is not updated"

10 years agoMerge "Add L3 Extension for Distributed Routers"
Jenkins [Wed, 16 Jul 2014 21:08:58 +0000 (21:08 +0000)]
Merge "Add L3 Extension for Distributed Routers"

10 years agoBig Switch: Remove consistency hash on full sync
Kevin Benton [Mon, 9 Jun 2014 19:20:18 +0000 (12:20 -0700)]
Big Switch: Remove consistency hash on full sync

Clears the consistency hash before performing a full
backend synchronization. Since all of the data is being
replaced, there is no reason to include this and it
currently requires special-casing to handle.

Closes-Bug: #1328233
Change-Id: Iace766d869dc78b041d3a5464e728b872c8347c2

10 years agoVPNaaS: Separate validation for Cisco impl
Paul Michali [Wed, 25 Jun 2014 15:39:54 +0000 (11:39 -0400)]
VPNaaS: Separate validation for Cisco impl

Moving validation logic from Cisco service driver, into a
validation subclass, so that it'll be applied during the
persistence phase (so validation failures can block the
persistence, instead of setting to error state).

This is part of the effort to separate out L3 validation
and builds upon the reference implementation changes being
reviewed in 102351.

Note: One unit test is commented out, due to a bug in
oslo.messaging 1.3.0. It will be uncommented later, once
1.4.0.0.a3 or newer is available for use.

Change-Id: I6040e6d8ab32b707bcf67a0882507b7ee2d4bebe
Partial-Implementation: blueprint l3-svcs-vendor-validation

10 years agoVPNaaS: separate out validation logic for ref impl
Paul Michali [Mon, 23 Jun 2014 20:42:41 +0000 (16:42 -0400)]
VPNaaS: separate out validation logic for ref impl

Modify the persistence logic for VPNaaS to separate out the
validation for the reference implmentation. This allows
providers to override/extend the validation, as needed.
Additional commits will address the separation for other
providers and for other L3 services.

In addition, the logic that sets default values for optional
attributes is also moved into separate methods to allow
providers to override the defaults used.

Only attributes that have multiple validations are considered
at this time, but this can be extended, as needed.

Currently, one UT fails due to an oslo.messaging bug that
has been fixed, but not yet released for Neutron use.
As a workaround, the affected test case has been commented
out. This test verifies that the right (only, in this case)
device driver is used for validation. Once the issue with
releasing oslo.messaging 1.4.0.0a2 or newer is resolved,
this can be uncommented.

In the future, TaskFlow may be used for the L3 services workflow,
and these changes will provide validation modularization for that
effort.

Change-Id: Id420983ccbceece5f4a00546941618318b9562c7
Partially-implements: blueprint l3-svcs-vendor-validation