15651 Commits

Author SHA1 Message Date
Jakub Libosvar
8ef52f5788 docs: Small Open vSwitch devref tweaks
- renames OpenVSwitch to Open vSwitch
 - fixes formating of ovs-vsctl commands
 - adds vlan tags to vlan aware vms plugging schemas

TrivialFix

Change-Id: I04b5ea13c708705a96e8ea7665b493ee152c7bbb
2016-08-19 16:56:52 +01:00
Jenkins
c96f48162a Merge "Broken extensions should not show up in the extension list" 2016-08-19 11:39:59 +00:00
Jenkins
bb263ff18f Merge "Relocate AddressScope DB model" 2016-08-19 10:35:21 +00:00
Jenkins
5a6b286c62 Merge "Revert "Publish segment id in port responses"" 2016-08-19 10:17:55 +00:00
Jenkins
dd962739b7 Merge "Fix bridge assertion error when times are equal" 2016-08-19 10:10:59 +00:00
Armando Migliaccio
af9ad0c35e Fix NoSuchOptError on identity config option lookup
Change 1afca56b059 moved a few options around and that
broke the Tempest API clients module. This patch adds
the logic to handle the change.

Closes-bug: #1614799

Change-Id: I5ef0e7cc79609ba9df31d6573fe935a6e8d837f4
2016-08-18 19:49:21 -07:00
Jenkins
94fc633124 Merge "Add agent-side driver scaffolding for trunk functionality" 2016-08-18 18:54:16 +00:00
Jenkins
547ab7e971 Merge "Update the homepage with developer documentation page" 2016-08-18 16:12:21 +00:00
Brian Haley
51ea9b10c7 Fix bridge assertion error when times are equal
Sysfs mtime has only a 4ms granularity, so sometimes t2 will
be equal to t1.  Change to use assertGreaterEqual() instead.

Change-Id: Id9a97dc3d5facbf66cd5c774a52f6a1b83712f33
Closes-bug: #1614380
2016-08-18 11:08:14 -04:00
Armando Migliaccio
e354599134 Add agent-side driver scaffolding for trunk functionality
The agent code is enhanced to allow the trunk agent-side counterpart
to be activated seamlessly by means or local registry notifications.
Some integration with the server side is provided by loading the
RPC agent-side skeleton. Basic unit testing provides some coverage.

More effective functional and system coverage will be provided once
everything comes together.

Partially-implements: blueprint vlan-aware-vms

Co-Authored-By: Adolfo Duarte <adolfo.duarte@hpe.com>
Change-Id: Id70553e8980593f99548a4d2b0a78355933f7c2c
2016-08-18 12:10:22 +00:00
Miguel Lavalle
5e3c284fba Revert "Publish segment id in port responses"
This reverts commit b35d7fa3cbcd68ef10b9c40a47c0698c7e0a2089.
Patchset set is reverted after deciding Nova can get the segment_id
from the subnet associated to the port

Change-Id: Idf4ba107bf6e1427c82ab5b6a5cea0dba9264699
2016-08-18 06:01:22 -05:00
Jenkins
ab1b3f9bed Merge "Deprecate implicit loading of service_providers from neutron_*.conf" 2016-08-18 10:51:20 +00:00
Jenkins
0f3008dd32 Merge "Enable ra on gateway when add gateway to HA router" 2016-08-18 06:49:28 +00:00
Jenkins
703486dbd0 Merge "Switch to pluggable IPAM implementation" 2016-08-18 04:51:56 +00:00
Jenkins
96d053a389 Merge "Add a callback registry event for the init process - before spawning" 2016-08-18 03:38:34 +00:00
Jenkins
129fffd5da Merge "Make callback manager Object Oriented friendly" 2016-08-18 03:35:21 +00:00
Jenkins
af06b78623 Merge "Raise 501 instead of 500 when updating meter-lebel and rule" 2016-08-18 03:33:26 +00:00
Jenkins
3485cc7d4f Merge "Adjust spacing in METADATA_PROXY_HANDLER_OPTS" 2016-08-18 03:30:52 +00:00
lilintan
6e4fe008f5 Update the homepage with developer documentation page
Change-Id: Ic47206905eda90d62d7ce77235e6ba27c1f21433
2016-08-18 10:33:26 +08:00
Mohit Malik
72a722e69d Relocate AddressScope DB model
Required to resolve cyclic import issue when integrating with Oslo
Versioned Object for AddressScope

Change-Id: If57e472c5827033f09a59d1f8d9359a3f241c17c
Partial-Bug: #1597913
2016-08-17 14:43:44 -07:00
Jenkins
b9169e34e3 Merge "Clean imports in code" 2016-08-17 14:56:46 +00:00
Hong Hui Xiao
347778a9f9 Enable ra on gateway when add gateway to HA router
Now the 'accept_ra' will only be configured when HA router change
state to 'master'. If the router gateway is added after router state
change, the gateway port in 'master' HA router will not be configured.

This patch will configure 'accept_ra' for the 'master' HA router.

Change-Id: Ice1f3e6e48597ea8c366e243c2ca1771ea9b7770
Closes-bug: #1585246
2016-08-17 05:50:53 -06:00
Kevin Benton
4d85336ec1 Make callback manager Object Oriented friendly
The callback manager was indexing callbacks based on
a callback ID generated from oslo utils reflection.
This presented two problems.

The first was that in py34 get_callable_name would use
__qualname__ which returns the class name the function
is defined on rather than the class of the object itself.
So two classes defined in the same module inheriting from
the same parent class could not both subscribe a method
defined on the parent.

The second more general problem is that two objects which
are instances of the same class cannot subscribe the same
method because they have the same ID.

This adds the hash of the method to the ID to prevent these
issues. The hash by itself could have been used but it's not
very user-friendly so the name is left on for nice log
messages.

Change-Id: Iff1ca8c4ddb58ca5907d21fa0de7f0f292b6fc0e
2016-08-17 10:17:14 +00:00
Jenkins
a915f2b690 Merge "Implement L3 Agent Extension Manager" 2016-08-17 10:05:29 +00:00
Pavel Bondar
625de54de3 Switch to pluggable IPAM implementation
This patch does unconditional switch from non-pluggable IPAM to
pluggable IPAM for all deployments during upgrade to Neutron.

Pluggable IPAM is enabled by pointing ipam_driver default to reference
driver. User who manually set ipam_driver in neutron.conf will continue
to use ipam_driver of their choice.

During upgrade data is migrated from non-pluggable IPAM tables to
pluggable IPAM tables using alembic_migration. Availability ranges
(IPAvailabilityRange) is no longer used to calculate next available ip
address, so migration for this table is not included.

Migration is covered with functional tests. Dataset with subnets,
allocation pools and ip allocations is loaded prior to migration.
Once migration is completed ipam related tables are checked
if data is migrated properly.

Built-in IPAM implementation becomes obsolete and is planned to be
removed in upcoming commits.

UpgradeImpact
Closes-Bug: #1516156
Change-Id: I1d633810bd16f1bec7bbca57522e9ad3f7745ea2
2016-08-17 03:12:32 -06:00
Jenkins
6449c40108 Merge "Hacking: add unit test for LOG.warn validations" 2016-08-17 05:26:37 +00:00
Jenkins
122a1fce12 Merge "Fix a spelling error" 2016-08-17 05:26:20 +00:00
Jenkins
62243c45b0 Merge "Fix test_router_add_interface_delete_port_after_failure" 2016-08-17 04:47:36 +00:00
Jenkins
43233cc6f4 Merge "Refactoring security group config options" 2016-08-17 04:36:21 +00:00
Jenkins
e3ca57875f Merge "Add RouterPort bindings for all HA ports" 2016-08-16 23:49:20 +00:00
Jenkins
793e572617 Merge "devref doc config option separation" 2016-08-16 21:54:07 +00:00
Jenkins
f40484cf4f Merge "l3_db: Make gw port in-use check overridable" 2016-08-16 21:49:48 +00:00
Steve Kipp
6babf3160b Adjust spacing in METADATA_PROXY_HANDLER_OPTS
This patch sets the spacing in the METADATA_PROXY_HANDLER_OPTS
from 5 to 4 to be consistent with python standards

Change-Id: I3a582c5e57abd2813c605ce58f7bcab8ce0af349
2016-08-16 13:07:47 -05:00
QunyingRan
58316f7a8c Add error informations for users when value is invalid in database
User can set bandwidth max-kbps or max-burst-kbps in QOS and
the value may be bigger than definiton in database. We need give
error information for users but throw exception in neutron server

Change-Id: Id18fbd2331a470dd175648e27890d766ead26871
Closes-Bug:1600708
2016-08-16 00:46:29 +00:00
Jenkins
85260a882c Merge "Check content type by completely match instead of partial match" 2016-08-15 20:21:24 +00:00
Jenkins
cc7f42a4d7 Merge "Refactoring config options for extension opts" 2016-08-15 20:20:37 +00:00
Jenkins
feb13c5791 Merge "Fix check_asserttruefalse syntax validator" 2016-08-15 18:04:40 +00:00
Jenkins
730da40778 Merge "Add debug option to verify iptables rules" 2016-08-15 18:04:23 +00:00
Jenkins
4fa371436d Merge "Fix potential problem in test_router_add_interface_port" 2016-08-15 16:58:02 +00:00
Nate Johnston
93a8dc3dbe Implement L3 Agent Extension Manager
Using the generalized agent extension mechanism, create an agent extension
manager in the L3 agent, so that the L3 agent can load agent extensions.

Co-Authored-By: Margaret Frances <margaret_frances@cable.comcast.com>
Implements: blueprint l3-agent-extensions
Needed-By: Iff506bd11b83d396305e631f3dd95d44cf38fd63

Change-Id: I6da92cb8b9fcbb603e120eababcf4ce711da3e30
2016-08-15 09:36:54 -04:00
Jenkins
e47da4edf5 Merge "Fixed neutron-db-manage without neutron/tests installed" 2016-08-15 13:00:43 +00:00
Jenkins
8f585aad54 Merge "Fix some spelling errors in net_helpers.py" 2016-08-15 10:38:51 +00:00
Ihar Hrachyshka
5925364c9a Fixed neutron-db-manage without neutron/tests installed
With 7c0f189309789ebcbd5c20c5a86835576ffb5db3 in tree, we made
neutron-db-manage require neutron/tests/tools.py installed. Some
distributions, like RDO, may split the python package into core package
and the one that contains python code needed for testing only (anything
under neutron/tests/), and hence don't guarantee that all setups have
neutron.tests package available.

This fix moves the import_module_recursively function from
neutron.tests.tools into neutron.common.utils because it has non-testing
use cases. All existing cases where we use the function switched to the
new location. The old symbol still works, though triggers a deprecation
warning, and will be removed in the next cycle.

Change-Id: Ia8d91a1704c894bc1f6cf14e6cdd971fab255b62
Closes-Bug: #1612959
2016-08-15 06:31:13 +00:00
Nguyen Hung Phuong
5454bcef34 Clean imports in code
In some part in the code we import objects. Openstack style
guideline recommends to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I54138598b2556c080b1c61753db505878a9391d0
2016-08-15 12:42:51 +07:00
Anh Tran
fb375bd7a4 Prevent duplicate SG rules in 'concurrent requests' case
Problem: The process of transaction is too short.
In case of concurrent requests, both requests can pass all tests
and going to write to database. Sometimes the transaction of first
request closed before the transaction of the second request has been
open, because of the above problem. So both of them can access the
latest data (revision number), then passing the StaleDataError and
writing to database successfully.

This patch moved the _check_for_duplicate_rules_in_db into transaction
to prevent race condition.

Change-Id: I9ff2bf830c0c9d1114833d33603622f447ee7ca2
Closes-bug: #1532696
2016-08-15 07:58:57 +07:00
Jenkins
4478987fbd Merge "Add support for Python 3.5" 2016-08-14 13:02:58 +00:00
Jenkins
c68f132b45 Merge "Adds a default reload callback to ProcessManager" 2016-08-14 12:19:41 +00:00
Jenkins
45f26d0cfe Merge "Add RPC layer for Trunk Plugin and driver plumbing" 2016-08-14 10:14:02 +00:00
Armando Migliaccio
0e1e93f5c4 Relax bound constraint for trunk parent ports
This patch revisits the is_bound() condition for ports that
are about to be used as parent in a trunk. The existing
logic checked that for a port to be bound it is either an
unbound compute port or it is associated to a host. In pratice
only the latter suffices.

Partially-implements: blueprint vlan-aware-vms

Change-Id: I1c2c877b5cc421e05d97c7f528546a6a2c14aa46
2016-08-13 15:36:23 +00:00
Jenkins
ca0d752d81 Merge "Introduce ovo objects for security groups" 2016-08-13 09:30:01 +00:00