]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "ML2: verify if required extension drivers are loaded"
Jenkins [Fri, 15 Jan 2016 05:01:47 +0000 (05:01 +0000)]
Merge "ML2: verify if required extension drivers are loaded"

8 years agoMerge "Updated from global requirements"
Jenkins [Fri, 15 Jan 2016 02:34:48 +0000 (02:34 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Pecan: fix quota management"
Jenkins [Fri, 15 Jan 2016 01:27:46 +0000 (01:27 +0000)]
Merge "Pecan: fix quota management"

8 years agoMerge "Pecan: Fixes and tests for the policy enforcement hook"
Jenkins [Fri, 15 Jan 2016 01:26:22 +0000 (01:26 +0000)]
Merge "Pecan: Fixes and tests for the policy enforcement hook"

8 years agoMerge "Static routes not added to qrouter namespace for DVR"
Jenkins [Fri, 15 Jan 2016 01:24:20 +0000 (01:24 +0000)]
Merge "Static routes not added to qrouter namespace for DVR"

8 years agoMerge "Scope get_tenant_quotas by tenant_id"
Jenkins [Fri, 15 Jan 2016 00:51:46 +0000 (00:51 +0000)]
Merge "Scope get_tenant_quotas by tenant_id"

8 years agoMerge "Adopt oslotest BaseTestCase as a base class for DietTestCase"
Jenkins [Thu, 14 Jan 2016 23:42:03 +0000 (23:42 +0000)]
Merge "Adopt oslotest BaseTestCase as a base class for DietTestCase"

8 years agoMerge "Pass environment variables of proxy to tox"
Jenkins [Thu, 14 Jan 2016 23:40:28 +0000 (23:40 +0000)]
Merge "Pass environment variables of proxy to tox"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 13 Jan 2016 08:16:16 +0000 (08:16 +0000)]
Updated from global requirements

Change-Id: I96df4154c7f1305fbf15974a2e6b4eef7eae78af

8 years agotests: stop validating neutronclient in neutron-debug tests
Ihar Hrachyshka [Wed, 13 Jan 2016 12:32:15 +0000 (13:32 +0100)]
tests: stop validating neutronclient in neutron-debug tests

In neutronclient 4.0.0, any command executed triggers DeprecationWarning
on stderr (to be fixed by I77f168af92ae51ce16bed4988bbcaf7c18557727 and
a new client release including it).

The test cases assumed that if command is successful, it never writes to
stderr though. Making the test failing when using the latest client.

Instead of fixing the test class not to assume there is no output on
stderr, remove it because we are not meant to validate neutronclient in
neutron gate at all and should rely on the library as shipped. Client
should already have reasonable coverage for its CLI.

Change-Id: I6440445b80637a5a9f4de052cf5ea1fbd8dcf7d1
Closes-Bug: #1533638

8 years agoMerge "Fix URLs for pep8, and unit tests jobs"
Jenkins [Thu, 14 Jan 2016 05:50:06 +0000 (05:50 +0000)]
Merge "Fix URLs for pep8, and unit tests jobs"

8 years agoML2: verify if required extension drivers are loaded
Sławek Kapłoński [Sat, 5 Dec 2015 23:11:46 +0000 (00:11 +0100)]
ML2: verify if required extension drivers are loaded

This change ensures extension drivers required by service plugins are loaded
when using ML2 plugin: we check that ML2 loads QoS extension driver when QoS
service plugin is enabled.

Change-Id: Ibf19e77b88ce34c58519ae157c852c9e2b30e31f
Closes-bug: #1496787

8 years agoFix typo in test path in Testing.rst
Manjeet Singh Bhatia [Wed, 13 Jan 2016 20:28:40 +0000 (20:28 +0000)]
Fix typo in test path in Testing.rst

Change-Id: I8e9f250bb2f9d2781cfcaf7058fbc77ace42f063

8 years agoFix URLs for pep8, and unit tests jobs
armando-migliaccio [Wed, 13 Jan 2016 20:06:16 +0000 (12:06 -0800)]
Fix URLs for pep8, and unit tests jobs

We switched to constrained jobs a while back, but these links were
showing the non constrained ones, making these graphs useless.

This patch updates them to reflect the jobs that are currently
running, however the docs job is left for later as right now
switching would make graphite fail with:

'TypeError: reduce() of empty sequence with no initial value'

I suspect that's because the job has never failed so far.

Change-Id: I60cab40f3c12099d8437616d8301aecd858ef54c

8 years agoStatic routes not added to qrouter namespace for DVR
Swaminathan Vasudevan [Fri, 25 Sep 2015 16:54:44 +0000 (09:54 -0700)]
Static routes not added to qrouter namespace for DVR

Today static routes are added to the SNAT namespace
for DVR routers. But they are not added to the qrouter
namespace.

Also while configuring the static routes to SNAT
namespace, the router is not checked for the existence
of the gateway.

When routes are added to a router without a gateway the
routes are only configured in the router namespace, but
when a gateway is set later, those routes have to be
populated in the snat_namespace as well.

This patch addresses the above mentioned issues.

Closes-Bug: #1499785
Closes-Bug: #1499787

Change-Id: I37e0d0d723fcc727faa09028045b776957c75a82

8 years agoPass environment variables of proxy to tox
chen-li [Wed, 13 Jan 2016 10:31:57 +0000 (18:31 +0800)]
Pass environment variables of proxy to tox

When a development environment is under a proxy, tox is failed
even if environment variables of the proxy are set. This is a
new feature above tox 2.0, you can check it from [1].

This patch fix this problem.

[1]. https://tox.readthedocs.org/en/latest/example/basic.html#passing-down-environment-variables

Change-Id: I9dae04de7053773cb5ba13a809145b86cb149614

8 years agoPecan: fix quota management
Salvatore Orlando [Fri, 18 Sep 2015 21:10:26 +0000 (14:10 -0700)]
Pecan: fix quota management

This patch fixes quota management APIs in the Pecan framework.
To this aim:

1) an ad-hoc pair of collection/item controllers are introduced
   for the quota resource; as the new controllers have been added
   in a separate module, the neutron.pecan_wsgi.controllers.utils
   module has been added as well for helpers, routines and classes
   used by all pecan controllers;
2) the quota API extension is made pecan-aware, meaning that it
   simply returns a Pecan controller instance rather than deferring
   the task to the startup process that builds controllers using the
   home-grown WSGI framework ext manager;
3) the quota resource is now "almost" a standard neutron resource;
   unfortunately since it does not yet have its own service plugin a
   special provision is made in the attribute population hook in
   order to ensure the object is loaded for allowing correct
   policy enforcement.
4) Functional tests for the quota controller have been added.

Closes-Bug: #1505843

Change-Id: I44a1fd73f678e493d5b1163e5f183d9efdc678ac

8 years agoPecan: Fixes and tests for the policy enforcement hook
Salvatore Orlando [Tue, 13 Oct 2015 22:08:47 +0000 (15:08 -0700)]
Pecan: Fixes and tests for the policy enforcement hook

As PolicyNotAuthorizedException is raised in a hook, the
ExceptionTranslationHook is not invoked for it; therefore a 500
response is returned whereas a 403 was expected. This patch
explicitly handles the exception in the hook in order to ensure
the appropriate response code is returned.

Moreover, the structure of the 'before' hook prevented checks
on DELETE requests from being performed. As a result the check
was not performed at all (checks on the 'after' hook only pertain
GET requests). This patch changes the logic of the 'before' hook
by ensuring the item to authorize acces to is loaded both on PUT
and DELETE requests.

This patch also adds functional tests specific for the policy
enforcement hook.

Change-Id: I8c76cb05568df47648cff71a107cfe701b286bb7
Closes-Bug: #1520180
Closes-Bug: #1505831

8 years agoScope get_tenant_quotas by tenant_id
Salvatore Orlando [Mon, 12 Oct 2015 22:47:03 +0000 (15:47 -0700)]
Scope get_tenant_quotas by tenant_id

Using model_query in the operation for retrieving tenant limits
will spare the need for explicit authorization check in the
quota controller. This is particularly relevant for the pecan
framework where every Neutron API call undergoes authZ checks
in the same pecan hook.

This patch will automatically adapt by eventuals changes
introducing "un-scoped" contexts.

Closes-bug: #1505406

Change-Id: I6952f5c85cd7fb0263789f768d23de3fe80b8183

8 years agoMerge "Log INFO message when setting admin state up flag to False for OVS port"
Jenkins [Wed, 13 Jan 2016 02:52:18 +0000 (02:52 +0000)]
Merge "Log INFO message when setting admin state up flag to False for OVS port"

8 years agoMerge "Allow tox to pass more arguments to ostestr command"
Jenkins [Tue, 12 Jan 2016 22:20:09 +0000 (22:20 +0000)]
Merge "Allow tox to pass more arguments to ostestr command"

8 years agoMerge "portbindings: use constants for extension keys"
Jenkins [Tue, 12 Jan 2016 19:06:20 +0000 (19:06 +0000)]
Merge "portbindings: use constants for extension keys"

8 years agoMerge "Remove duplicate for check_ports_exist_on_l3agent"
Jenkins [Tue, 12 Jan 2016 14:10:08 +0000 (14:10 +0000)]
Merge "Remove duplicate for check_ports_exist_on_l3agent"

8 years agoLog INFO message when setting admin state up flag to False for OVS port
Hynek Mlnarik [Tue, 12 Jan 2016 08:10:25 +0000 (09:10 +0100)]
Log INFO message when setting admin state up flag to False for OVS port

Disabling admin state can cause confusion in OVS agent logs as to why
VLAN 4095 is set to a particular port. This commit adds an extra INFO
log message when admin state is disabled. There is no log emitted
upon enabling admin state as there is already a detailed log entry
logged in treat_devices_added_or_updated() function.

Change-Id: I1301db8fea75af211f66a1914d1f0b706a6d5b36
Closes-Bug: 1463891

8 years agoMerge "remove openstack-common.conf"
Jenkins [Tue, 12 Jan 2016 11:08:39 +0000 (11:08 +0000)]
Merge "remove openstack-common.conf"

8 years agoMerge "Add README with links on how to create release notes"
Jenkins [Tue, 12 Jan 2016 10:02:51 +0000 (10:02 +0000)]
Merge "Add README with links on how to create release notes"

8 years agoMerge "Call _allocate_vr_id outside of transaction"
Jenkins [Tue, 12 Jan 2016 08:42:00 +0000 (08:42 +0000)]
Merge "Call _allocate_vr_id outside of transaction"

8 years agoMerge "Don't call add_ha_port inside a transaction"
Jenkins [Tue, 12 Jan 2016 08:37:06 +0000 (08:37 +0000)]
Merge "Don't call add_ha_port inside a transaction"

8 years agoMerge "Rename _get_vm_port_hostid in dvr to reflect the right functionality"
Jenkins [Tue, 12 Jan 2016 03:15:09 +0000 (03:15 +0000)]
Merge "Rename _get_vm_port_hostid in dvr to reflect the right functionality"

8 years agoMerge "Pecan: Streamline request body processing"
Jenkins [Tue, 12 Jan 2016 01:11:12 +0000 (01:11 +0000)]
Merge "Pecan: Streamline request body processing"

8 years agoMerge "Remove L2populationDbMixin parent"
Jenkins [Tue, 12 Jan 2016 00:20:24 +0000 (00:20 +0000)]
Merge "Remove L2populationDbMixin parent"

8 years agoMerge "Add unit test cases for linuxbridge agent when prevent_arp_spoofing is True"
Jenkins [Tue, 12 Jan 2016 00:20:06 +0000 (00:20 +0000)]
Merge "Add unit test cases for linuxbridge agent when prevent_arp_spoofing is True"

8 years agoMerge "Move notifications before DB retry decorator"
Jenkins [Tue, 12 Jan 2016 00:19:48 +0000 (00:19 +0000)]
Merge "Move notifications before DB retry decorator"

8 years agoMerge "make floating IP specification test robust to races"
Jenkins [Mon, 11 Jan 2016 23:58:49 +0000 (23:58 +0000)]
Merge "make floating IP specification test robust to races"

8 years agoMerge "Make neutron-debug command follow cliff command convention"
Jenkins [Mon, 11 Jan 2016 23:26:54 +0000 (23:26 +0000)]
Merge "Make neutron-debug command follow cliff command convention"

8 years agoMerge "ML2: Simplified boolean variable check"
Jenkins [Mon, 11 Jan 2016 23:26:34 +0000 (23:26 +0000)]
Merge "ML2: Simplified boolean variable check"

8 years agoMerge "Remove unnecessary argument in limit manage"
Jenkins [Mon, 11 Jan 2016 21:53:14 +0000 (21:53 +0000)]
Merge "Remove unnecessary argument in limit manage"

8 years agoMerge "Add a link of availability zone document into releasenote"
Jenkins [Mon, 11 Jan 2016 21:35:30 +0000 (21:35 +0000)]
Merge "Add a link of availability zone document into releasenote"

8 years agoRemove duplicate for check_ports_exist_on_l3agent
Oleg Bondarev [Wed, 9 Dec 2015 14:58:14 +0000 (17:58 +0300)]
Remove duplicate for check_ports_exist_on_l3agent

This removes check_ports_on_host_and_subnet which mostly duplicates what
check_ports_exist_on_l3agent is doing.
Also rename check_ports_exist_on_l3agent to check_dvr_serviceable_ports_on_host
for more clarity.

Closes-Bug: #1524291
Change-Id: Ie02c68279c2bbafffc7be4d9a81fe25a0e983d58

8 years agoMerge "Ensure that decomposed plugins do not break"
Jenkins [Mon, 11 Jan 2016 14:41:20 +0000 (14:41 +0000)]
Merge "Ensure that decomposed plugins do not break"

8 years agoMerge "Fix Security-rule's port should not set to 0 when Protocol is TCP/UDP"
Jenkins [Mon, 11 Jan 2016 14:40:54 +0000 (14:40 +0000)]
Merge "Fix Security-rule's port should not set to 0 when Protocol is TCP/UDP"

8 years agoMerge "DVR: optimize check_ports_exist_on_l3_agent()"
Jenkins [Mon, 11 Jan 2016 14:34:15 +0000 (14:34 +0000)]
Merge "DVR: optimize check_ports_exist_on_l3_agent()"

8 years agoMerge "Remove check on dhcp enabled subnets while scheduling dvr"
Jenkins [Mon, 11 Jan 2016 14:31:54 +0000 (14:31 +0000)]
Merge "Remove check on dhcp enabled subnets while scheduling dvr"

8 years agoML2: Simplified boolean variable check
Ravi Shekhar Jethani [Thu, 19 Nov 2015 10:02:31 +0000 (02:02 -0800)]
ML2: Simplified boolean variable check

Currently 'flows' is being checked for empty list in
a non standard way 'if flows == []:'. This patch
simplifies logic so that above check is unnecessary.

TrivialFix

Change-Id: I0eac42e425213b6588090e7e2379b14446308361

8 years agoPecan: Streamline request body processing
Salvatore Orlando [Fri, 6 Nov 2015 21:57:32 +0000 (13:57 -0800)]
Pecan: Streamline request body processing

This patch simplifies the process for validating the request body for
POST and PUT requests and preparing it for dispatching to plugins.

In particular it removes the need for parsing the URL to find the
resource identifier, and instead leverages Pecan's routing engine
to extract it. As a result the attribute population hook now simply
deals with request body validation, and has been renamed accordingly.

The logic for loading the current state of the object from the plugin
in order to enforce authZ policy on PUT requests has been moved to
the appropriate hook, PolicyEnforcementHook.

The logic for managing plural/singular names for resource has also been
improved, and two helper functions to retrieve a resource's attributes
have been added to neutron.api.v2.attributes

The logic for aborting requests with unsupported HTTP methods has also
been moved to the REST controllers. It used to be in PolicyEnforcementHook,
which was probably not the right thing to do.

This patch also unskips a functional test concerning ownership checks,
and add functional tests for verifying correct request processing.
Unit tests for the newly added helper functions are also provided.

Related blueprint wsgi-pecan-switch

Change-Id: Ib26998b37bdeec8af7a97f77b66d421b8cd271da

8 years agoMerge "Updated from global requirements"
Jenkins [Mon, 11 Jan 2016 07:49:25 +0000 (07:49 +0000)]
Merge "Updated from global requirements"

8 years agomake floating IP specification test robust to races
Kevin Benton [Thu, 7 Jan 2016 23:40:27 +0000 (15:40 -0800)]
make floating IP specification test robust to races

The get_unused_ip function returns an address that isn't in use on
the network at the time it's called. However, by the time the caller
uses it, it may have been allocated to another concurrent test if
the network is shared or external.

The test_create_floatingip_with_specified_ip_address test creates
a floating IP with an unused IP on the external network, which has
lots of activity on it from other tests so it would occasionally
have its address taken by another test.

This patch just catches the in use error and tries again with a
new IP.

Change-Id: I5a2f78a6da1e400dea07949f35964abb767edbb2
Closes-Bug: #1532033

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 10 Jan 2016 14:36:11 +0000 (14:36 +0000)]
Updated from global requirements

Change-Id: Ifdb68288c0b6538dee345e7b041891aab4910360

8 years agoEnsure agent binding modules are loaded
Kevin Benton [Thu, 24 Dec 2015 08:29:08 +0000 (00:29 -0800)]
Ensure agent binding modules are loaded

This patch ensures that models_v2 and the router db module
import the agent binding modules so their models are defined
in the sqlalchemy metadata. Otherwise, using an agentless
core/L3 plugin may result in a failure to initialize if nothing
imported the agent module.

Change-Id: I77240462b618d6e95c7c5862441d6d179e371f4f
Closes-Bug: #1529022

8 years agoMerge "Remove references to model_base through models_v2"
Jenkins [Sun, 10 Jan 2016 13:43:39 +0000 (13:43 +0000)]
Merge "Remove references to model_base through models_v2"

8 years agoMerge "Simplify extension processing"
Jenkins [Sun, 10 Jan 2016 11:19:24 +0000 (11:19 +0000)]
Merge "Simplify extension processing"

8 years agoportbindings: use constants for extension keys
Gary Kotton [Mon, 21 Dec 2015 18:21:57 +0000 (10:21 -0800)]
portbindings: use constants for extension keys

Use the constants defined in the portbindings extension.

TrivialFix

Change-Id: I90c3deeae9018d4e5b23283f64657d9f5d5723c7

8 years agoAdd README with links on how to create release notes
Sean M. Collins [Sat, 9 Jan 2016 23:54:34 +0000 (15:54 -0800)]
Add README with links on how to create release notes

Change-Id: I7944d4ad8d53418d36a2cf894fd9120c672521bf

8 years agoMerge "devstack: don't enable qos service with the plugin"
Jenkins [Sat, 9 Jan 2016 17:10:23 +0000 (17:10 +0000)]
Merge "devstack: don't enable qos service with the plugin"

8 years agoEnsure that decomposed plugins do not break
Gary Kotton [Fri, 8 Jan 2016 15:34:27 +0000 (07:34 -0800)]
Ensure that decomposed plugins do not break

Commit 5d53dfb8d64186b5b1d2f356fbff8f222e15d1b2 removed the
method _get_tenant_id_for_create. This is used by various plugins
and the *aaS libaries.

Change-Id: I6d5e2555d6c198102a3d5400609f1d671e0d388d

8 years agoMerge "LBaaS tests code removal"
Jenkins [Sat, 9 Jan 2016 07:49:53 +0000 (07:49 +0000)]
Merge "LBaaS tests code removal"

8 years agoMerge "HACKING: align the underline text and header"
Jenkins [Sat, 9 Jan 2016 06:48:06 +0000 (06:48 +0000)]
Merge "HACKING: align the underline text and header"

8 years agoMerge "Provide pointer for ML2 extension manager to effective guide"
Jenkins [Sat, 9 Jan 2016 04:50:42 +0000 (04:50 +0000)]
Merge "Provide pointer for ML2 extension manager to effective guide"

8 years agoMerge "DVR: Rename dvr_vmarp_table_update"
Jenkins [Sat, 9 Jan 2016 04:50:20 +0000 (04:50 +0000)]
Merge "DVR: Rename dvr_vmarp_table_update"

8 years agoMerge "Fix uuid passing in disable_isolated_metadata_proxy"
Jenkins [Sat, 9 Jan 2016 04:24:33 +0000 (04:24 +0000)]
Merge "Fix uuid passing in disable_isolated_metadata_proxy"

8 years agoMerge "Refactor the subnetpools API tests"
Jenkins [Sat, 9 Jan 2016 04:22:55 +0000 (04:22 +0000)]
Merge "Refactor the subnetpools API tests"

8 years agoMerge "Utils: Add missing translation to exception"
Jenkins [Sat, 9 Jan 2016 00:41:53 +0000 (00:41 +0000)]
Merge "Utils: Add missing translation to exception"

8 years agoMerge "Fix incorrect classmethod declaration"
Jenkins [Fri, 8 Jan 2016 21:20:57 +0000 (21:20 +0000)]
Merge "Fix incorrect classmethod declaration"

8 years agoLBaaS tests code removal
Assaf Muller [Fri, 8 Jan 2016 19:39:43 +0000 (14:39 -0500)]
LBaaS tests code removal

Since the API tests have been moved to the neutron_lbaas
tree, left over cruft may now be removed.

Change-Id: I7e3c3bd51c3621f6b1cc695838c618aee2130066

8 years agoMake neutron-debug command follow cliff command convention
Akihiro Motoki [Fri, 8 Jan 2016 18:35:05 +0000 (03:35 +0900)]
Make neutron-debug command follow cliff command convention

In the guideline of cliff command, developers implementing
commands should override take_action() rather than run().
The similar effort is being done in neutronclient side and
this fix is required to complete the effort.

Logger definition in each command class is no longer needed.
This commit also drops them.

Closes-Bug: #1532258
Change-Id: I613b7e18b3c058568fc3669ad1524e60a93eb9f8

8 years agoRename _get_vm_port_hostid in dvr to reflect the right functionality
Swaminathan Vasudevan [Wed, 23 Dec 2015 18:36:35 +0000 (10:36 -0800)]
Rename _get_vm_port_hostid in dvr to reflect the right functionality

_get_vm_port_hostid returns the host id associated with the
dvr service ports. It not only returns the VM port hostid, but
also returns the host id associated with LBaaS vip port and
dhcp.

So to be in sync with other function names let us rename the
function to _get_dvr_service_port_hostid.

Change-Id: Idc69d3b35a371b987aa34597ed6e1de7b96ff2e5

8 years agoDVR: Rename dvr_vmarp_table_update
Swaminathan Vasudevan [Sat, 5 Dec 2015 01:06:01 +0000 (17:06 -0800)]
DVR: Rename dvr_vmarp_table_update

This dvr_vmarp_table_update is not only used to update
the arp entry for the VM ports, but also for other
DVR service ports.

So the function name is kind of misleading and hence
changing it to an appropriate name that fits its function.

Change-Id: I6d5b0b717dcff964a514c83b0cd60b044411f0db

8 years agoRemove unnecessary argument in limit manage
Hirofumi Ichihara [Tue, 5 Jan 2016 10:54:20 +0000 (19:54 +0900)]
Remove unnecessary argument in limit manage

Change-Id: I2a7a99c72f24cafef848806620667c14b655f83e

8 years agoMerge "Add firewall blink + remote SG functional tests"
Jenkins [Fri, 8 Jan 2016 15:54:47 +0000 (15:54 +0000)]
Merge "Add firewall blink + remote SG functional tests"

8 years agoMerge "Add test cases to testing firewall drivers"
Jenkins [Fri, 8 Jan 2016 15:54:06 +0000 (15:54 +0000)]
Merge "Add test cases to testing firewall drivers"

8 years agoMerge "select router with subnet's gateway_ip for floatingip"
Jenkins [Fri, 8 Jan 2016 14:35:24 +0000 (14:35 +0000)]
Merge "select router with subnet's gateway_ip for floatingip"

8 years agoMerge "Check missed ip6tables utility"
Jenkins [Fri, 8 Jan 2016 14:29:45 +0000 (14:29 +0000)]
Merge "Check missed ip6tables utility"

8 years agoMerge "Keep py3.X compatibility for urllib"
Jenkins [Fri, 8 Jan 2016 12:17:44 +0000 (12:17 +0000)]
Merge "Keep py3.X compatibility for urllib"

8 years agoMerge "Support rootwrap sysctl and conntrack commands for non-l3 nodes"
Jenkins [Fri, 8 Jan 2016 11:59:07 +0000 (11:59 +0000)]
Merge "Support rootwrap sysctl and conntrack commands for non-l3 nodes"

8 years agoMerge "Create a routing table manager"
Jenkins [Fri, 8 Jan 2016 11:43:30 +0000 (11:43 +0000)]
Merge "Create a routing table manager"

8 years agoMerge "DVR: Rename dvr_update_router_addvm function"
Jenkins [Fri, 8 Jan 2016 08:06:03 +0000 (08:06 +0000)]
Merge "DVR: Rename dvr_update_router_addvm function"

8 years agoMerge "SR-IOV: Fix macvtap assigned vf check when kernel < 3.13"
Jenkins [Fri, 8 Jan 2016 08:03:51 +0000 (08:03 +0000)]
Merge "SR-IOV: Fix macvtap assigned vf check when kernel < 3.13"

8 years agoMerge "fix call which is only specific to enhanced_rpc"
Jenkins [Fri, 8 Jan 2016 07:21:15 +0000 (07:21 +0000)]
Merge "fix call which is only specific to enhanced_rpc"

8 years agoremove openstack-common.conf
caoyue [Fri, 8 Jan 2016 04:58:59 +0000 (12:58 +0800)]
remove openstack-common.conf

We don't sync from oslo-incubator, so don't need this file any more.

Change-Id: Ib30f681ccd9177c45d2c17d28b4a46ac5462df7c

8 years agoMerge "Fixing the deprecated library function."
Jenkins [Fri, 8 Jan 2016 04:08:13 +0000 (04:08 +0000)]
Merge "Fixing the deprecated library function."

8 years agoMerge "Unify assertEqual for empty usages"
Jenkins [Fri, 8 Jan 2016 04:07:36 +0000 (04:07 +0000)]
Merge "Unify assertEqual for empty usages"

8 years agoMerge "Avoid duplicating tenant check when creating resources"
Jenkins [Fri, 8 Jan 2016 03:56:27 +0000 (03:56 +0000)]
Merge "Avoid duplicating tenant check when creating resources"

8 years agoMerge "Kilo initial migration"
Jenkins [Fri, 8 Jan 2016 03:45:26 +0000 (03:45 +0000)]
Merge "Kilo initial migration"

8 years agoMove notifications before DB retry decorator
Kevin Benton [Fri, 8 Jan 2016 01:27:52 +0000 (17:27 -0800)]
Move notifications before DB retry decorator

This patch moves the start notifications emitted in the API
layer ('network.create.start', etc) to before the DB retry
decorator. This prevents benign retry events from resending
notifications onto the message bus.

Change-Id: I8159692a107ede397a4abeff71310a99fffa4862
Closes-Bug: #1532051

8 years agoCreate a routing table manager
Carl Baldwin [Tue, 22 Dec 2015 18:19:15 +0000 (11:19 -0700)]
Create a routing table manager

The routing table manager maps address scope ids to routing tables.
It uses the rt_tables file specific to each namespace to maintain the
mapping so that id can simply be used as the table name when running
iproute2 commands.  This will be useful when debugging.

Change-Id: Icd5e98c82a070045a50e0c5d3762906b7e159d3d
Partially-Implements:  blueprint address-scopes

8 years agoFix uuid passing in disable_isolated_metadata_proxy
Shih-Hao Li [Wed, 30 Dec 2015 19:43:23 +0000 (11:43 -0800)]
Fix uuid passing in disable_isolated_metadata_proxy

In DhcpAgent, when enable_isolated_metadata_proxy() spawns
a metadata proxy agent for a network, it will pass router_id
instead of network_id if metadata network is enabled and
a router port is connected to this network.

Later, MetadataDriver will register this uuid (i.e. router_id)
with monitor for the new metadata proxy process.

But when disable_isolated_metadata_proxy() destroys a metadata
proxy agent for a network, it always passes network_id as the uuid.
Thus MetadataDriver can not find the matching process. So the
corresponding metadata proxy agent can not be destroyed.

Closes-bug: #1526084
Change-Id: Icab94f4e09e95fa6729c458522a3fe50e850a4be

8 years agoFix incorrect classmethod declaration
Brian Haley [Thu, 7 Jan 2016 20:12:24 +0000 (15:12 -0500)]
Fix incorrect classmethod declaration

pylint complains about this:

************* Module neutron.tests.api.base
C:207, 4: Class method _try_delete_resource should have 'cls' as
first argument (bad-classmethod-argument)

Change-Id: I189c54a2c641b97579761ff37c8f87077037697b

8 years agoAdd unit test cases for linuxbridge agent when prevent_arp_spoofing is True
Anand Shanmugam [Tue, 5 Jan 2016 18:35:05 +0000 (10:35 -0800)]
Add unit test cases for linuxbridge agent when prevent_arp_spoofing is True

Currently there is no test coverage for when prevent_arp_spoofing is set to true.
This fix address that issue.

Change-Id: Ie8bfa873120378dcdcb9d43e307daa5d55c038f2
Closes-Bug: #1520255

8 years agoAdopt oslotest BaseTestCase as a base class for DietTestCase
Ihar Hrachyshka [Wed, 6 Jan 2016 12:54:00 +0000 (13:54 +0100)]
Adopt oslotest BaseTestCase as a base class for DietTestCase

This will make us more in line with other projects in terms of testing
API. It also allows to remove some duplicate code from base test classes
for Neutron, leaving just Neutron specific fixture setup there.

Note: we don't add a new dependency because the library is already used
in some of database functional tests through oslo.db base test classes.

Change-Id: Ifec6cce386d8b024605496026c8469200f3c002b
Closes-Bug: #1531484

8 years agoUtils: Add missing translation to exception
Gary Kotton [Thu, 7 Jan 2016 11:29:52 +0000 (03:29 -0800)]
Utils: Add missing translation to exception

Add a missing translation.

TrivialFix

Change-Id: I2a87704ea12800c377659d59b2ad623fcaf0c802

8 years agoUnify assertEqual for empty usages
lzklibj [Mon, 21 Dec 2015 09:11:56 +0000 (17:11 +0800)]
Unify assertEqual for empty usages

Update previous assertEqual(observed, *empty) usages to
assertEqual(*empty*, observed).

This patch aslo update hacking check for assertEqual with
empty types.

Change-Id: I981277618f92254a5beb9d3308a317d8c14e125c

8 years agoSR-IOV: Fix macvtap assigned vf check when kernel < 3.13
Moshe Levi [Tue, 8 Dec 2015 11:11:33 +0000 (13:11 +0200)]
SR-IOV: Fix macvtap assigned vf check when kernel < 3.13

when creating macvtap passthrough to SR-IOV VF in Kernel >= 3.13 an
upper_macvtap symbolic link is created. For Kernel < 3.13 the only
way to know it is by parsing the ip link show output and look for
macvtap[0-9]+@<vf ifname>.

This patch used the ip link show command to detects
macvtap assigned vf so that detection of macvtap assigned vf
will work on all kernels

Closes-Bug: #1523083
Change-Id: Icbc8d6af5c00d1453095e04dd779210dc7244c7f

8 years agoMerge "Separate the command for replace_port to delete and add"
Jenkins [Thu, 7 Jan 2016 04:50:55 +0000 (04:50 +0000)]
Merge "Separate the command for replace_port to delete and add"

8 years agoMerge "ovs_vhostuser: fix vhostuser_socket_dir typo"
Jenkins [Thu, 7 Jan 2016 01:37:36 +0000 (01:37 +0000)]
Merge "ovs_vhostuser: fix vhostuser_socket_dir typo"

8 years agoMerge "Remove openstack.common._i18n from Neutron"
Jenkins [Thu, 7 Jan 2016 01:37:11 +0000 (01:37 +0000)]
Merge "Remove openstack.common._i18n from Neutron"

8 years agoRemove references to model_base through models_v2
Carl Baldwin [Wed, 6 Jan 2016 23:08:20 +0000 (16:08 -0700)]
Remove references to model_base through models_v2

I saw a patch set [1] that was running in to circular imports and
removing these.  I thought it'd be better to remove them all in one
shot.

[1] https://review.openstack.org/#/c/261222/1/neutron/db/agents_db.py

Change-Id: If1a9ba3091ac99f01f73b98a7459358c3efd4dd5

8 years agoAllow get_unused_ip method to skip v6 and fix iter
Kevin Benton [Wed, 6 Jan 2016 20:48:28 +0000 (12:48 -0800)]
Allow get_unused_ip method to skip v6 and fix iter

Skip IPv6 subnets when looking for an unused IP in the
floating IP tests since floating IPs cannot be requested
with v6 addresses.

This also fixes the iterator for the non-allocation pool
case.

Closes-Bug: #1531706
Change-Id: Id0b2c28970ab61e45755818e3e0798daa4453ce7

8 years agoMerge "Revert "Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env""""
Jenkins [Wed, 6 Jan 2016 20:48:13 +0000 (20:48 +0000)]
Merge "Revert "Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env""""

8 years agoMerge "Introduce an API test for specified floating ip address"
Jenkins [Wed, 6 Jan 2016 20:45:05 +0000 (20:45 +0000)]
Merge "Introduce an API test for specified floating ip address"

8 years agoMerge "Don't snat traffic between fixed IPs behind same router"
Jenkins [Wed, 6 Jan 2016 20:44:39 +0000 (20:44 +0000)]
Merge "Don't snat traffic between fixed IPs behind same router"