10890 Commits

Author SHA1 Message Date
Yalei Wang
d4c52b7f5a Add support for unaddressed port
Neutron could create a port without the IP address when the network doesn't
have a subnet. In this case, neutron will have no L3 knowledgee and we need
remove the L3 filter on it but reserve the L2 filter if there is.
This patch will make L2 agent verify the fixed_ips before converting the
security-group-rules into firewall rules, L3 rules in it will be removed.
And filter like arp-spoofing will be disabled for this port.

Partially Implements: blueprint vm-without-l3-address
Change-Id: I5cd1fdfa13a7e57258be7251768eaa8ba64d486e
2015-08-20 21:34:50 +08:00
Jenkins
d6742d48b0 Merge "Add parent_id to _item calling from _handle_action" 2015-08-14 03:47:15 +00:00
Jenkins
2584a1aa75 Merge "Add configurable options for HA networks" 2015-08-14 02:03:45 +00:00
Jenkins
f7405efc1d Merge "db_base_plugin_v2: Avoid creating another session" 2015-08-14 01:59:03 +00:00
Jenkins
b1a8a8bc47 Merge "Add test that checks external tables are not changed" 2015-08-14 01:58:50 +00:00
Jenkins
e14eb80cba Merge "Fix update_subnet for prefix delegation" 2015-08-14 01:56:26 +00:00
Jenkins
10696107d1 Merge "[neutron-db-manage] remove old HEAD file when updating for branches" 2015-08-13 20:09:56 +00:00
Jenkins
8047285005 Merge "Fix _update_subnet_allocation_pools returning empty list" 2015-08-13 18:22:47 +00:00
Jenkins
94670e2c88 Merge "[neutron-db-manage] check_migration: validate labels" 2015-08-13 18:11:21 +00:00
Jenkins
35e10cb924 Merge "The unnecessary value "sgids" was deleted" 2015-08-13 15:48:36 +00:00
Jenkins
18e40db717 Merge "Support for independent alembic branches in sub-projects" 2015-08-13 15:32:55 +00:00
Jenkins
755c148999 Merge "Python 3: encode unicode response bodies" 2015-08-13 15:32:12 +00:00
Ihar Hrachyshka
e9468fcd0c [neutron-db-manage] check_migration: validate labels
Guard against potential down_revision interleave by checking that each
revision has the only revision that corresponds to its location in the
migration tree, and that its parent also has that same single label.

Partially-Implements: blueprint online-schema-migrations
Change-Id: Ia812e8283f4da955610fe043aba3ad0298ede24b
2015-08-13 16:51:44 +02:00
Jenkins
012df59144 Merge "Treat sphinx warnings as errors" 2015-08-13 14:46:30 +00:00
John Schwarz
98618644ce Add configurable options for HA networks
The L3 HA mechanism creates a project network for HA (VRRP) traffic
among routers. The HA project network uses the first (default) network
type in 'tenant_network_types'. Depending on the environment, this
combination may not provide a desirable path for HA traffic. For
example, some operators may prefer to use a specific network for HA
traffic to prevent split-brain issues.

This patch adds configurable options that target the network_type and
the physical_network of the created HA network.

Doc-Impact
Closes-Bug: #1481443
Change-Id: I3527a780179b5982d6e0eb0b8c32d6dafeeab730
2015-08-13 16:02:19 +03:00
Ann Kamyshnikova
43f3d75061 Add test that checks external tables are not changed
Alembic migrations should not change tables which models were moved
out of Neutron. This change add check for this.

Also this change remove clear_override from db_sync in
_TestModelsMigrations which is not needed.

Closes-bug: #1466704

Change-Id: I587cd6fb2baa82fd7e452bb8597136efa5b8084e
2015-08-13 15:34:06 +03:00
Ihar Hrachyshka
452f95bc63 [neutron-db-manage] remove old HEAD file when updating for branches
Partially-Implements: blueprint online-schema-migrations
Change-Id: I259d4f9090df821ade9d58f440c809e79458211d
2015-08-13 12:08:31 +00:00
fumihiko kakuma
7f4777f42f Python 3: encode unicode response bodies
This change adds a file needing a python 3 support by
Ie0dc57fbe3ed9b19dac2e958de14387bc4c1a260.

Change-Id: Ice6e8ae618b82ff45398c338c3eee27ed9d5a105
Blueprint: neutron-python3
2015-08-13 19:13:38 +09:00
Jenkins
2445d75429 Merge "Remove bigswitch mech_driver entry point definition" 2015-08-13 09:53:16 +00:00
Jenkins
711806cdb6 Merge "Python 3: specify a bytes to an argument for a format type 's' of struct.pack()" 2015-08-13 08:10:40 +00:00
Jenkins
44b2226174 Merge "Python 3: compare response.body to bytes in namespace_proxy test" 2015-08-13 08:02:02 +00:00
Jenkins
5c99d8f447 Merge "Python 3: encode unicode response bodies" 2015-08-13 08:01:29 +00:00
Jenkins
1b5a39c2a1 Merge "Updated from global requirements" 2015-08-13 07:53:19 +00:00
Jenkins
dc30e8795d Merge "Improve callback registry devref documentation and usability" 2015-08-13 07:48:03 +00:00
Henry Gessau
603c0d03ae Support for independent alembic branches in sub-projects
Sub-projects shall now register their independent alembic migrations
via entrypoints in setup.cfg, and neutron-db-manage will discover them
and run them automatically.

If a service or sub-project is specified explicitly, then
neutron-db-manage will run on only that service or sub-project.

The advanced services project are just special cases of sub-projects.
For example, specifying the CLI option '--service lbaas' is the same
as specifying '--subproject neutron-lbaas'.

Specifying no service or sub-project will cause neutron-db-manage to
run the command on neutron and all installed sub-projects.

Added and consolidated documentation into devref for alembic migrations.

Partial-Bug: #1471333
Partial-Bug: #1470625

Change-Id: I9a06de64ce35675af28adf819de6f22dc832390d
2015-08-12 23:50:58 -04:00
Kanzhe Jiang
74a5e91667 Remove bigswitch mech_driver entry point definition
After vendor driver split, the entry point for bigswitch ml2
mechanism_driver is no longer valid. The new entry point is defined in
the networking-bigswitch stackforge repo.

Change-Id: Ie6e19a13e49d9d3e95f8ea2f10181592e9f156e5
Closes-Bug: #1484341
2015-08-12 20:39:17 -07:00
OpenStack Proposal Bot
7e070bddad Updated from global requirements
Change-Id: Ieb2e8eaf3eb9fee93d5fcb8cb4e683a0a6555fc0
2015-08-13 02:14:42 +00:00
Jenkins
6688b7b73f Merge "Destroy ipset when the corresponding rule is removed" 2015-08-13 02:03:40 +00:00
Jenkins
6834718356 Merge "Python 3: do not compare int and NoneType" 2015-08-13 01:57:55 +00:00
Jenkins
49fcff769f Merge "Fix DVR interface delete by port when gateway is set" 2015-08-13 00:16:48 +00:00
fumihiko kakuma
9744ef78e6 Python 3: specify a bytes to an argument for a format type 's' of struct.pack()
In python 3, a format type 's' of struct.pack() requires a bytes object to an argument.

Change-Id: Ia4640b31c31b5b7454cd1582af46562fb1885726
Blueprint: neutron-python3
2015-08-13 07:55:50 +09:00
Jenkins
75c1500b67 Merge "Update fullstack multinode simulation image" 2015-08-12 20:57:54 +00:00
Jenkins
0cdff4f7cc Merge "Fix docs job" 2015-08-12 20:49:04 +00:00
James E. Blair
ca497aa1fb Treat sphinx warnings as errors
Change-Id: I65fcca7eb3397c8f5a777bab1c9c20161263ed26
2015-08-12 15:19:28 -04:00
Jenkins
a39c73ec6f Merge "Revert "Revert "Add VIF_DELETED notification event to Nova""" 2015-08-12 18:05:47 +00:00
Assaf Muller
9d1bc8195c Update fullstack multinode simulation image
Change-Id: I9d332e296b1f72e423ee64b01a82ae36b688c27e
2015-08-12 13:55:21 -04:00
Assaf Muller
ea50c9e19c Fix docs job
It looks like the docs job is passing when it shouldn't.

Change-Id: I4b65e470e913cd84e63231259e355c5842878c4b
2015-08-12 13:29:50 -04:00
armando-migliaccio
6d004c4144 Improve callback registry devref documentation and usability
Latest developments have revealed that the registry can be misused
under certain circumstances, and that it can be harder to use by
projects that extend Neutron.

This patch improves the devref documentation so that developers know
what to expect.

Change-Id: I565b6a2f2a58bf22eae5b36f03c4fd24ba0774d2
2015-08-12 10:15:07 -07:00
Jenkins
1d7fc59101 Merge "Skip FwaaS test that is failing due to race condition" 2015-08-12 16:06:23 +00:00
Jenkins
a51bab4faf Merge "Replace 'import json' with oslo_serialization" 2015-08-12 16:05:57 +00:00
John Davidge
a3285ac71a Fix update_subnet for prefix delegation
A misnamed function call and execution order issue was causing
update_subnet to fail when a PD enabled subnet received a new CIDR.

This patch fixes the issues, and introduces an rpc api test to
ensure the function works. This includes altering the process_prefix_update
RPC handler to expose the issue to the test.

Change-Id: Id1e781291f711865fd783ed5e0208694097b7024
Closes-Bug: 1482676
2015-08-12 16:00:07 +01:00
Jenkins
f76aead1e5 Merge "Add Kuryr to sub_projects.rst" 2015-08-12 14:58:34 +00:00
huangpengtao
cf7086701b The unnecessary value "sgids" was deleted
The value "sgids" is unnecessary to be used.
Even it is a bit confused to use "sgids",
the code will be easier to understand without it.

Change-Id: I8b881139a71bdc9f3742e7208610eb56081fbbc7
2015-08-12 22:53:08 +08:00
Assaf Muller
0b5b6c7e74 Fix DVR interface delete by port when gateway is set
When removing a DVR interface by port, the subnet_id
passed to delete_csnat_router_interface_ports is None,
and so it deletes all the DVR SNAT ports for the
router.

This patch fixes this issue by passing in the right
subnet_id to the delete_csnat_router_interface_ports.

Change-Id: I16735195c6575454876acd0e99ef45f382963566
Closes-Bug: #1443524
Co-Authored-By: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
2015-08-12 15:09:02 +03:00
Sean M. Collins
764e716cd6 Skip FwaaS test that is failing due to race condition
Change-Id: I8a7669b6aff0b407b192af803fbfb636c8f118bb
Related-Bug: #1483875
2015-08-12 07:42:04 -04:00
shihanzhang
653fd35be2 Destroy ipset when the corresponding rule is removed
if a security group has a rule which allow a remote group access,
but this remote group has no IPv4 and IPv6 members, L2 agent
should not clear the remote group in internal cache of sg_members,
because when above rule is deleted, L2 agent can get the remote group
id from the diff of pre_sg_members-sg_members, then destroy the ipset
set for remote group.

Change-Id: I801b14c9f506c5a07f8875b8f9be1b05d181b842
Closes-bug: #1463331
2015-08-12 11:27:01 +00:00
Cedric Brandily
7809f1574c Python 3: compare response.body to bytes in namespace_proxy test
WebOb response bodies should be compared to bytes not string.

Change-Id: I2c17d39cc394a1d583b4f4971c0db9ba1875a0d0
Blueprint: neutron-python3
2015-08-12 10:07:14 +00:00
Jenkins
12a4ae1221 Merge "Clean up test_dvr_router_rem_fips_on_restarted_agent" 2015-08-12 05:58:34 +00:00
YAMAMOTO Takashi
02b6ea5bbb Add Kuryr to sub_projects.rst
Change-Id: I8974b140cd69ddf125fecad0ea4714e803bf9740
2015-08-12 13:39:33 +09:00
Jenkins
86bf1b4150 Merge "Fix: Skip rescheduling networks if no DHCP agents available" 2015-08-11 20:31:29 +00:00