]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoSubnetPoolsTest: Skip IPv6 tests appropriately
YAMAMOTO Takashi [Thu, 17 Sep 2015 23:28:34 +0000 (08:28 +0900)]
SubnetPoolsTest: Skip IPv6 tests appropriately

Rename a class variable so that it will be checked by the base class.

Certain tests were not being run correctly due to subclasses
incorrectly overriding a base class variable. This change names
the variable correctly in the subclasses to fix the problem.

Closes-Bug: #1497188
Change-Id: I97756b91cbec297ade7efcc8986a038a184b3a84

9 years agoMerge "Fix log statement to log correct variable first_ip"
Jenkins [Fri, 18 Sep 2015 06:31:18 +0000 (06:31 +0000)]
Merge "Fix log statement to log correct variable first_ip"

9 years agoMerge "Introduce kill_signal parameter to AsynProcess.stop()"
Jenkins [Fri, 18 Sep 2015 03:52:43 +0000 (03:52 +0000)]
Merge "Introduce kill_signal parameter to AsynProcess.stop()"

9 years agoMerge "ipam: Prevent none from being passed to delete"
Jenkins [Fri, 18 Sep 2015 00:56:50 +0000 (00:56 +0000)]
Merge "ipam: Prevent none from being passed to delete"

9 years agoIntroduce kill_signal parameter to AsynProcess.stop()
Jakub Libosvar [Thu, 17 Sep 2015 13:26:05 +0000 (13:26 +0000)]
Introduce kill_signal parameter to AsynProcess.stop()

All stop() calls of instances of AsyncProcess class were sending
hardcoded SIGKILL signal to its process. This patch leaves the default
behavior to SIGKILL but offers any number to be sent to kill command.

Note: Internal private methods also got a new parameter which is not
      appended. Given that those methods are private and thus not used
      outside of the class, we can afford it.

Change-Id: Ib7b0273c134d59c6a50173d4c2eb35761fcd3d62
Related-Bug: #1487548

9 years agoMerge "Delete unused file tests/unit/database_stubs.py"
Jenkins [Thu, 17 Sep 2015 01:55:41 +0000 (01:55 +0000)]
Merge "Delete unused file tests/unit/database_stubs.py"

9 years agoFix log statement to log correct variable first_ip
Aaron Rosen [Thu, 17 Sep 2015 01:34:37 +0000 (18:34 -0700)]
Fix log statement to log correct variable first_ip

Change-Id: I75b8caad184d8fde535689000fbe11ac188c8b77

9 years agoipam: Prevent none from being passed to delete
Aaron Rosen [Wed, 16 Sep 2015 22:50:21 +0000 (15:50 -0700)]
ipam: Prevent none from being passed to delete

Previously, it was possible for None to be passed to context.session.delete()
if a port was not found (usually a result of a concurrent delete). This
resulted in an UnmappedInstanceError. This is avoided now by calling
query.delete() directly which does not raise any exceptions.

Change-Id: I3b9f513308d90874ac8e8a7f6345697978d4920f
Closes-bug: #1496554

9 years agoMerge "No network devices on network attached qos policies"
Jenkins [Wed, 16 Sep 2015 22:49:26 +0000 (22:49 +0000)]
Merge "No network devices on network attached qos policies"

9 years agoMerge "Fix establishing UDP connection"
Jenkins [Wed, 16 Sep 2015 20:34:06 +0000 (20:34 +0000)]
Merge "Fix establishing UDP connection"

9 years agoMerge "Add QoS fullstack test"
Jenkins [Wed, 16 Sep 2015 20:27:15 +0000 (20:27 +0000)]
Merge "Add QoS fullstack test"

9 years agoMerge "Use tempest-lib's token_client"
Jenkins [Wed, 16 Sep 2015 20:25:41 +0000 (20:25 +0000)]
Merge "Use tempest-lib's token_client"

9 years agoMerge "ovsdb: Fix a few docstring"
Jenkins [Wed, 16 Sep 2015 20:25:28 +0000 (20:25 +0000)]
Merge "ovsdb: Fix a few docstring"

9 years agoMerge "Add IPv6 Address Resolution protection"
Jenkins [Wed, 16 Sep 2015 20:25:14 +0000 (20:25 +0000)]
Merge "Add IPv6 Address Resolution protection"

9 years agoMerge "Enable servicing lbaasV2 vip by DVR"
Jenkins [Wed, 16 Sep 2015 20:22:13 +0000 (20:22 +0000)]
Merge "Enable servicing lbaasV2 vip by DVR"

9 years agoMerge "QoS agent extension and driver refactoring"
Jenkins [Wed, 16 Sep 2015 14:42:04 +0000 (14:42 +0000)]
Merge "QoS agent extension and driver refactoring"

9 years agoMerge "Always return iterables in L3 get_candidates"
Jenkins [Wed, 16 Sep 2015 14:34:36 +0000 (14:34 +0000)]
Merge "Always return iterables in L3 get_candidates"

9 years agoDelete unused file tests/unit/database_stubs.py
Assaf Muller [Wed, 16 Sep 2015 14:21:41 +0000 (10:21 -0400)]
Delete unused file tests/unit/database_stubs.py

No usages in Neutron, vpnaas, lbaas or fwaas repos.

Change-Id: I64867eca23dd77e491c4624e8b35c90af23e8e4e

9 years agoNo network devices on network attached qos policies
Miguel Angel Ajo [Thu, 3 Sep 2015 13:40:12 +0000 (15:40 +0200)]
No network devices on network attached qos policies

Network devices, like internal router legs, or dhcp ports
should not be affected by bandwidth limiting rules.

This patch disables application of network attached policies
to network/neutron owned ports.

Closes-bug: #1486039
DocImpact

Change-Id: I75d80227f1e6c4b3f5fa7762b8dc3b0c0f1abd46

9 years agoMerge "Cleanup the fip agent gateway port delete routines"
Jenkins [Wed, 16 Sep 2015 11:16:23 +0000 (11:16 +0000)]
Merge "Cleanup the fip agent gateway port delete routines"

9 years agoMerge "Remove requirements.txt for the ofagent mechanism driver"
Jenkins [Wed, 16 Sep 2015 11:03:33 +0000 (11:03 +0000)]
Merge "Remove requirements.txt for the ofagent mechanism driver"

9 years agoUse tempest-lib's token_client
Ken'ichi Ohmichi [Wed, 16 Sep 2015 10:04:32 +0000 (10:04 +0000)]
Use tempest-lib's token_client

Now tempest-lib provides token_client modules as library and the
interface is stable. So neutron repogitory doesn't need to contain
these modules.
This patch makes neutron use tempest-lib's token_client and removes
the own modules for the maintenance.

Change-Id: Ieff7eb003f6e8257d83368dbc80e332aa66a156c

9 years agoFix establishing UDP connection
Jakub Libosvar [Thu, 13 Aug 2015 09:08:20 +0000 (09:08 +0000)]
Fix establishing UDP connection

Previously, in establish_connection() for UDP protocol data were sent
but never read on peer socket. That lead to successful read on peer side
if this connection was filtered. Having constant testing string masked
this issue as we can't distinguish to which test of connectivity data
belong.

This patch makes unique data string per test_connectivity() and
also makes establish_connection() to create an ASSURED entry in
conntrack table. Finally, in last test after firewall filter was
removed, connection is re-established in order to avoid troubles with
terminated processes or TCP continuing sending packets which weren't
successfully delivered.

Closes-Bug: 1478847
Change-Id: I2920d587d8df8d96dc1c752c28f48ba495f3cf0f

9 years agoMerge "Prevent full sync in dhcp_agent when possible"
Jenkins [Wed, 16 Sep 2015 05:16:15 +0000 (05:16 +0000)]
Merge "Prevent full sync in dhcp_agent when possible"

9 years agoovsdb: Fix a few docstring
YAMAMOTO Takashi [Wed, 16 Sep 2015 04:20:51 +0000 (13:20 +0900)]
ovsdb: Fix a few docstring

Change-Id: I53e1e21655b28fe5da60e58aeeb7cbbd103ae014

9 years agoRemove requirements.txt for the ofagent mechanism driver
fumihiko kakuma [Wed, 16 Sep 2015 02:52:59 +0000 (11:52 +0900)]
Remove requirements.txt for the ofagent mechanism driver

It is no longer used.

Related-Blueprint: core-vendor-decomposition
https://blueprints.launchpad.net/neutron/+spec/core-vendor-decomposition

Change-Id: Ib31fb3febf8968e50d86dd66e1e6e1ea2313f8ac

9 years agoMerge "Allow passing arbitrary ip route parameters to add/delete_route"
Jenkins [Wed, 16 Sep 2015 00:04:22 +0000 (00:04 +0000)]
Merge "Allow passing arbitrary ip route parameters to add/delete_route"

9 years agoMerge "Process user iptables rules before INVALID"
Jenkins [Wed, 16 Sep 2015 00:03:27 +0000 (00:03 +0000)]
Merge "Process user iptables rules before INVALID"

9 years agoMerge "Remove out-of-tree vendor AGENT_TYPE_* constant"
Jenkins [Wed, 16 Sep 2015 00:03:06 +0000 (00:03 +0000)]
Merge "Remove out-of-tree vendor AGENT_TYPE_* constant"

9 years agoMerge "Return exception when attempting to add duplicate VIP"
Jenkins [Tue, 15 Sep 2015 23:53:14 +0000 (23:53 +0000)]
Merge "Return exception when attempting to add duplicate VIP"

9 years agoAlways return iterables in L3 get_candidates
Kevin Benton [Fri, 4 Sep 2015 03:25:57 +0000 (20:25 -0700)]
Always return iterables in L3 get_candidates

The caller of this function expects iterables.

Closes-Bug: #1494996
Change-Id: I3d103e63f4e127a77268502415c0ddb0d804b54a

9 years agoPrevent full sync in dhcp_agent when possible
Sudhakar Babu Gariganti [Fri, 11 Sep 2015 09:23:27 +0000 (14:53 +0530)]
Prevent full sync in dhcp_agent when possible

If an exception occurs in sync_state method, we try for a full sync
even in the case where we have fewer networks to resync for.

This turns out to be pretty costly in scaled environments.

This patch addresses the above behavior by resyncing only for the
eariler set of failed networks.

Closes-Bug: #1495592

Change-Id: I069e992b3b7814370d409236b6a3c81a25829cc1

9 years agoMerge "Revert "AsyncProcess: try to kill tender""
Jenkins [Tue, 15 Sep 2015 17:13:28 +0000 (17:13 +0000)]
Merge "Revert "AsyncProcess: try to kill tender""

9 years agoAdd QoS fullstack test
Jakub Libosvar [Wed, 15 Jul 2015 10:46:35 +0000 (10:46 +0000)]
Add QoS fullstack test

Test the qos policy and rule CRUD lifecycle with port. Future plans are
to add similar testing with ports belonging to network with set qos
policy.

Change-Id: Iebe9b3e9d612d3533381a8cf4d0b9c587f8fda42

9 years agoMerge "sub_project_guidelines: Add richer documentation"
Jenkins [Tue, 15 Sep 2015 14:33:47 +0000 (14:33 +0000)]
Merge "sub_project_guidelines: Add richer documentation"

9 years agoQoS agent extension and driver refactoring
Moshe Levi [Mon, 10 Aug 2015 09:25:59 +0000 (12:25 +0300)]
QoS agent extension and driver refactoring

Moved some code common to all drivers into base
qos driver abstract class, so related bugfixes go all in one
place and we simplify the logic for every qos drivers.

Port/Policy mapping moved out to a separate class.

Support delete per rule_type or delete all rules.

Related-bug: #1486039

Co-Authored-By: Miguel Angel Ajo <mangelajo@redhat.com>
Partially-Implements: blueprint ml2-qos
Change-Id: Ia9d8638b9268b5aa8512cbb9d001413751f82649

9 years agoAdd IPv6 Address Resolution protection
sridhargaddam [Tue, 14 Jul 2015 16:18:06 +0000 (16:18 +0000)]
Add IPv6 Address Resolution protection

Similar to IPv4 arp protection support, this patch adds the necessary OVS
rules to prevent ports attached to agent from sending any icmpv6 neighbor
advertisement messages that contain an IPv6 address not belonging to the port.

For details please refer to "Figure 3. Attack against IPv6 Address Resolution"
http://www.cisco.com/web/about/security/intelligence/ipv6_first_hop.html

DocImpact
SecurityImpact

Closes-Bug: #1491690
Change-Id: I1f8311f1b9ae1be02afde3e9078e49c6da373a88

9 years agoRevert "AsyncProcess: try to kill tender"
Jakub Libosvar [Tue, 15 Sep 2015 11:52:03 +0000 (11:52 +0000)]
Revert "AsyncProcess: try to kill tender"

This change introduced bug 1495937.

This reverts commit 470a7d8a106a274e06fb1311c6738f333a98f59c.

Change-Id: I84fea4fdac71141da335ccd9e0d4c9d6174dfd86

9 years agoMerge "func: Don't use private method of AsyncProcess"
Jenkins [Tue, 15 Sep 2015 11:45:45 +0000 (11:45 +0000)]
Merge "func: Don't use private method of AsyncProcess"

9 years agoMerge "Remove unused ovs_lib method reset_bridge"
Jenkins [Tue, 15 Sep 2015 10:21:46 +0000 (10:21 +0000)]
Merge "Remove unused ovs_lib method reset_bridge"

9 years agoMerge "AsyncProcess: try to kill tender"
Jenkins [Tue, 15 Sep 2015 09:08:38 +0000 (09:08 +0000)]
Merge "AsyncProcess: try to kill tender"

9 years agoRemove out-of-tree vendor AGENT_TYPE_* constant
Cedric Brandily [Mon, 24 Aug 2015 20:24:10 +0000 (22:24 +0200)]
Remove out-of-tree vendor AGENT_TYPE_* constant

AGENT_TYPE_* constants[1] defines all agent types BUT the only vendor
one(AGENT_TYPE_NEC) is only used in out-of-tree networking-nec repo.
This changes removes out-of-tree AGENT_TYPE_NEC constant (dependant
change defines it in networking-nec repo).

[1] in neutron.extensions.portbindings

Change-Id: Ia80c33ee7970cfe167c2c9ca6d512f23561455a2
Closes-Bug: #1487598
Depends-On: I955fa48ee2120900e422bab57db250303c3d7bb4

9 years agofunc: Don't use private method of AsyncProcess
Jakub Libosvar [Mon, 14 Sep 2015 14:54:34 +0000 (14:54 +0000)]
func: Don't use private method of AsyncProcess

In functional test we simulate crash of AsyncProcess by calling
_kill_process(). This method is a private method and such usage
introduced a race where process was respawned prior to calling wait() of
killed process, leading to infinite wait on newly spawned process.

This patch adds manual send of kill and then active waiting for process
to be respawned, similarly like done with recent keepalived patch [1].

[1] https://review.openstack.org/#/c/222460/7/neutron/tests/functional/agent/linux/test_keepalived.py

Closes-Bug: #1477860
Change-Id: I1c91393304d65a0695311416ecc5b64fd549b192

9 years agoMerge "Fix TypeError caused by delete_agent_gateway_port()"
Jenkins [Tue, 15 Sep 2015 01:08:09 +0000 (01:08 +0000)]
Merge "Fix TypeError caused by delete_agent_gateway_port()"

9 years agoRemove unused ovs_lib method reset_bridge
lzklibj [Thu, 10 Sep 2015 18:37:47 +0000 (02:37 +0800)]
Remove unused ovs_lib method reset_bridge

Per [1] we are using a better way to keep tunnel connectivity,
so reset_bridge isn't used anymore. Bug in [2] was caused by
using method reset_bridge which will delete and recreate bridge.
For [1] makes method reset_bridge deprecated, it makes sense to
remove this method, and make [2] no longer produce.

[1] https://review.openstack.org/#/c/182920
[2] Related-bug: #1332450

Change-Id: I155f66a37b8d4081126467fe576e8315c2d5560c

9 years agoMerge "Fix query in get_l3_agent_with_min_routers"
Jenkins [Mon, 14 Sep 2015 21:59:13 +0000 (21:59 +0000)]
Merge "Fix query in get_l3_agent_with_min_routers"

9 years agoFix TypeError caused by delete_agent_gateway_port()
Brian Haley [Mon, 14 Sep 2015 20:12:18 +0000 (16:12 -0400)]
Fix TypeError caused by delete_agent_gateway_port()

A recent change used a keyword argument when it didn't need to,
correct it to fix the multinode DVR job.

End of typical traceback:

File "/opt/stack/new/neutron/neutron/api/rpc/handlers/l3_rpc.py",
in delete_agent_gateway_port(admin_ctx, network_id, host_id=host)

TypeError: delete_floatingip_agent_gateway_port() got multiple
values for keyword argument 'host_id'

Introduced in commit 639f1893dde0d393a97b29ca5309dba716831a7

Related-bug: #1495147

Change-Id: Id2522bc843bc7b089b7783d3f765900a50a0033f

9 years agoMerge "Fix typo: Large Ops, not Large Opts"
Jenkins [Mon, 14 Sep 2015 18:37:15 +0000 (18:37 +0000)]
Merge "Fix typo: Large Ops, not Large Opts"

9 years agoMerge "docstring fix"
Jenkins [Mon, 14 Sep 2015 18:36:55 +0000 (18:36 +0000)]
Merge "docstring fix"

9 years agoMerge "Stop logging deadlock tracebacks"
Jenkins [Mon, 14 Sep 2015 18:36:42 +0000 (18:36 +0000)]
Merge "Stop logging deadlock tracebacks"

9 years agoMerge "Fix RBAC filter query for negative case"
Jenkins [Mon, 14 Sep 2015 18:33:17 +0000 (18:33 +0000)]
Merge "Fix RBAC filter query for negative case"

9 years agosub_project_guidelines: Add richer documentation
Kyle Mestery [Thu, 10 Sep 2015 15:46:04 +0000 (15:46 +0000)]
sub_project_guidelines: Add richer documentation

Add additional documentation around releasing sub-projects.

Change-Id: I71f31b6b8ed085066491e181074b467435f8d66d
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Do not specify host for l2population topics"
Jenkins [Mon, 14 Sep 2015 16:50:23 +0000 (16:50 +0000)]
Merge "Do not specify host for l2population topics"

9 years agoFix typo: Large Ops, not Large Opts
Ryan Moats [Mon, 14 Sep 2015 16:29:28 +0000 (11:29 -0500)]
Fix typo: Large Ops, not Large Opts

Change-Id: I73e64e19275f002fcc2ae2e903611835bfd98f8a
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "Fix typo in error message in NetcatTester"
Jenkins [Mon, 14 Sep 2015 16:28:10 +0000 (16:28 +0000)]
Merge "Fix typo in error message in NetcatTester"

9 years agoFix query in get_l3_agent_with_min_routers
Ann Kamyshnikova [Mon, 14 Sep 2015 14:29:22 +0000 (17:29 +0300)]
Fix query in get_l3_agent_with_min_routers

For PostgreSQL if you're using GROUP BY everything in the SELECT
list must be an aggregate count(...) or used in the GROUP BY.

Closes-bug: #1495523

Change-Id: Ieb75d0666ec2f6d2e61686bf2bacea2b9ad6c521

9 years agoDo not specify host for l2population topics
Ilya Shakhat [Mon, 14 Sep 2015 12:43:05 +0000 (15:43 +0300)]
Do not specify host for l2population topics

When creating topics oslo.messaging automatically creates
topic with hostname suffix (e.g. topic.hostname), there's
no need to do this explicitly.

Change-Id: Ia396452e8deb2c8f10bbead936245eeece8066a6
Closes-Bug: #1495508

9 years agoAdd utility function for checking trusted port
Kevin Benton [Thu, 3 Sep 2015 17:01:40 +0000 (10:01 -0700)]
Add utility function for checking trusted port

Ports that have a device_owner that starts with 'network:'
are trusted in several places throughout the codebase. Each
of these did a startswith check on each field and it's not
immediately obvious why it's done.

This patch adds a utility function called 'is_port_trusted'
that performs the same check and makes it obvious what is
being done.

Change-Id: I542c753776d5cfb2fd736b25ea6e111867c89c89

9 years agoFix typo in error message in NetcatTester
Jakub Libosvar [Mon, 14 Sep 2015 09:19:14 +0000 (09:19 +0000)]
Fix typo in error message in NetcatTester

Change-Id: Ie00901b1dab6c0c5ad4ec0f0c437426afc60396e

9 years agodocstring fix
Saju Madhavan [Mon, 14 Sep 2015 08:33:28 +0000 (14:03 +0530)]
docstring fix

Change-Id: I35e44872c3dc7508d5991dc967bbceb22d6bea51

9 years agoAsyncProcess: try to kill tender
IWAMOTO Toshihiro [Fri, 11 Sep 2015 10:01:20 +0000 (19:01 +0900)]
AsyncProcess: try to kill tender

_kill_process kills processes with SIGKILL, which prevents the
processes' cleanup from running.  Issue SIGTERM first and wait a bit.

Change-Id: Ie7b94011bbd11b1d672c95e3be19bb3c84ef77ec
Closes-bug: 1494363

9 years agoMerge "Delete gateway conntrack state when remove external gateway"
Jenkins [Mon, 14 Sep 2015 05:05:20 +0000 (05:05 +0000)]
Merge "Delete gateway conntrack state when remove external gateway"

9 years agoEnable servicing lbaasV2 vip by DVR
Hong Hui Xiao [Thu, 10 Sep 2015 10:38:01 +0000 (06:38 -0400)]
Enable servicing lbaasV2 vip by DVR

Currently, the vip of lbaasV2 will not have l3 network with DVR.
This prevent the usercase of lbaasV2 + DVR. This patch aims to
enable servicing lbaasv2 vip by DVR.

Change-Id: I1b51550437994fbe78d4db904641d4d9fb75d82e
Closes-Bug: #1493809

9 years agoMerge "Switch scheduler drivers to load based schedulers"
Jenkins [Mon, 14 Sep 2015 00:20:02 +0000 (00:20 +0000)]
Merge "Switch scheduler drivers to load based schedulers"

9 years agoMerge "Remove an unnecessary extension check for rbac"
Jenkins [Mon, 14 Sep 2015 00:19:50 +0000 (00:19 +0000)]
Merge "Remove an unnecessary extension check for rbac"

9 years agoMerge "Don't log exceptions in GW update on router create"
Jenkins [Mon, 14 Sep 2015 00:19:38 +0000 (00:19 +0000)]
Merge "Don't log exceptions in GW update on router create"

9 years agoMerge "Handle ObjectDeletedError when deleting network ports/subnets"
Jenkins [Sun, 13 Sep 2015 07:22:34 +0000 (07:22 +0000)]
Merge "Handle ObjectDeletedError when deleting network ports/subnets"

9 years agoMerge "Fix BadRequest error on add_router_interface for DVR"
Jenkins [Sun, 13 Sep 2015 07:22:22 +0000 (07:22 +0000)]
Merge "Fix BadRequest error on add_router_interface for DVR"

9 years agoMerge "Tweak test_keepalived_respawns test logic"
Jenkins [Sun, 13 Sep 2015 06:43:25 +0000 (06:43 +0000)]
Merge "Tweak test_keepalived_respawns test logic"

9 years agoSwitch scheduler drivers to load based schedulers
armando-migliaccio [Fri, 11 Sep 2015 09:32:42 +0000 (02:32 -0700)]
Switch scheduler drivers to load based schedulers

Cloud deployed at scale most likely will use these scheduler
drivers because they allow a fairer resource allocation compared
to chance schedulers (which randomly place resources on the hosts).

Because of their importance, it's only wise to test them in
the gate on a continuous basis, so that we do not get surprised
by accidental regressions.

Rather than pushing this down through devstack-gate/project-config
patches, this chance alters the default of the scheduler
drivers, so that users can also pick these up out of the box.

This means that after an upgrade they would observe a change in
the scheduling behavior, if they relied on the default config.

DocImpact
UpgradeImpact

Closes-bug: #1494667

Change-Id: I5927914cb88eff66bc7a045340ff68cb8da95ad6

9 years agoFix BadRequest error on add_router_interface for DVR
armando-migliaccio [Sat, 12 Sep 2015 19:07:35 +0000 (12:07 -0700)]
Fix BadRequest error on add_router_interface for DVR

This operation for DVR is made of multiple steps, some of
which are not within the same DB transaction. For this
reason, if a failure occurs, the rollback will be partial.

This inconsistent state leads the retry logic to fail with
BadRequest, because the router is believed to be already
connected to the subnet.

To fix this condition, it is necessary to delete the port
should the DB deadlock occur.

Closes-bug: #1494114

Change-Id: Ia2a73d6f9d1e4746e761ad072d954e64267a3ad1

9 years agoFix missing value types for log message
Sergey Vilgelm [Sat, 12 Sep 2015 18:55:01 +0000 (21:55 +0300)]
Fix missing value types for log message

This patch add missing value types for some log message of exception.

Change-Id: Ie9f512bc804f0cd70df991b1910c975a2f9d6fcf
Closes-Bug: #1494574

9 years agoMerge "Reservations: Don't count usage if resource is unlimited"
Jenkins [Sat, 12 Sep 2015 15:31:57 +0000 (15:31 +0000)]
Merge "Reservations: Don't count usage if resource is unlimited"

9 years agoMerge "Remove an unused DVR function"
Jenkins [Sat, 12 Sep 2015 14:26:12 +0000 (14:26 +0000)]
Merge "Remove an unused DVR function"

9 years agoMerge "Don't setup ARP protection on LB for network ports"
Jenkins [Sat, 12 Sep 2015 09:14:38 +0000 (09:14 +0000)]
Merge "Don't setup ARP protection on LB for network ports"

9 years agoTweak test_keepalived_respawns test logic
armando-migliaccio [Fri, 11 Sep 2015 04:54:33 +0000 (21:54 -0700)]
Tweak test_keepalived_respawns test logic

This test initial design is problematic: it spawns keepalived,
it asserts the process is up, then it attempts to kill it.

However, this is when problems may arise:

a) it does so by using the disable method on the process - we
   should be more rude than that if we want to simulate a crash!

b) keepalived may be forking while it is starting and it is
   possible that for a moment the ppid changes and the process
   owner invoking the kill has no rights to kill the spawned
   process. This is the most plausible explaination I could find
   as to why kill returns 1 with no standard error

c) it does not verify that the process has indeed disappeared
   (what if the pm.disable didn't work?) - this means that the
   test can pass, and yet the monitor may not work.

Bottom line: this test relied on the correctness of the very code
that was meant to validate...and that's not cool. To this aim, we
wait for the process to be active, kill the process with a kill -9
and verify that the process after the kill is indeed different.

Closes-bug: #1490043

Change-Id: Idaf419a1464d9d0d75b9106a7acd5cd960a7c623

9 years agoMerge "Add RPC command and delete if last FIP on Agent"
Jenkins [Sat, 12 Sep 2015 07:16:12 +0000 (07:16 +0000)]
Merge "Add RPC command and delete if last FIP on Agent"

9 years agoMerge "Replace is_this_snat_host validation with internal function"
Jenkins [Sat, 12 Sep 2015 04:42:35 +0000 (04:42 +0000)]
Merge "Replace is_this_snat_host validation with internal function"

9 years agoMerge "Restore reservations in API controller"
Jenkins [Sat, 12 Sep 2015 03:46:53 +0000 (03:46 +0000)]
Merge "Restore reservations in API controller"

9 years agoMerge "Don't log deadlock or retry exceptions in L3 DB"
Jenkins [Sat, 12 Sep 2015 02:06:25 +0000 (02:06 +0000)]
Merge "Don't log deadlock or retry exceptions in L3 DB"

9 years agoMerge "Install sriov-agent.ini on 'setup.py install'"
Jenkins [Sat, 12 Sep 2015 00:54:19 +0000 (00:54 +0000)]
Merge "Install sriov-agent.ini on 'setup.py install'"

9 years agoMerge "Configure gw_iface for RAs only in Master HA Router"
Jenkins [Sat, 12 Sep 2015 00:51:37 +0000 (00:51 +0000)]
Merge "Configure gw_iface for RAs only in Master HA Router"

9 years agoMerge "ovs: don't use ARP responder for IPv6 addresses"
Jenkins [Fri, 11 Sep 2015 22:19:13 +0000 (22:19 +0000)]
Merge "ovs: don't use ARP responder for IPv6 addresses"

9 years agoMerge "Make ip address optional to add_route and delete_route"
Jenkins [Fri, 11 Sep 2015 21:46:34 +0000 (21:46 +0000)]
Merge "Make ip address optional to add_route and delete_route"

9 years agoMerge "Add list routes"
Jenkins [Fri, 11 Sep 2015 21:46:07 +0000 (21:46 +0000)]
Merge "Add list routes"

9 years agoReservations: Don't count usage if resource is unlimited
Salvatore Orlando [Fri, 28 Aug 2015 15:55:42 +0000 (08:55 -0700)]
Reservations: Don't count usage if resource is unlimited

If a resource is unlimited (ie: limit<0) then there is no need
to verify headroom for it. This also means that there no need for
counting it; therefore it is possible to save some DB operations
by skipping the count phase.

Change-Id: Ibe9ca8a1c29fb8ba12df187c25f8f9515968a54d
Related-blueprint: better-quotas

9 years agoRestore reservations in API controller
Salvatore Orlando [Tue, 25 Aug 2015 09:28:08 +0000 (02:28 -0700)]
Restore reservations in API controller

This patch restores the reservation logic in the API controller,
as the DB issues arising from the pymysql switch has been solved.

Change-Id: I98b40925fdceba13d6a2b5a4d0c5793aeb5cf077
Related-Bug: #1486134
Related-Blueprint: better-quotas

9 years agoMerge "Remove useless log from periodic_sync_routers_task"
Jenkins [Fri, 11 Sep 2015 19:32:36 +0000 (19:32 +0000)]
Merge "Remove useless log from periodic_sync_routers_task"

9 years agoovs: don't use ARP responder for IPv6 addresses
Ihar Hrachyshka [Fri, 11 Sep 2015 18:46:51 +0000 (14:46 -0400)]
ovs: don't use ARP responder for IPv6 addresses

ARP does not support IPv6 addresses, so when we try to apply the flow, it
fails, with all other flows deferred for the same transaction. It results in
random flow breakages, depending on the order of the bad flow in the
transaction.

Change-Id: I0ecf167653e5a7d0916e091e05050406a026a1e2
Co-Authored-By: Thomas Carroll <Thomas.Carroll@pnnl.gov>
Closes-Bug: #1477253

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 11 Sep 2015 17:24:10 +0000 (17:24 +0000)]
Merge "Updated from global requirements"

9 years agoInstall sriov-agent.ini on 'setup.py install'
Ihar Hrachyshka [Fri, 11 Sep 2015 14:32:06 +0000 (16:32 +0200)]
Install sriov-agent.ini on 'setup.py install'

The previous change [1] that split the configuration file into two pieces
missed the update of setup.cfg, so the file was not installed.

[1]: Ie1eda925e051f85d53ad9624d6617d095cf8c7be

Change-Id: Idcdc71b5614463fc0d81a8bc2d2833159be9e6c9
Related-Bug: #1489060

9 years agoConfigure gw_iface for RAs only in Master HA Router
sridhargaddam [Thu, 10 Sep 2015 16:14:13 +0000 (16:14 +0000)]
Configure gw_iface for RAs only in Master HA Router

For an HA Router which does not have any IPv6 subnets in the external network
and when ipv6_gateway is not set, Neutron configures the gateway interface of
the router to receive Router Advts for default route. In an HA router, only
the Master instance has the IP addresses while the Backup instance does not
have any addresses (including LLA). In Kernel version 3.10, when the last
IPv6 address is removed from the interface, IPv6 proc entries corresponding
to the iface are also deleted. This is however reverted in the later versions
of kernel code.

This patch addresses this issue by configuring the proc entry only for the
Master HA Router instance instead of doing it un-conditionally.

Closes-Bug: #1494336
Change-Id: Ibf8e0ff64cda00314f8fa649ef5019c95c2d6004

9 years agoRemove useless log from periodic_sync_routers_task
Ryan Moats [Fri, 11 Sep 2015 12:41:38 +0000 (07:41 -0500)]
Remove useless log from periodic_sync_routers_task

Logging that peridoic_sync_routers_task is starting with fullsync
False just adds noise to devstack logs.  Reposition the log
statement to indicate that the task is starting if it is going
to be doing real processing.

Change-Id: I73def1e20218b01c135769d0b8fbce449dad17ea
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "Add test to check that correct functions is used in expand/contract"
Jenkins [Fri, 11 Sep 2015 12:06:56 +0000 (12:06 +0000)]
Merge "Add test to check that correct functions is used in expand/contract"

9 years agoMerge "Don't setup ARP protection on OVS for network ports"
Jenkins [Thu, 10 Sep 2015 23:08:01 +0000 (23:08 +0000)]
Merge "Don't setup ARP protection on OVS for network ports"

9 years agoMerge "Check ICMP codes in range [0,255]"
Jenkins [Thu, 10 Sep 2015 22:13:02 +0000 (22:13 +0000)]
Merge "Check ICMP codes in range [0,255]"

9 years agoMerge "Add l2pop support to full stack tests"
Jenkins [Thu, 10 Sep 2015 22:08:19 +0000 (22:08 +0000)]
Merge "Add l2pop support to full stack tests"

9 years agoMerge "Add tunneling support to full stack tests"
Jenkins [Thu, 10 Sep 2015 22:07:46 +0000 (22:07 +0000)]
Merge "Add tunneling support to full stack tests"

9 years agoMerge "Descheduling DVR routers when ports are unbound from VM"
Jenkins [Thu, 10 Sep 2015 21:42:19 +0000 (21:42 +0000)]
Merge "Descheduling DVR routers when ports are unbound from VM"

9 years agoReplace is_this_snat_host validation with internal function
Swaminathan Vasudevan [Thu, 10 Sep 2015 20:48:46 +0000 (13:48 -0700)]
Replace is_this_snat_host validation with internal function

There is already a function to validate if it is an snat
host or not. So just use that function instead of additional
validation.

Change-Id: I004d94d1d4b632880ed289ccdc9bf45cffc0e095