13117 Commits

Author SHA1 Message Date
Jenkins
9ebc4f0453 Merge "make floating IP specification test robust to races" 2016-01-11 23:58:50 +00:00
Jenkins
2d0557aedc Merge "Make neutron-debug command follow cliff command convention" 2016-01-11 23:26:54 +00:00
Jenkins
fce9172f7b Merge "ML2: Simplified boolean variable check" 2016-01-11 23:26:35 +00:00
Jenkins
b275816c69 Merge "Remove unnecessary argument in limit manage" 2016-01-11 21:53:14 +00:00
Jenkins
9fa2411d21 Merge "Add a link of availability zone document into releasenote" 2016-01-11 21:35:31 +00:00
Oleg Bondarev
56eb877d25 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
2016-01-11 18:36:38 +03:00
Jenkins
e811983b2d Merge "Ensure that decomposed plugins do not break" 2016-01-11 14:41:20 +00:00
Jenkins
399a6f88dd Merge "Fix Security-rule's port should not set to 0 when Protocol is TCP/UDP" 2016-01-11 14:40:54 +00:00
Jenkins
ae69765be0 Merge "DVR: optimize check_ports_exist_on_l3_agent()" 2016-01-11 14:34:16 +00:00
Jenkins
c62e69c6c4 Merge "Remove check on dhcp enabled subnets while scheduling dvr" 2016-01-11 14:31:54 +00:00
Ravi Shekhar Jethani
8d2b15e423 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
2016-01-11 13:24:23 +00:00
Salvatore Orlando
0f9a607cf6 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
2016-01-11 04:07:34 -08:00
Jenkins
5def2dcd74 Merge "Updated from global requirements" 2016-01-11 07:49:26 +00:00
Kevin Benton
9390dde943 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
2016-01-10 23:18:15 -08:00
Oleg Bondarev
0a00205c2a Fix get_subnet_for_dvr() to return correct gateway mac
Fix filters to get the right gateway port for a subnet.
Wrong filters led to random port's mac being returned which may cause
side effects. See bug for details.

Closes-Bug: #1530179
Change-Id: I8368255f00ab3e9586c8ff28dfe6739541000810
2016-01-11 09:42:29 +03:00
OpenStack Proposal Bot
7022b2e278 Updated from global requirements
Change-Id: Ifdb68288c0b6538dee345e7b041891aab4910360
2016-01-10 14:36:11 +00:00
Kevin Benton
89f96e627f 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
2016-01-10 14:09:38 +00:00
Jenkins
19fa34afd1 Merge "Remove references to model_base through models_v2" 2016-01-10 13:43:40 +00:00
Jenkins
0399f8383f Merge "Simplify extension processing" 2016-01-10 11:19:24 +00:00
Gary Kotton
49d25b3992 portbindings: use constants for extension keys
Use the constants defined in the portbindings extension.

TrivialFix

Change-Id: I90c3deeae9018d4e5b23283f64657d9f5d5723c7
2016-01-10 00:42:53 -08:00
Sean M. Collins
24bfc35d3e Add README with links on how to create release notes
Change-Id: I7944d4ad8d53418d36a2cf894fd9120c672521bf
2016-01-09 16:31:55 -08:00
Jenkins
6c5ecdc0e6 Merge "devstack: don't enable qos service with the plugin" 2016-01-09 17:10:23 +00:00
Gary Kotton
584d960a93 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
2016-01-09 00:15:22 -08:00
Jenkins
aa9cc3f9da Merge "LBaaS tests code removal" 2016-01-09 07:49:54 +00:00
Jenkins
be13217325 Merge "HACKING: align the underline text and header" 2016-01-09 06:48:07 +00:00
Jenkins
8fd6456483 Merge "Provide pointer for ML2 extension manager to effective guide" 2016-01-09 04:50:42 +00:00
Jenkins
5eadcd9d75 Merge "DVR: Rename dvr_vmarp_table_update" 2016-01-09 04:50:21 +00:00
Jenkins
5659fe1e82 Merge "Fix uuid passing in disable_isolated_metadata_proxy" 2016-01-09 04:24:34 +00:00
Jenkins
700abe95be Merge "Refactor the subnetpools API tests" 2016-01-09 04:22:55 +00:00
Jenkins
0e755ea8f8 Merge "Utils: Add missing translation to exception" 2016-01-09 00:41:53 +00:00
Jenkins
0eed45d703 Merge "Fix incorrect classmethod declaration" 2016-01-08 21:20:57 +00:00
Assaf Muller
a6c157938a 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
2016-01-08 16:15:15 -05:00
Akihiro Motoki
c4aa41a25a 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
2016-01-09 03:38:19 +09:00
Swaminathan Vasudevan
3a6951befe 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
2016-01-08 17:54:56 +00:00
Swaminathan Vasudevan
6960cc133c 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
2016-01-08 17:53:23 +00:00
Hirofumi Ichihara
8daf493a7d Remove unnecessary argument in limit manage
Change-Id: I2a7a99c72f24cafef848806620667c14b655f83e
2016-01-08 17:41:28 +00:00
Jenkins
70cd83daf2 Merge "Add firewall blink + remote SG functional tests" 2016-01-08 15:54:47 +00:00
Jenkins
ca567fdab0 Merge "Add test cases to testing firewall drivers" 2016-01-08 15:54:07 +00:00
Jenkins
74d6c7332b Merge "select router with subnet's gateway_ip for floatingip" 2016-01-08 14:35:26 +00:00
Jenkins
fa6e77c0c4 Merge "Check missed ip6tables utility" 2016-01-08 14:29:51 +00:00
Jenkins
c139299903 Merge "Keep py3.X compatibility for urllib" 2016-01-08 12:17:45 +00:00
Jenkins
b6a2a659e4 Merge "Support rootwrap sysctl and conntrack commands for non-l3 nodes" 2016-01-08 11:59:08 +00:00
Jenkins
0d77401ceb Merge "Create a routing table manager" 2016-01-08 11:43:31 +00:00
Jenkins
c6dc0022de Merge "DVR: Rename dvr_update_router_addvm function" 2016-01-08 08:06:04 +00:00
Jenkins
c676c5f6cf Merge "SR-IOV: Fix macvtap assigned vf check when kernel < 3.13" 2016-01-08 08:03:52 +00:00
Jenkins
e534c88452 Merge "fix call which is only specific to enhanced_rpc" 2016-01-08 07:21:15 +00:00
caoyue
adf595c3cf remove openstack-common.conf
We don't sync from oslo-incubator, so don't need this file any more.

Change-Id: Ib30f681ccd9177c45d2c17d28b4a46ac5462df7c
2016-01-08 12:58:59 +08:00
Jenkins
fd4be32712 Merge "Fixing the deprecated library function." 2016-01-08 04:08:14 +00:00
Jenkins
5a299de6ca Merge "Unify assertEqual for empty usages" 2016-01-08 04:07:36 +00:00
Jenkins
3082949cff Merge "Avoid duplicating tenant check when creating resources" 2016-01-08 03:56:28 +00:00