12889 Commits

Author SHA1 Message Date
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
Jenkins
a6547e9cf0 Merge "Change log level from error to warning" 2015-12-28 19:20:18 +00:00
Jenkins
f7e2a4080c Merge "Allow to control to use constraint env for functional jobs" 2015-12-28 12:12:39 +00:00
ChangBo Guo(gcb)
06174a41e4 Trival: Remove unused logging import
Change-Id: I13298e642f25c9f70dcff9b1e056b418edf0a461
2015-12-26 12:49:56 +08:00
Jenkins
550ab90c1b Merge "Add tests that constrain db query count" 2015-12-25 16:34:32 +00:00
Akihiro Motoki
477b390b32 Allow to control to use constraint env for functional jobs
VPNaaS functional tests now use dsvm-functional instead of
*-constraints. Always assuming *-constraints breaks the functional
jobs which is not run in a constrainted environment yet.

Paritial-Bug: #1529027
Change-Id: I3a4f1d61d13f1e444f7624d68d121d04d81eb724
2015-12-25 23:40:22 +09:00
Jenkins
f95dce7785 Merge "Correct state_path option's help string" 2015-12-25 04:52:54 +00:00
Jenkins
904cdc723b Merge "Ignore non rules related qos_policy changes" 2015-12-24 09:00:54 +00:00
Jenkins
1a74e569f2 Merge "dibbler: fix import order" 2015-12-24 08:17:49 +00:00
zoukeke@cmss.chinamobile.com
2631a495d8 Change log level from error to warning
The service respawning action of ProcessMonitor is normal handling. So
the log level in external_process.py should not be error.

Closes-Bug: #1528850
Change-Id: Ie335f521b09310a577eb4fb03946dfba484eef61
2015-12-24 12:51:26 +08:00
Jenkins
1a0cbdff78 Merge "Return availability_zone_hints as list when net-create" 2015-12-24 04:12:53 +00:00
Jenkins
bf9e4133eb Merge "Add address scope to floating IPs in RPC response to L3 agent" 2015-12-24 00:07:41 +00:00
Jenkins
6dc9a79579 Merge "reject leading '0's in IPv4 addr to avoid ambiguity" 2015-12-23 23:04:40 +00:00
Jenkins
d6287bd5c5 Merge "Add constant to L3 extension for floating ips" 2015-12-23 21:38:35 +00:00
Jenkins
623a2ff0d8 Merge "API: _validate_ip_address should not raise an exception" 2015-12-23 19:42:48 +00:00
Miguel Lavalle
8f4eb2d38f Add constant to L3 extension for floating ips
Add a constant string to the L3 extension to access floating ips in request and
response dictionaries

Change-Id: I161ab583f4eca3a8f0ddda1dd533780591e3423d
2015-12-23 18:34:57 +00:00
Gary Kotton
47a8518e49 dibbler: fix import order
The commit 4b329c345c7820ff12bf25a91228cdfbf99500df added the file
and the imports did not adhere to the existing conventions.

Third party imports should be grouped together.

In addition to this it removes an unncesary new line.

TrivialFix

Change-Id: Ieeb4d20887ba8e90ea4f7850101b97ccd6e86658
2015-12-23 10:34:21 -08:00
Carl Baldwin
02439b6730 Add address scope to floating IPs in RPC response to L3 agent
The L3 agent needs to know the address scope of the fixed ip of each
floating ip because floating ips are a way to cross scope boundaries.
Without the scope information, there could be ambiguity and no way to
know which scope to send it to.

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

Change-Id: Id9f8c12954a6efbf4d9b99c011652eefbe5f5145
Partially-Implements: blueprint address-scopes
2015-12-23 10:16:15 -07:00
Jenkins
c429ee18b6 Merge "Run functional gate jobs in a constrained environment" 2015-12-23 16:35:14 +00:00
Irena Berezovsky
aee20b968a Ignore non rules related qos_policy changes
QoSAgentExtension should invoke QoSAgentDriver
to reflush qos policy rules only if there is any rules related change.
QoS policy changes, such as description change, should not cause
reconfiguration of the qos policy rules.

Closes-Bug: #1509232
Change-Id: I036b0449c7b5521adeb32602a0c0e6cf2d27510a
2015-12-23 16:06:26 +00:00
Jenkins
a5b22858b8 Merge "DVR: Remove get_port call from dvr_update_router_addvm" 2015-12-23 12:33:05 +00:00
Jenkins
de7e9343bd Merge "update docstring for get_ports_on_host_by_subnet" 2015-12-23 11:44:00 +00:00
Jenkins
0bb97acca2 Merge "XenAPI: Fix netwrap to support security group" 2015-12-23 03:46:38 +00:00
Jenkins
ce703f7b91 Merge "Force L3 agent to resync router it could not configure" 2015-12-23 03:46:21 +00:00
armando-migliaccio
fce50f3beb Run functional gate jobs in a constrained environment
This patch modifies the gate hooks to run jobs with upper constraints.

Change-Id: I9eb1eb8e61381e9bb45678af8a24fa88a99e2c8f
2015-12-22 19:31:59 -08:00
lzklibj
044c04fb5d update docstring for get_ports_on_host_by_subnet
This patch updates docstring for get_ports_on_host_by_subnet, to
tell that the method will only get dvr serviced ports, not all ports
for given subnet and host.

Change-Id: I85ea5a9e37b6c894f7d51e73c10143b208a29f0e
2015-12-23 11:28:50 +08:00
Jenkins
455fee6b89 Merge "Updated from global requirements" 2015-12-23 02:54:32 +00:00
YanXingan
4082f729c9 Correct state_path option's help string
Make it consistent with neutron/common/config.py

Change-Id: If7a57247f65280db9dced69068f8c8f5d7e243d5
2015-12-23 10:24:13 +08:00
Jenkins
a3b47c475a Merge "Restore _validate_subnet/uuid_list not to break subproject gates" 2015-12-23 01:50:40 +00:00
OpenStack Proposal Bot
e1115a7de7 Updated from global requirements
Change-Id: I3782e12d497174fa30394f7d0e70d944f992d45f
2015-12-23 00:34:19 +00:00
Jenkins
b600129553 Merge "Don't raise if polling manager is running when stopped" 2015-12-22 21:00:23 +00:00
Jenkins
38fa3ce848 Merge "DVR:Fix _notify_l3_agent_new_port for proper arp update" 2015-12-22 11:14:54 +00:00
Akihiro Motoki
b147f60f9a Restore _validate_subnet/uuid_list not to break subproject gates
https://review.openstack.org/#/c/258867/ removed
_validate_subnet_list and _validate_uuid_list.
_validate_subnet_list is being used in VPNaaS and VPNaaS gate
is now broken. We need to remove validators more carefully
because subprojects may use them.
This commit restores them once.

Change-Id: I9c40b9d67a8364f698cc9bf604e4e1f4caea413e
Closes-Bug: #1528435
2015-12-22 19:22:30 +09:00
Jenkins
fb8200978f Merge "Add abstractmethod to FirewallDriver abstract class" 2015-12-22 09:45:42 +00:00
Jenkins
c4e1402e62 Merge "Add functional test for availability_zone support" 2015-12-21 22:16:07 +00:00
Swaminathan Vasudevan
dcbae504da DVR: Remove get_port call from dvr_update_router_addvm
The dvr_update_router_addvm un-necessarily calls the
get_port to retreive the port dict, even though the port
dict is already passed in.

So this patch will remove the get_port call.

Change-Id: Ib893024ef0cf811497f077f5ae9d3965ea19f288
2015-12-21 13:36:58 -08:00
Jenkins
8a878219b3 Merge "Add notes on loading strategies for ORM relationships" 2015-12-21 21:31:37 +00:00
Swaminathan Vasudevan
b223452e68 DVR:Fix _notify_l3_agent_new_port for proper arp update
Now with notifications coming from ml2 plugin on port create
and port update, it is worth fixing the existing _notify_
l3_agent_new_port for proper arp update and router scheduling.

Previously we have been sending arp update and calling router
scheduling for every update notification for service ports,
but now we can take necessary action only when required, since
the fix to update the arp and router scheduling was recently
done by sending the port info for every new port created.

When _notify_l3_agent_port_update is triggered, we check if the
original port host binding exists and if there is a change in
host binding with respect to the new port, then we go ahead and
reschedule the router on the new host and flush the arp entry.

Related-Bug: #1524020

Change-Id: Ifda623d5413b72bf80f38fba5c12a05a88bb7de5
2015-12-21 13:30:39 -08:00
Kevin Benton
4885ef4885 Add tests that constrain db query count
This patch adds unit tests to ML2 and L3 that ensure that the
number of DB calls during list operations for ports, networks,
subnets, routers, and floating IPs remains constant regardless
of the number of ports.

These will prevent changes from slipping in that result in
a separate DB query for each object in a list operation
(for changes to the extensions used by ML2 and the DVR plugin).

Related-Bug: #1525295
Related-Bug: #1513782
Related-Bug: #1525423
Related-Bug: #1525740
Related-Bug: #1526644

Change-Id: I1958fc7c318bbf73238a3ad5be133fa7800c8290
2015-12-21 11:54:38 -08:00
Jenkins
aea286df77 Merge "Corrected wrong ethertype exception message" 2015-12-21 17:10:17 +00:00
Jenkins
72f6b99211 Merge "Remove duplicated code in attribute.py" 2015-12-21 17:08:38 +00:00
rossella
9783050e3e Don't raise if polling manager is running when stopped
AsyncProcess.stop() will raise if the process we are trying
to stop is not running. Some functional tests sporadically
fail because in the clean up the polling manager is stopped
without checking if it's still running. Add an except
in InterfacePollingMinimizer.stop() to avoid raising an
exception when the monitor is not running.

Change-Id: Iec8f5039ae5b830836564a1a402ad3e4ba38935d
Closes-bug: #1525856
2015-12-21 15:51:48 +00:00
Jenkins
252596cbed Merge "Use the constant HOST_ID instead of 'binding:host_id'" 2015-12-21 14:38:49 +00:00
Jenkins
c36b8df699 Merge "Correct return values for bridge sysctl calls" 2015-12-21 12:55:36 +00:00
Dariusz Smigiel (dasm)
e9ee5bd308 Add abstractmethod to FirewallDriver abstract class
FirewallDriver is abstract base class but do not have abstractmethods.
Updated methods to correspond with use-case of class.

Closes-bug: #1119119
Change-Id: I4b27b27d66c0b89cd9b65541cc1703103a2b00d2
2015-12-21 10:31:25 +01:00
Sreekumar S
be14e90541 Corrected wrong ethertype exception message
This patch resolves the issue where wrong message was being
shown when ethertype input parameter was not amongst one of
the types supported. New message made akin to other input
parameters like 'protocol'.

Change-Id: I5636f3582c9d9877dad4d091a374284b656923f4
Closes-Bug: #1508106
2015-12-21 13:13:10 +05:30
Jenkins
aa285ff82c Merge "Misspelling in message" 2015-12-20 21:20:30 +00:00
hgangwx
fb288a1189 Misspelling in message
Misspelling in the message: "Duplicate adddress detected"
    Should be "Duplicate address detected"
    Totally 1 occasion in Neutron base code.

Change-Id: I95adccffd80763cf9ab171b29e6812b821373b6e
2015-12-21 02:15:15 +08:00
Jenkins
7537d3286c Merge "Cleanup all the release notes" 2015-12-20 14:15:56 +00:00
Gary Kotton
19de679e8a Use the constant HOST_ID instead of 'binding:host_id'
This patch makes use of the constant defined in the extension.
In addition to this having value of debing defined in one place it
also enables the caller to understand that the portbindings
extension is required.

Note: the constant is not used in the API tests. This has import
issues so it is not relevant.

TrivialFix

Change-Id: I7bfe2528dbbd8017ddbdcf949dbb6264ce1eb5d8
2015-12-20 14:00:29 +00:00