]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 16 Jan 2015 01:15:55 +0000 (01:15 +0000)]
Updated from global requirements

Change-Id: Ie811ae25482ac292a87a8e3b6799333cf48454d5

9 years agoMerge "Move non-bridge-related OVSBridge methods to BaseOVS"
Jenkins [Thu, 15 Jan 2015 22:41:14 +0000 (22:41 +0000)]
Merge "Move non-bridge-related OVSBridge methods to BaseOVS"

9 years agoMerge "VMWare-NSXv: VMWare NSXv extensions"
Jenkins [Thu, 15 Jan 2015 19:47:59 +0000 (19:47 +0000)]
Merge "VMWare-NSXv: VMWare NSXv extensions"

9 years agoMerge "Correct _test_delete_ports_by_device_id_second_call_failure"
Jenkins [Thu, 15 Jan 2015 17:51:39 +0000 (17:51 +0000)]
Merge "Correct _test_delete_ports_by_device_id_second_call_failure"

9 years agoMerge "Code improvement in type_vxlan.py and type_gre.py files"
Jenkins [Thu, 15 Jan 2015 17:51:20 +0000 (17:51 +0000)]
Merge "Code improvement in type_vxlan.py and type_gre.py files"

9 years agoMerge "Service split: cleaned up setup.cfg"
Jenkins [Thu, 15 Jan 2015 17:50:49 +0000 (17:50 +0000)]
Merge "Service split: cleaned up setup.cfg"

9 years agoMerge "Remove main alias for bw compat with vpn agent"
Jenkins [Thu, 15 Jan 2015 17:50:25 +0000 (17:50 +0000)]
Merge "Remove main alias for bw compat with vpn agent"

9 years agoMerge "Dropped fixture module"
Jenkins [Thu, 15 Jan 2015 17:49:55 +0000 (17:49 +0000)]
Merge "Dropped fixture module"

9 years agoMerge "Initial thin ML2 mechanism driver"
Jenkins [Thu, 15 Jan 2015 15:17:28 +0000 (15:17 +0000)]
Merge "Initial thin ML2 mechanism driver"

9 years agoVMWare-NSXv: VMWare NSXv extensions
Gary Kotton [Mon, 29 Dec 2014 09:38:25 +0000 (01:38 -0800)]
VMWare-NSXv: VMWare NSXv extensions

For Kilo, the vendor-specific code should be moved to stackforge repo,
excluding the extensions (https://review.openstack.org/#/c/134680/).

This patch adds the extensions VMWare NSXv plugin from
stackforge/vmware-nsx repo.

There are 2 new extensions:
1. advanced_service_providers - this is required to enabled the NSXv to provide
                                metadata support (there is no metadata agent)
2. vnic_index - the security group support for the NSXv requires the vNIC index

Change-Id: I8c7aa95db1caf020afaa217d9c543b9031fab371
Partially-Implements: blueprint vmware-nsx-v

9 years agoDropped fixture module
Ihar Hrachyshka [Fri, 5 Dec 2014 21:41:02 +0000 (22:41 +0100)]
Dropped fixture module

The only single remaining usage of those fixtures in the tree was for
oslo.config fixture, which is now available via oslo.config library
itself.

Change-Id: I997a3a086598a8addf093790db102cd130588d95
Closes-Bug: #1399804

9 years agoCorrect _test_delete_ports_by_device_id_second_call_failure
Cedric Brandily [Mon, 12 Jan 2015 13:10:03 +0000 (13:10 +0000)]
Correct _test_delete_ports_by_device_id_second_call_failure

Currently the test assumes delete_ports_by_device_id deletes ports in
the order they were created but nothing ensures it. This change
updates _test_delete_ports_by_device_id_second_call_failure to avoid
such (incorrect) assumption. The assumption is in general broken in
daughter change which adds a unique constraint on Port table.

Change-Id: I387354eb8c02b614321ace5a105253d7504d5119

9 years agoMerge "Move postcommit ops out of transaction for bulk"
Jenkins [Thu, 15 Jan 2015 10:28:03 +0000 (10:28 +0000)]
Merge "Move postcommit ops out of transaction for bulk"

9 years agoMerge "Speed up initial L3 full sync time"
Jenkins [Thu, 15 Jan 2015 10:11:11 +0000 (10:11 +0000)]
Merge "Speed up initial L3 full sync time"

9 years agoMerge "Midonet plugin decomposition"
Jenkins [Thu, 15 Jan 2015 10:03:03 +0000 (10:03 +0000)]
Merge "Midonet plugin decomposition"

9 years agoMerge "VMWare-NSXv: VMWare NSXv configuration file"
Jenkins [Thu, 15 Jan 2015 09:50:23 +0000 (09:50 +0000)]
Merge "VMWare-NSXv: VMWare NSXv configuration file"

9 years agoMerge "Remove _delete_port_security_group_bindings from delete_port"
Jenkins [Thu, 15 Jan 2015 08:55:48 +0000 (08:55 +0000)]
Merge "Remove _delete_port_security_group_bindings from delete_port"

9 years agoMerge "Create arping helper in ip_lib"
Jenkins [Thu, 15 Jan 2015 08:55:23 +0000 (08:55 +0000)]
Merge "Create arping helper in ip_lib"

9 years agoMerge "tests: don't restore stopped mock that is set in setUp()"
Jenkins [Thu, 15 Jan 2015 08:55:01 +0000 (08:55 +0000)]
Merge "tests: don't restore stopped mock that is set in setUp()"

9 years agoMerge "Support 'alive' filter for get_agents() in agents_db"
Jenkins [Thu, 15 Jan 2015 08:52:08 +0000 (08:52 +0000)]
Merge "Support 'alive' filter for get_agents() in agents_db"

9 years agoVMWare-NSXv: VMWare NSXv configuration file
Roey Chen [Tue, 6 Jan 2015 12:34:58 +0000 (04:34 -0800)]
VMWare-NSXv: VMWare NSXv configuration file

For Kilo, the vendor-specific code should be moved to stackforge repo,
excluding the configuration files (https://review.openstack.org/#/c/134680/).

This patch adds config options for vmware NSXv plugin

Partially-Implements: blueprint vmware-nsx-v

Change-Id: Ibf8e9e1983d47b23397d00dfd4123a39049b0af2
Signed-off-by: Roey Chen <roeyc@vmware.com>
9 years agoMerge "Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp"
Jenkins [Thu, 15 Jan 2015 07:29:57 +0000 (07:29 +0000)]
Merge "Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp"

9 years agoMerge "Fixs shared networks in Arista ML2 driver"
Jenkins [Thu, 15 Jan 2015 07:16:06 +0000 (07:16 +0000)]
Merge "Fixs shared networks in Arista ML2 driver"

9 years agoCreate arping helper in ip_lib
Carl Baldwin [Mon, 12 Jan 2015 16:36:40 +0000 (16:36 +0000)]
Create arping helper in ip_lib

In trying to restructure the L3 agent in to more modules, some helpers
like arping will be used by several modules.  It is better to relocate
it to a common module which all of them will import and use.

Since there is only one spot which passed 'distributed=True', I chose
to break the utility in to two.  Also, 'distributed' doesn't really
describe what that argument is for.  So, I named the second utility
differently to indicate that it is for sending garps when proxyarp is
in use for the address on the interface.

Change-Id: Icfdf41917e9e2e0dcd2be19297aee5ac89e96e94
Partially-Implements: blueprint restructure-l3-agent

9 years agoInitial thin ML2 mechanism driver
Kyle Mestery [Mon, 8 Dec 2014 02:18:53 +0000 (02:18 +0000)]
Initial thin ML2 mechanism driver

This commit thins the in-tree OpenDaylight ML2 MechanismDriver. A matching
change to the stackforge/networking-odl project has the backend logic
there.

Closes-Bug: #1409151

Change-Id: Ic9c6565489e56a7e84b14fd2bba55f4b35f977ea

9 years agoCall on dhcp-agent DhcpLocalProcess.restart() breaks dhcp
Miguel Angel Ajo [Thu, 15 Jan 2015 00:23:29 +0000 (00:23 +0000)]
Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp

The bugfix implemented on Ib37651f7f802debd472ab292b148c2a2496063a3
creates the network_conf_dir only during __init__, and restart()
method calls disable(), then enable(), where disable will remove
the config directory and all configuration files.

Previous implementation re-created the network_conf_dir on the
interface_name setter (called from enable) with ensure_conf_dir=True.

Change-Id: I6afaea062c9eed5c63fc64fb0113f460b2cf35c5
Closes-Bug: 1410982

9 years agoFixs shared networks in Arista ML2 driver
Sukhdev [Sat, 10 Jan 2015 01:02:53 +0000 (17:02 -0800)]
Fixs shared networks in Arista ML2 driver

When a shared network is created, it is stored
in arista_provisioned_nets under the tenant_id of
owner of the network. Later, when a different
tenant launches an instance on the shared network,
above mentioned DB is looked to find the network
under requesting tenant's ID, and it is not found,
and hence, the request is rejected.

The fix is made such that when a network is not
found under the requesting tenant's ID, check if
this network is shared network. If yes, then
check the DB to ensure that owner tenant exists
in the DB. If yes, then this is a valid request
and do not reject it. Otherwise reject it - as an
unknown tenant or network is specified in the
request.

Change-Id: I8f25d8f84af844afdb3b607bd8ade32f0f5e81fb
Closes-bug: 1409176

9 years agoMerge "Move agent cleanup scripts to cmd module"
Jenkins [Wed, 14 Jan 2015 23:28:14 +0000 (23:28 +0000)]
Merge "Move agent cleanup scripts to cmd module"

9 years agoMerge "[apic ml2] Bind ports regardless of the owner"
Jenkins [Wed, 14 Jan 2015 23:15:35 +0000 (23:15 +0000)]
Merge "[apic ml2] Bind ports regardless of the owner"

9 years agoMerge "misc-sanity-checks.sh: Some cleanups"
Jenkins [Wed, 14 Jan 2015 21:47:17 +0000 (21:47 +0000)]
Merge "misc-sanity-checks.sh: Some cleanups"

9 years agoMerge "Validate local_ip for Linuxbridge agent"
Jenkins [Wed, 14 Jan 2015 21:42:26 +0000 (21:42 +0000)]
Merge "Validate local_ip for Linuxbridge agent"

9 years agoMerge "Run only one instance of Nuage sync cycle at a time"
Jenkins [Wed, 14 Jan 2015 18:59:49 +0000 (18:59 +0000)]
Merge "Run only one instance of Nuage sync cycle at a time"

9 years agoMerge "Rename qexception->nexception"
Jenkins [Wed, 14 Jan 2015 18:59:32 +0000 (18:59 +0000)]
Merge "Rename qexception->nexception"

9 years agoMerge "Log iptables rules in a readable format"
Jenkins [Wed, 14 Jan 2015 18:54:33 +0000 (18:54 +0000)]
Merge "Log iptables rules in a readable format"

9 years agoMove agent cleanup scripts to cmd module
armando-migliaccio [Fri, 9 Jan 2015 18:02:19 +0000 (10:02 -0800)]
Move agent cleanup scripts to cmd module

Ensure naming consistency across the various entry points.

This patch better separates active elements of Neutron agents from
operator's utilities.

Along with [1,2,3], this is done to better delineate what the agent
module inner boundaries are about. More to follow to finish off the
cleanup.

[1] https://review.openstack.org/#/c/146024/
[2] https://review.openstack.org/#/c/145979/
[3] https://review.openstack.org/#/c/146239/

Change-Id: I1d2d2938aa7fa1c60e0f0dc70997778a1930efef

9 years agotests: don't restore stopped mock that is set in setUp()
Ihar Hrachyshka [Wed, 14 Jan 2015 15:22:52 +0000 (16:22 +0100)]
tests: don't restore stopped mock that is set in setUp()

setUp() will be called for each new test case, so there is no need to
explicitly restore the mock.

Change-Id: I92d41706df19d028269f074937343dd18aa140a0

9 years agomisc-sanity-checks.sh: Some cleanups
YAMAMOTO Takashi [Wed, 24 Dec 2014 08:21:35 +0000 (17:21 +0900)]
misc-sanity-checks.sh: Some cleanups

Some cleanups for commit 4fdda65a5b9f379af997e1e971865ccfa7a93156.

- Don't assume the path of mktemp command.  It's /usr/bin/mktemp
  for some platforms. eg. NetBSD.  Also, always provide a template
  as it's necessary for some platforms, eg. OS X.  This snippet was
  taken from the example in NetBSD's mktemp(1).
- Move a comment to the appropriate place.
- Improve a regex to ignore more comments.
- As the pattern for find -path is not a regex, no escape is necessary
  for period.

Closes-Bug: #1405584
Change-Id: Ia8358f0f7ebe9bc445ce5aa3c4f340546f37db05

9 years agoLog iptables rules in a readable format
armando-migliaccio [Wed, 14 Jan 2015 00:45:16 +0000 (16:45 -0800)]
Log iptables rules in a readable format

When troubleshooting issues having to parse the \n mentally is kind of
difficult. Be nice to the user and have the newlines interpreted correctly.
It's fine if we waste some spaces in the logs, storage is cheap these days.

Related-bug: #1403291

Change-Id: Ia6c651ae0d17c0165e4fe833c523061a66f7d7d1

9 years agoMerge "Allow IptablesManager to manage mangle table"
Jenkins [Wed, 14 Jan 2015 00:38:28 +0000 (00:38 +0000)]
Merge "Allow IptablesManager to manage mangle table"

9 years agoRemove main alias for bw compat with vpn agent
armando-migliaccio [Mon, 12 Jan 2015 17:52:28 +0000 (09:52 -0800)]
Remove main alias for bw compat with vpn agent

The alias becomes no longer necessary when [1] merges.

[1] https://review.openstack.org/#/c/146144/

Partially-Implements: bp restructure-l3-agent

Change-Id: I4f3498b4ecb6539c96e31baf972ac715443bc93c

9 years agoMerge "Remove redundant tunnel ids from ovs agent"
Jenkins [Tue, 13 Jan 2015 21:10:03 +0000 (21:10 +0000)]
Merge "Remove redundant tunnel ids from ovs agent"

9 years agoMerge "VMWare NSXv DB model bugfix"
Jenkins [Tue, 13 Jan 2015 18:19:28 +0000 (18:19 +0000)]
Merge "VMWare NSXv DB model bugfix"

9 years agoMidonet plugin decomposition
Jaume Devesa [Wed, 24 Dec 2014 09:45:05 +0000 (09:45 +0000)]
Midonet plugin decomposition

Remove the midonet plugin code and add the requirements.txt file to
set the dependency to the vendor plugin. Dependency is not pinned: we
will use the newest library during the Kilo cycle and we will submit a
patch with the pinned version a bit before the Kilo code freeze.

Vendor plugin code is available here:
https://github.com/midonet/python-neutron-plugin-midonet

Plugin already available in pypi:
https://pypi.python.org/pypi/neutron-plugin-midonet/

DocImpact
Partially-implements: blueprint core-vendor-decomposition
Closes-bug: #1408339

Change-Id: I867ab6753cd45abb65e850cd6aaef7bb0c5bbddb

9 years agoFix topic for provider security group update
Kevin Benton [Tue, 13 Jan 2015 16:05:19 +0000 (08:05 -0800)]
Fix topic for provider security group update

Commit 8098b6bd20bb12520e438ef9125dc7b96664f712 accidentally changed
the topic for the provider security group update to a regular member
update. This resulted in the L2 agent not asking for the latest
security group rules after a DHCP port was created. If a regular
compute port was brought online and wired up by the L2 agent
before the DHCP port was created, the VM would never get its allow
rule to communicate with the DHCP server.

Co-bug-squasher: Armando

Closes-Bug: #1403291
Change-Id: I382f2e1390c9a3ff558e152eeb76f0f827266cb4

9 years agoMerge "hacking: enable H238 (old style class declaration, use new style)"
Jenkins [Tue, 13 Jan 2015 13:48:06 +0000 (13:48 +0000)]
Merge "hacking: enable H238 (old style class declaration, use new style)"

9 years agoMerge "hacking: enable W292 (no newline at end of file)"
Jenkins [Tue, 13 Jan 2015 13:47:52 +0000 (13:47 +0000)]
Merge "hacking: enable W292 (no newline at end of file)"

9 years agoMerge "Update hacking to 0.10"
Jenkins [Tue, 13 Jan 2015 13:08:06 +0000 (13:08 +0000)]
Merge "Update hacking to 0.10"

9 years agoService split: cleaned up setup.cfg
Ihar Hrachyshka [Thu, 18 Dec 2014 12:25:35 +0000 (13:25 +0100)]
Service split: cleaned up setup.cfg

* removed fwaas, vpnaas, lbaas configuration files;
* removed lbaas and vpnaas rootwrap filters.

Change-Id: I1721cf5f71936ad57e32649525fd6f1a42a7774c

9 years agoMerge "Ensure config directory created before updating leases"
Jenkins [Tue, 13 Jan 2015 12:50:56 +0000 (12:50 +0000)]
Merge "Ensure config directory created before updating leases"

9 years agoMerge "Validate legacy router services before migration"
Jenkins [Tue, 13 Jan 2015 09:24:06 +0000 (09:24 +0000)]
Merge "Validate legacy router services before migration"

9 years agoMerge "Fix IPv6 Subnet Slaac Check"
Jenkins [Tue, 13 Jan 2015 09:13:04 +0000 (09:13 +0000)]
Merge "Fix IPv6 Subnet Slaac Check"

9 years agoMerge "Use "if dict.get(key):" instead "if key in dict and dict[key]:""
Jenkins [Tue, 13 Jan 2015 09:10:41 +0000 (09:10 +0000)]
Merge "Use "if dict.get(key):" instead "if key in dict and dict[key]:""

9 years agoVMWare NSXv DB model bugfix
Kobi Samoray [Sun, 11 Jan 2015 09:28:42 +0000 (11:28 +0200)]
VMWare NSXv DB model bugfix

DB Model and migration for VMWare NSXv had two issues:
In DB migration, nsxv_security_group_section_mappings table is not dropped on downgrade.
In nsxv_models.py, tz_network_bindings_binding_type enum name should be
nsxv_tz_network_bindings_binding_type to match migration code.

Change-Id: Ib5e8a2078d9c86da6375c7b6a39f48d5bba4e06e
Closes-bug: #1409411

9 years agoMerge "Make L3 HA VIPs ordering consistent in keepalived.conf"
Jenkins [Tue, 13 Jan 2015 06:29:14 +0000 (06:29 +0000)]
Merge "Make L3 HA VIPs ordering consistent in keepalived.conf"

9 years agoSpeed up initial L3 full sync time
Yoni Shafrir [Mon, 5 Jan 2015 13:27:47 +0000 (15:27 +0200)]
Speed up initial L3 full sync time

When a L3 agent starts up the initial full sync occurs
on the first periodic task interval.
This means that from the point the agent is ready to
process updates it can take ~1 minute until traffic
can start flowing through the L3 agent's routers.

When using a highly available solution (not VRRP)
the startup delay adds around a full minute to
the minimum downtime.

This patch simply does a manual (i.e. not periodic) full
sync once the L3 agent is ready (in 'after_start' method).

The change results in a much faster sync on a new agent.
With the patch it takes several seconds until routers are
created on the new/restarted L3 agent.

Closes-Bug: #1407410

Change-Id: I2447a4cdfff5e915f0b5da88e16c9b6944ea9563

9 years agohacking: enable H238 (old style class declaration, use new style)
Ihar Hrachyshka [Mon, 12 Jan 2015 16:27:14 +0000 (17:27 +0100)]
hacking: enable H238 (old style class declaration, use new style)

The rule was added in hacking 0.10 and is useful for migration to Python 3.

Change-Id: I8b45413cf34e5a9db8074f9029410e3b22a92640

9 years agohacking: enable W292 (no newline at end of file)
Ihar Hrachyshka [Mon, 12 Jan 2015 16:15:31 +0000 (17:15 +0100)]
hacking: enable W292 (no newline at end of file)

This check was added in hacking 0.10.

Change-Id: If063742bc1be595d1d91b60d9059a01e94d31696

9 years agoUpdate hacking to 0.10
Ihar Hrachyshka [Mon, 12 Jan 2015 16:04:14 +0000 (17:04 +0100)]
Update hacking to 0.10

Release notes:
http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

* Remove references in tox.ini to removed rules.
* Remove custom @author check since it's now implemented in hacking.
* Move N323 to N322 that is freed due to @author check removal.
* Temporarily skip W292 (no newline at the end of file).
* Temporarily skip H238 (old style classes).

Change-Id: I6d990a564df6a312bd09b2a152315bbdba732082

9 years agoUse "if dict.get(key):" instead "if key in dict and dict[key]:"
Wei Wang [Thu, 7 Aug 2014 08:16:37 +0000 (16:16 +0800)]
Use "if dict.get(key):" instead "if key in dict and dict[key]:"

Use "if dict.get(key):" instead of "if key in dict and dict[key]:"
which makes code more clear and intelligible. Note this patch doesn't
change judging conditions, all "is not None" are retained.

Change-Id: Ieed57a21eb4b08c6f9a25b180a3625154a0d5fde

9 years agoRename qexception->nexception
Aaron Rosen [Mon, 12 Jan 2015 21:55:32 +0000 (13:55 -0800)]
Rename qexception->nexception

A few qexception references where still present in the code this patch
renames them to nexecption.

find . -name "*.py" -print | xargs sed -i 's/qexception/nexception/g'
TrivialFix

Change-Id: I9530c7a23deb3a40c3720bc8fc99ce09dbd88dd9

9 years agoFix AttributeError on check_foreign_keys in functional job
armando-migliaccio [Mon, 12 Jan 2015 21:26:49 +0000 (13:26 -0800)]
Fix AttributeError on check_foreign_keys in functional job

Since change 75b402be3b8, the method is no longer available. This
patch makes a similar fix for the Neutron's functiona job test case.

Closes-bug: #1409909

Change-Id: I7866c0bf6c5fe3f37c5a7ea7f9161087b913127a

9 years agoCode improvement in type_vxlan.py and type_gre.py files
Aman Kumar [Fri, 9 Jan 2015 09:16:59 +0000 (01:16 -0800)]
Code improvement in type_vxlan.py and type_gre.py files

This patch set basically addressing the review comment
given in the following patch-set:
https://review.openstack.org/#/c/121000/

Co-Authored-By: Romil Gupta <romilg@hp.com>
Change-Id: I12cbb4737e4938b8da808cb19f5e9d1e290f2559

9 years agoEnsure config directory created before updating leases
Miguel Angel Ajo [Mon, 5 Jan 2015 12:34:53 +0000 (12:34 +0000)]
Ensure config directory created before updating leases

Under high load conditions dhcp-agent could try to start the
dhcp local process via reload_allocations. But it will fail since
the dhcp config directory for the specific network is not
created yet.

We ensure its creation with this patch.

Closes-Bug: 1407618

Change-Id: Ib37651f7f802debd472ab292b148c2a2496063a3

9 years agoAllow IptablesManager to manage mangle table
Cedric Brandily [Tue, 18 Nov 2014 09:34:30 +0000 (10:34 +0100)]
Allow IptablesManager to manage mangle table

This change enables the IptablesManager to manage mangle table (used
by daughter change).

Partial-Bug: #1187102
Change-Id: Ic2d681f1515aaa541c6d137ce981622f2fff90e5

9 years agoFix IPv6 Subnet Slaac Check
WeiHu [Tue, 30 Dec 2014 02:45:55 +0000 (10:45 +0800)]
Fix IPv6 Subnet Slaac Check

Currently, "is_slaac_subnet" method only checks "ipv6_address_mode".
This will let neutron allocate a stateful IPv6 address for instance
when ipv6_ra_mode set to "stateless" or "slaac", and "ipv6_address_mode"
unset. But actually, instance get IPv6 address prefix from radvd, and
auto configure IPv6 address by itself. This change will let "is_slaac_
subnet" also check ipv6_ra_mode attribute, which will no longer allow
fixed IPs on auto-address subnets and delete subnet will correctly delete
auto-address ports.

Change-Id: Ic99193a0a2669fb281759d9b47c7aae6a4f6ecce
Closes-Bug: 1406436

9 years agoMerge "Confusing message deleting default security group"
Jenkins [Mon, 12 Jan 2015 03:38:38 +0000 (03:38 +0000)]
Merge "Confusing message deleting default security group"

9 years agoMerge "Fix UT for L2pop test_get_agent_ports_no_data()"
Jenkins [Mon, 12 Jan 2015 01:00:44 +0000 (01:00 +0000)]
Merge "Fix UT for L2pop test_get_agent_ports_no_data()"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 12 Jan 2015 00:37:59 +0000 (00:37 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Reset policies after RESOURCE_ATTRIBUTE_MAP is populated"
Jenkins [Sun, 11 Jan 2015 21:28:53 +0000 (21:28 +0000)]
Merge "Reset policies after RESOURCE_ATTRIBUTE_MAP is populated"

9 years agoMerge "Move metadata agent entry to its own file"
Jenkins [Sun, 11 Jan 2015 17:48:22 +0000 (17:48 +0000)]
Merge "Move metadata agent entry to its own file"

9 years agoMerge "Scope metadata rpc api using a messaging namespace"
Jenkins [Sun, 11 Jan 2015 15:32:31 +0000 (15:32 +0000)]
Merge "Scope metadata rpc api using a messaging namespace"

9 years agoMerge "Provide doc string pointers for the dhcp agent rpc api"
Jenkins [Sun, 11 Jan 2015 15:29:08 +0000 (15:29 +0000)]
Merge "Provide doc string pointers for the dhcp agent rpc api"

9 years agoMerge "Clarify dnsmasq version check failure message"
Jenkins [Sun, 11 Jan 2015 14:13:31 +0000 (14:13 +0000)]
Merge "Clarify dnsmasq version check failure message"

9 years agoMerge "Break out config and entry point out of l3/agent file"
Jenkins [Sun, 11 Jan 2015 10:08:11 +0000 (10:08 +0000)]
Merge "Break out config and entry point out of l3/agent file"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 11 Jan 2015 06:11:26 +0000 (06:11 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ie5d4fbe89c4ab2f8b99dbc6099bc962310a1e8f0

9 years agoMove non-bridge-related OVSBridge methods to BaseOVS
Terry Wilson [Thu, 11 Dec 2014 18:10:37 +0000 (11:10 -0700)]
Move non-bridge-related OVSBridge methods to BaseOVS

This patch moves several methods in OVSBridge that don't really have
anything to do with OVS bridges to BaseOVS where they are a much
better fit. Since OVSBridge inherits from BaseOVS, no modules using
ovs_lib will have to change to support this move.

Also, several module-level functions that essentially re-implement
BaseOVS.run_vsctl() are moved to BaseOVS and converted to use
run_vsctl. In order to avoid changing the API, the module-level
functions are then reimplemented by creating a BaseOVS instance and
calling the associated method.

Partially-implements: blueprint vsctl-to-ovsdb
Change-Id: I94aaa0bef68e407649b421db53bb59d007335f5c

9 years agoMove metadata agent entry to its own file
armando-migliaccio [Fri, 9 Jan 2015 18:35:59 +0000 (10:35 -0800)]
Move metadata agent entry to its own file

Break main() and configs out of agent logic. This makes metadata
consistent with the L3 and DHCP agents [1, 2].

Along with [3], this is done to better delineate what the agent module
inner boundaries are about. More to follow to finish off the cleanup.

[1] https://review.openstack.org/#/c/145979/
[2] https://review.openstack.org/#/c/146024/
[3] https://review.openstack.org/#/c/146151/

Change-Id: I2842f7c21db6f6dabdd2549f91a9001220454c22

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 9 Jan 2015 23:16:20 +0000 (23:16 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Remove SELECT FOR UPDATE from delete_network and delete_subnet"
Jenkins [Fri, 9 Jan 2015 22:31:13 +0000 (22:31 +0000)]
Merge "Remove SELECT FOR UPDATE from delete_network and delete_subnet"

9 years agoMerge "Deal with PEP-0476 certificate chaining checking"
Jenkins [Fri, 9 Jan 2015 21:58:39 +0000 (21:58 +0000)]
Merge "Deal with PEP-0476 certificate chaining checking"

9 years agoMerge "Skip adding ips from non dhcp enabled subnets to hosts file"
Jenkins [Fri, 9 Jan 2015 21:55:17 +0000 (21:55 +0000)]
Merge "Skip adding ips from non dhcp enabled subnets to hosts file"

9 years agoRun only one instance of Nuage sync cycle at a time
Sayaji [Mon, 1 Dec 2014 23:25:57 +0000 (15:25 -0800)]
Run only one instance of Nuage sync cycle at a time

Sync can run as part of Neutron and as a standalone tool.
So when sync is triggered through Neutron, someone can
trigger another sync cycle using the standalone tool.
Similarly when sync is triggered by standalone tool, Neutron
can trigger another sync cycle. This can lead to unexpected
sync behaviour .This fix will allow only one sync cycle at a
time and the other cycle will be blocked till the first one is
complete.

Change-Id: I9ffd07bea38d806f92edc160480b5896d3393202
Closes-Bug:1398190

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 9 Jan 2015 18:29:08 +0000 (18:29 +0000)]
Updated from global requirements

Change-Id: I3f60658b85fe3da9575601658b1b86b1e2aee4de

9 years agoScope metadata rpc api using a messaging namespace
Russell Bryant [Thu, 18 Dec 2014 20:11:07 +0000 (20:11 +0000)]
Scope metadata rpc api using a messaging namespace

This patch does a couple of things.  First it adds docstrings to the
client/server pair of the rpc interface used by the metadata service
to make calls back into the Neutron server.  The docs tell you where
the other side of the interface is found in the code, and where docs
are that give more info on the rules for changing them.

The second thing done in this patch is to scope this interface using a
messaging namespace.  Right now some plugins expose several interfaces
via the default namespace.  This effectively means they are a single
API and should be managed with a single version stream.  It's much
more managable to just treat these as separate interfaces and this
change makes that explicit and functionally true.  Now when a method
is invoked, the only classes considered for handling that request will
be ones marked with the right namespace.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I3330229bf85b01d50c90e9ca064ae5e0fae83509

9 years agoProvide doc string pointers for the dhcp agent rpc api
Russell Bryant [Wed, 17 Dec 2014 19:55:43 +0000 (19:55 +0000)]
Provide doc string pointers for the dhcp agent rpc api

There is an rpc interface defined for the Neutron plugin to be able to
execute methods in the DHCP agent.  Provide docstring pointers in the
client and server side that tells you where to find the other side of
the interface.

No namespace usage is needed here.  This API is the only one exposed
via the DHCP agent, so the default namespace used now is fine.

The DhcpAgent class was updated to explicitly define the
messaging.Target().  Previously it was using the equivalent one
defined in the Manager base class.  Having it specified here makes it
more obvious that this is an rpc endpoint, and also provides the
obvious place that must have the version updated if the interface is
changed.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I4a6eb8dacb9ba01f329a5d5961dc0e0ee6f780ba

9 years agoLimit permission change
armando-migliaccio [Fri, 9 Jan 2015 02:03:17 +0000 (18:03 -0800)]
Limit permission change

A failure was observed where the functional job would fail with error

chmod: changing permissions of ./neutron/agent/metadata/namespace_proxy.pyc
Operation not permitted

We should limit the permission change to logs only to avoid this potential
error.

Change-Id: I28f4060bab0edd1cd0c4e25eec9017601f4bdf24

9 years agoBreak out config and entry point out of l3/agent file
armando-migliaccio [Fri, 9 Jan 2015 00:12:41 +0000 (16:12 -0800)]
Break out config and entry point out of l3/agent file

This is done in order to show the split between a main() and
the agent's inner workings. At the same time the L3 agent for
Neutron is also being restructured and to this aim, its config
is also moved out of the agent file.

Keep main() for the time being until we get dependent
services updated.

Partially-Implements: bp restructure-l3-agent
Partially-Implements: bp core-vendor-decomposition

Change-Id: I0d07d91ba301ee1aa51dabcf964a96edc0d6a3e0

9 years agoValidate legacy router services before migration
Swaminathan Vasudevan [Fri, 19 Sep 2014 17:41:09 +0000 (10:41 -0700)]
Validate legacy router services before migration

When legacy routers are migrated to distributed
routers, we need to make sure that there are no
Advanced services associated with the router.

If Advanced services such as FWaaS or VPNaaS is
associated with the router, we raise an exception
and stop the migration.

Partial-bug: #1348309

DocImpact

Change-Id: I65909040a16b022108e481344064d375050d731c

9 years agoMerge "Deletes floating agent gw port on disassociate"
Jenkins [Thu, 8 Jan 2015 20:11:58 +0000 (20:11 +0000)]
Merge "Deletes floating agent gw port on disassociate"

9 years agoMerge "Catch PortNotFound and SubnetNotFound during network_delete"
Jenkins [Thu, 8 Jan 2015 20:01:55 +0000 (20:01 +0000)]
Merge "Catch PortNotFound and SubnetNotFound during network_delete"

9 years agoMerge "Correct l3-agent iptables rule for metadata proxy"
Jenkins [Thu, 8 Jan 2015 17:23:53 +0000 (17:23 +0000)]
Merge "Correct l3-agent iptables rule for metadata proxy"

9 years agoClarify dnsmasq version check failure message
Ihar Hrachyshka [Thu, 8 Jan 2015 15:25:01 +0000 (16:25 +0100)]
Clarify dnsmasq version check failure message

It not only *may* not run correctly, it *will*, since we exit the agent.

Change-Id: Icd5c22da3b4c60751265183563cf3a1edc814215

9 years agoRemove redundant tunnel ids from ovs agent
Darragh O'Reilly [Thu, 8 Jan 2015 11:33:09 +0000 (11:33 +0000)]
Remove redundant tunnel ids from ovs agent

tunnel ids were specific to the OVS plugin which was removed in Juno.

Change-Id: I369203a23ad4af1d307166aae84aee817572370b

9 years agoMerge "Improve unit test coverage for Ml2 db.py"
Jenkins [Thu, 8 Jan 2015 10:16:39 +0000 (10:16 +0000)]
Merge "Improve unit test coverage for Ml2 db.py"

9 years agoMerge "Fix DVR flow problems for IPv6 subnet"
Jenkins [Thu, 8 Jan 2015 03:50:19 +0000 (03:50 +0000)]
Merge "Fix DVR flow problems for IPv6 subnet"

9 years agoMerge "Add Process class helper to manage processes with namespace"
Jenkins [Wed, 7 Jan 2015 22:29:15 +0000 (22:29 +0000)]
Merge "Add Process class helper to manage processes with namespace"

9 years agoCorrect l3-agent iptables rule for metadata proxy
Cedric Brandily [Thu, 11 Dec 2014 13:10:30 +0000 (13:10 +0000)]
Correct l3-agent iptables rule for metadata proxy

2 iptables rules are defined to ensure the metadata proxy is reachable
from vms on 169.254.169.254:80:
* REDIRECT 169.254.169.254:80 packets to the router on port 9697
* ACCEPT traffic to 127.0.0.1 on port 9697

The REDIRECT rule replaces destination ip by:
 * 127.0.0.1 if the packet is local,
 * router ip (the one on the input interface, metadata proxy case).

So ACCEPT rule filter is not matched ... the metadata proxy is only
reachable because INPUT policy is ACCEPT.

This change removes the destination constraint in the ACCEPT rule.

Change-Id: Iea700bdd121bbc56a3489a63e2a5391867fad0d6
Closes-Bug: #1399462

9 years agoFix UT for L2pop test_get_agent_ports_no_data()
Jakub Libosvar [Tue, 6 Jan 2015 22:21:57 +0000 (23:21 +0100)]
Fix UT for L2pop test_get_agent_ports_no_data()

Previously loop in this test has never been executed because returned
generator was empty. This patch validates that generator is empty.

Change-Id: I900cd7bccee16487ab5469a2222afd294d9dee25
Closes-Bug: #1365388

9 years agoMerge "Bump minimal dnsmasq version to 2.67"
Jenkins [Wed, 7 Jan 2015 18:10:04 +0000 (18:10 +0000)]
Merge "Bump minimal dnsmasq version to 2.67"

9 years agoMove postcommit ops out of transaction for bulk
Mohammad Banikazemi [Sat, 6 Sep 2014 14:24:01 +0000 (10:24 -0400)]
Move postcommit ops out of transaction for bulk

Currently, the bulk create operations in ML2 are executed in
a transaction. This means all precommit and postcommit operations
for such operations are in a transaction. Postcommit operations
are expected to be executed outside of transactions as they may
communicate with a backend and introduce substantial delays. This
fix removes the postcommit operations from the transaction for
bulk create network/subnet/port operations.

Change-Id: I9a9683058088e50d9443040223232bf5e1396ccf
Closes-Bug: #1193861