16350 Commits

Author SHA1 Message Date
Jenkins
bc0146e350 Merge "Lower concurrency on rally port job" 2016-10-05 02:28:44 +00:00
Jenkins
b906aa99b0 Merge "Refactoring config options for ml2 plugin drivers" 2016-10-04 19:53:52 +00:00
Jenkins
431e4c574a Merge "Refactoring config options for l3 ha agent opts" 2016-10-04 17:17:29 +00:00
Jenkins
b46571c8b8 Merge "Darek (@dasm) is our new release liaison for Ocata" 2016-10-04 16:24:38 +00:00
Jenkins
d21a2dcd2c Merge "Fix _list_availability_zones for PostgreSQL" 2016-10-04 16:22:37 +00:00
Jenkins
4e33f2516e Merge "Relocate SegmentHostMapping DB model" 2016-10-04 15:26:51 +00:00
Jenkins
a5098dfb45 Merge "Relocate L3HARouter DB model" 2016-10-04 14:59:42 +00:00
Jenkins
b6fb169242 Merge "Don't try to delete non-existent namespace" 2016-10-04 11:37:23 +00:00
Ann Kamyshnikova
5b9fe3494a Fix _list_availability_zones for PostgreSQL
For PostgreSQL  _list_availability_zones crashes if you're using
GROUP BY without object id. Use with_entities to use group_by
correctly.

Closes-bug: #1616793

Change-Id: Ibc09666bc5863a1980acd0a34d6545841a93a481
2016-10-04 14:37:08 +03:00
Jenkins
f628f6c375 Merge "Fix the 'port_id' attribute not exist error" 2016-10-04 04:12:32 +00:00
Jenkins
8556a4f08c Merge "Remove deprecation warning for l3_agent_scheduler" 2016-10-03 23:44:14 +00:00
chen, hao
19af726e39 Fix the 'port_id' attribute not exist error
Change-Id: Ie9e42771788d8a20572cb650b15edb95923dd426
Closes-Bug: #1629484
2016-10-03 12:09:40 -07:00
Jenkins
571e873427 Merge "Make HenryG the Magnificent responsible for 'oslo' LP tag" 2016-10-03 18:21:08 +00:00
sindhudevale
f9b1f0906c Relocate L3HARouter DB model
As there would be issue of circular imports while
implementation of Oslo-Versioned Objects for L3HArouter which has
db models definition and mixins in same file, this patch will
move L3HArouter models into a separate module.

Change-Id: I44e638fb4c19a2bdd513b67baeb7e6a2acc72d2f
Partial-Bug: #1597913
2016-10-03 11:48:17 -05:00
Jenkins
b516691490 Merge "Relocate Router Extra Attributes DB Model" 2016-10-03 15:37:31 +00:00
John Schwarz
f327aa6750 Remove deprecation warning for l3_agent_scheduler
Change Idef2fe3e16b245da849e2d29c5578e5f5d081dc4 relocated the
RouterL3AgentBinding model, but the last rebase didn't change all the
references of this model - there was one left.

Change-Id: Id48d48413ecc2f55fc889b8d19a6760c16434d96
Partial-Bug: #1597913
2016-10-02 17:22:49 +03:00
Jenkins
0c76de8d01 Merge "Relocate router route DB model" 2016-10-01 17:37:40 +00:00
Jenkins
ad82f1f54f Merge "Remove old oslo.messaging transport aliases" 2016-10-01 15:29:51 +00:00
Aradhana Singh
62fd09afc7 Refactoring config options for ml2 plugin drivers
Refactoring neutron ml2 drivers configuration options to be in
neutron/conf/plugins/ml2/drivers. This would allow centralization of
all configuration options and provides an easy way to import.

Change-Id: I825bfed769bff92de010733b16f4a4b5171a052c
Partial-Bug: #1563069
2016-09-30 18:03:28 -05:00
Aradhana Singh
2823c2e569 Refactoring config options for l3 ha agent opts
Refactoring l3 ha agent options to be in neutron/conf/agent/l3.
This would allow centralization of all configuration options and
provides an easy way to import.

Partial-Bug: #1563069
Change-Id: I2d6bd6beb0d1658baf88c49b954d2db3136e0c8d
2016-09-30 15:00:42 -05:00
Aradhana Singh
cf6d700390 Relocate SegmentHostMapping DB model
This patch relocates SegmentHostMapping db model to neutron/db/models.

Partial-Bug: #1597913

Change-Id: I630e5c42f9ab781ba6565cdf0f780bf78c2b5dc7
2016-09-30 12:59:29 -05:00
Jenkins
e87b3faf34 Merge "TestSanityCheck: drop test tables during cleanup" 2016-09-30 17:51:12 +00:00
Jenkins
992c006285 Merge "fullstack: VLAN aware VMs test" 2016-09-30 16:36:42 +00:00
Shashank Kumar Shankar
22b4f037dd Relocate Router Extra Attributes DB Model
As there would be issue of cyclic imports while the implementation
of Oslo-versioned Objects for Router Extra Attributes which has DB
models definition in same file, this patch will move Router Extra
Attributes model.

Change-Id: I8c90e35ef08ef74fb5309707673796e587a7289e
Partial-Bug: #1597913
2016-09-30 15:59:38 +00:00
Ihar Hrachyshka
8ad62fe751 Remove old oslo.messaging transport aliases
Those are remnants from the oslo-incubator times. Also, oslo.messaging
deprecated [1] transport aliases since 5.2.0+ that is the minimal
version supported for stable/newton. The patch that bumped the minimal
version for Neutron landed 3 months+ ago, so we can proceed ripping
those aliases from the code base.

[1] I314cefa5fb1803fa7e21e3e34300e5ced31bba89

Change-Id: I9e66140ad0b10c50e216c78e4914c98313cada05
Closes-Bug: #1424728
2016-09-30 14:13:19 +00:00
sindhudevale
a53a4d9464 Relocate router route DB model
As there would be issue of cyclic imports while implementation of
objects for router route  which has db models definition and mixins
in same file, this patch will refactor router route models.

Change-Id: I6b71ab19cc7184ecbcde8808b95ef838379f0a39
Co-Authored-By: Victor Morales <victor.morales@intel.com>
2016-09-30 09:58:02 -04:00
Jenkins
ecd43d2e38 Merge "Relocate external network db models" 2016-09-30 13:38:44 +00:00
Jenkins
c7610950f7 Merge "Relocate ProviderResourceAssociation DB models" 2016-09-30 13:38:17 +00:00
Jenkins
fa72a58a72 Merge "Relocate Geneve DB models" 2016-09-30 13:24:56 +00:00
Jenkins
47601b38ba Merge "Introduce ovo objects for networks" 2016-09-30 11:41:06 +00:00
Jenkins
90eaf71ba1 Merge "Introduce ovo objects for ports" 2016-09-30 11:38:25 +00:00
Jenkins
9d9d592d72 Merge "Relocate Provisioning Block DB Model" 2016-09-30 09:05:10 +00:00
Jenkins
ea7abe7bdb Merge "Relocate RouterL3AgentBinding DB model" 2016-09-29 23:43:30 +00:00
Jenkins
eefe0a919d Merge "Schedulers: use consistent plugin, context args" 2016-09-29 22:24:26 +00:00
sindhudevale
e1a832dad8 Relocate Geneve DB models
To avoid cyclic imports for OVO work.

Change-Id: Iebd5a44d2195276e92111cb8964b90fc2955e2de
Partial-Bug: #1597913
2016-09-29 15:48:31 -05:00
Ihar Hrachyshka
438d4a83b0 TestSanityCheck: drop test tables during cleanup
The tests were creating tables in the memory but were not cleaning them
up, making them clash on attempt to create floatingips table.

Change-Id: If28ef4ce76cd36e7240d106b75e43d16f43e2c16
Closes-Bug: #1629347
2016-09-29 20:13:01 +00:00
Jenkins
ec158688f4 Merge "Relocate VlanAllocation DB model" 2016-09-29 19:16:56 +00:00
Manjeet Singh Bhatia
276015788a Relocate external network db models
This patch will relocate external network db models
and separate it from mixins for OVO implementation.

Change-Id: I83e2c7bbab3bd59cc9d2af71c66c0662c7724ecc
Partial-Bug: #1597913
2016-09-29 17:51:39 +00:00
Jenkins
3285afd2a4 Merge "Relocate Metering DB models" 2016-09-29 17:34:39 +00:00
Jakub Libosvar
f0439a04ad fullstack: VLAN aware VMs test
Patch tests basic life-cycle of a trunk associated with a port. Test
creates a trunk with one subport - this tests interaction between
agent and ovsdb handler that calls via RPC to server.
Later a new subport is added which tests RPC interaction between
server and agent. Then deletes the first created subport. Finally trunk
is removed and checked that no patch ports remain on the integration
bridge.

Future work:
 - Run this test with linuxbridge
 - Test re-using port associated with trunk.
 - Test re-using subports.
 - Test with OVS firewall.

Partially-implements: blueprint vlan-aware-vms
Change-Id: Ie79a010e6751c1f1c2be5b1bf52511b9e100ad20
2016-09-29 13:23:39 -04:00
Artur Korzeniewski
94ee8bc306 Introduce ovo objects for networks
Those objects are intentionally not integrated into the database code so
far. This is to quicken access to their definitions to implement
push-notifications for networks.

Segments are part of the network object. Since we need to reduce the
number of SQL queries executed per resource, and we want to include
segmentation information for networks, Network model was extended with
segments relationship that makes the information available on every
network resource fetch from the database. This change required some
change in test_dhcp_agent_scheduler to expire a session used in the
tests to avoid obsolete segment state to be reused to validate
scheduling.

This implementation of the object is not complete for the job of
updating the resource in database. For example, tags are not yet exposed
on the object; also attributes like availability_zones, or external
network attributes, are not covered. Those attributes are hopefully
needed on server side only, so until we adopt the object for server
side, it should be ok to live without them.

Another database related thing still missing in this patch is lack of
RBAC support for the object. To complete this support,
a real get_bound_tenant_ids should be put onto the object, instead of
the current no-op stub.

This patch also includes some rearrangements that simplified the work.
Specifically, all network related objects are consolidated in the
neutron.objects.network module, instead of being scattered through the
code base. Also, some setup code from test_policy relevant to RBAC was
moved into the base test class so that it can be utilized by other RBAC
enabled objects, like network.

Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
Partially-Implements: blueprint push-notifications

Co-Authored-By: Victor Morales <victor.morales@intel.com>
Change-Id: I5160d0ab9e8042c356229420739db0ce42842368
2016-09-29 15:36:47 +00:00
John Schwarz
698a8f0348 Schedulers: use consistent plugin, context args
In the l3_agent_scheduler.py file, some functions accept both the
'plugin' and 'context' argument. However, some functions expect
'context, plugin' (context first) and some functions expect
'plugin, context' (context last). I'm a real nit-picker and this
bothered me for a while, so here's a fix :)

Since the base scheduler class expects 'plugin, context', some functions
couldn't be changed to accept the other variation. Instead, context will
always be last. Also, modified unit tests to make sure they test.

This also fixes an odd-ordering in one of the dhcp scheduler's private
functions.

Change-Id: I825e108170a29d5ecaa0f0883bb0a171b5fdb895
2016-09-29 14:07:24 +00:00
Victor Morales
286af7c3f0 Relocate ProviderResourceAssociation DB models
This patch will separate ProviderResourceAssociation db models from
mixins for Oslo-Versioned Objects implementation work.

Change-Id: If650e0f6bdc41d175ba8be646cd043c875894ed7
Partial-Bug: #1597913
2016-09-29 08:33:56 -05:00
Jenkins
727c79f9f6 Merge "Include entity in provisioning block logs" 2016-09-29 08:06:11 +00:00
Jenkins
99b8b8bf0a Merge "tests: Move testtools to 3rd party libraries section" 2016-09-29 06:50:59 +00:00
Ihar Hrachyshka
dcd78423aa Introduce ovo objects for ports
Those objects are intentionally not integrated into the database code so
far. This is to quicken access to their definitions to implement
push-notifications for security groups and ports.

The object embeds segmentation information in addition to what's
available through the model. Specifically, binding_levels field exposes
all ml2 binding levels, that from their side load corresponding network
segment object. The order for level objects in binding_levels list field
is guaranteed to be in the order of level. So the consumers can eg.
access the bottom binding info with:

  port_obj.binding_levels[-1].segment

For PortBindingLevel object, we want to expose segmentation info. This
is achieved through a 'segment' ObjectField. The database model itself
contains segment_id too. There is no reason though to expose it for
Level object in two places (one as a model field, another one through
the ObjectField), so we avoid adding ID field. The base class that
handles loading for ObjectField based synthetic fields was assuming that
objects always have a field per model attribute, so it needed a slight
adjustment to support this case, where we extract foreign_keys
attributes from the model itself if the field is not present on the
object.

Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
Partially-Implements: blueprint push-notifications

Change-Id: I25de14e42e345d9235dbf4097c298ef5d606de51
Co-Authored-By: Martin Hickey <martin.hickey@ie.ibm.com>
Co-Authored-By: Rossella Sblendido <rsblendido@suse.com>
Co-Authored-By: Manjeet Singh Bhatia <manjeet.s.bhatia@intel.com>
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>
Co-Authored-By: Victor Morales <victor.morales@intel.com>
2016-09-28 20:46:19 +00:00
Anindita Das
558c0519e1 Relocate VlanAllocation DB model
This patch will relocate the VlanAllocation db model from
plugins/ml2/drivers to db/models and separate it from mixins for OVO
implementation.

Change-Id: Ib544b22c9e1acaf4025e8cdace694b2000a4da90
Partial-Bug: #1597913
2016-09-28 18:12:21 +00:00
Henry Gessau
a80b89b6fe Ignore NULL fixed_ips for duplicate floating_ip check
Closes-Bug: #1628549

Change-Id: Ie49b46af93697ca67009373eadce9ba4f312dcc0
2016-09-28 13:38:13 -04:00
Manjeet Singh Bhatia
820270fcac Relocate Metering DB models
This patch will separate metering db models from mixins
for OVO implementation work.

Change-Id: If1bdb64c36e1993d62269d390d3d18144b6c492d
Partial-Bug: #1597913
2016-09-28 17:30:39 +00:00
Jenkins
571999037f Merge "New option for num_threads for state change server" 2016-09-28 14:59:55 +00:00