This patch is modifying the devstackgaterc file to add support for
neutron-api tests.
Before this patch, devstackgaterc only supported 1 positional argument
for choosing the ovs branch (latest-release or master). Now, it possible
to pass as many options as needed and it will be much easier to extend.
This patch will be used at: 6791b94429f4a2f494e3f45426e074e8608ce917
Change-Id: Idee833a90c2c2dacea8c92ff58f67f6c3822bb9e
Initial implementation
Changes in the mechanism driver:
* Automatically create a port with device_owner=network:dhcp to
serve metadata and eventually DHCP.
* Auto-allocate an IP for the metadata port on subnet creation.
* Push static route for 169.254.169.254 in DHCP options.
* Wait until metadata service is provisioned in the chassis where
a port resides before sending the event to Nova.
Agent:
* Implementation of [0].
Devstack plugin:
* Starts networking-ovn-agent with the proper config files.
* Disables config drive in nova.conf for tempest against master
branch.
* Enables TEMPEST_RUN_VALIDATION for tempest against master branch.
In order to test this patch out we need to make these changes to
nova.conf:
* [DEFAULT] section:
force_config_drive = False
* [neutron] section:
service_metadata_proxy = True
This patch depends on [1] and [2] (already merged into OVS master).
NOTE: Metadata tests are only enabled for the non-voting tempest job
which runs against OVS master branch. The release job runs against
OVS 2.7 which doesn't include [1][2] so those tests are disabled
until OVS 2.8 is released.
[0]
https://docs.openstack.org/developer/networking-ovn/design/metadata_api.html
[1] https://patchwork.ozlabs.org/patch/767369/
[2] https://patchwork.ozlabs.org/patch/771297/
Change-Id: Ife2fd18f2f88050429e70c7e557fa41d2d54b034
Horizon has been disable by defaul in devstack-gate
(https://review.openstack.org/#/c/474283/), just like many other
projects, networking-ovn also doesn't test horizon in the gate so
there's no reason to keep it enabled.
Change-Id: Id83583b360e60c038f63b3caaf0c0595a6b9df3e
The patch[1] changed default ssh validation from False to True, that
leads to our gate failure, because VM obtains password from metadata
agent for these tests but OVN does not support it.
This patch reverts validation to False, until OVN metadata agent is
supported.
[1]https://review.openstack.org/#/c/458678/
Change-Id: Ie74fcd15dcc3c5999255dd0e1816417cb7eec56a
Both the L3 and DHCP agents are no longer supported. Remove many more
remnants from when they were supported.
Change-Id: If71489f9ac56c7c26746d0fbfb4640e570591f26
Signed-off-by: Russell Bryant <rbryant@redhat.com>
A recent project-config commit started passing in an optional argument
to devstackgaterc to specify which OVS branch to use. Make it work.
https://review.openstack.org/#/c/394684/
Change-Id: Id7823ddc9d6c4755367525cb43ca16ad4ffa9a86
Signed-off-by: Russell Bryant <rbryant@redhat.com>
The main tempest job and the "native-services" job have been running the
same configuration for a while. At one point we had thought that we
might want to retain support for the DHCP agent, but I propose that we
drop it and revisit if there's demand for it in the future.
After this patch lands, I'm going to remove references to the
nativeservicesrc file in CI config and then we can remove the file from
our repo.
Change-Id: I3aa7a6ac10e4da00d5830f68d7c9d3d684f91218
Closes-bug: 1639806
The commit with change id: I16b337b64b7d96486ba0edeea1bb51151f0b8825
disables l3 agent in devstackgaterc job. With this the
tempest.scenario.test_security_groups_basic_ops.\
TestSecurityGroupsBasicOps.test_cross_tenant_traffic is failing.
Excluding this test for now till the issue is found and fixed.
Bug #1641125 is opened to track this.
Depends-on: I16b337b64b7d96486ba0edeea1bb51151f0b8825
Change-Id: Idc5d7dc5b979eba7b227fee227fb36d89271065c
Related-Bug: #1641125
Now that native SNAT and floating IP support has been merged for
networking-ovn, we can drop support for the Neutron L3 agent. This
patch affects the following CI jobs:
tempest-dsvm-networking-ovn - Change to use OVN L3. We will keep this
job because we still need a second temptest job that ensures the DHCP
agent still works, even though it's currently disabled due to a bug that
came up a few days ago.
rally-dsvm-networking-ovn - Use OVN L3 instead of the Neutron L3 agent.
The changes to the test regex are mostly to reduce the diff from this
file to devstackgatenativeservicesrc.
Partial-bug: #1626717
Change-Id: I16b337b64b7d96486ba0edeea1bb51151f0b8825
Signed-off-by: Russell Bryant <rbryant@redhat.com>
devstackgaterc job is failing in gate. When q-dhcp is disabled,
it is passing.
This patch disables the q-dhcp and makes use of the native dhcp as a
temporary solution to fix this issue.
q-dhcp needs to be enabled back once the issue is fixed properly.
Please see the bug description for more details.
Change-Id: I03aaceead620b8e312823a872ef95c42df673252
Partial-bug: #1639806
Just run the smoke tests after grenade upgradation. This is similar
to how neutron runs the tests after upgrade.
Change-Id: Ica80d91c56e83f9ecf0e58c1d3d3c647979a1e29
The q-meta service wasn't enabled in devstackgaterc for the conventional
neutron agent gate job. As a result, a recent DevStack gate change [1]
broke the gate-tempest-dsvm-networking-ovn job because config drive is
no longer forced by default.
[1] https://review.openstack.org/#/c/357443/
Change-Id: I1f30b550287e2ae0d49accee81a7ce4bddd3e0a4
OVN has added a new DHC_Options table in OVN NB DB to define
DHCP options. Logical Switch ports refer to this table if
DHCP is to be enabled.
This patch creates rows for DHCP_Options for each of the
subnets and adds the reference to the ports when created.
If extra DHCP options are defined for a port, a new
DHCP_Options row is created for the port.
Change-Id: Ia3e229f86bf66f5b9b0d867ff41f56ed4be2e8f4
Closes-bug: #1514488
This patch adds the necessary code to support the allowed
address pairs extension.
This patch also stores the ip address and mac address of the
allowed address pairs configured on a port into the
OVN NB Logical_Port.port_security so that ovn-northd can add
the necessary port security logical flows.
Change-Id: I3a604328cd3d816e8288904d69aa06fdf6f57749
Closes-bug: #1469261
This patch adds the necessary code to support the port security
extension. The user can enable or disable port security for each
port.
This patch also stores the ip addresses of a port into the
OVN NB Logical_Port.port_security so that ovn-northd can add
the necessary port security logical flows.
Change-Id: Ic7932feffb10562fef35a63d8fa02f5f8fc94c4c
Closes-bug: #1496595
Create a new devstackgatenativel3rc file for a new ovn gate job
to test OVN when using native L3 support instead of the neutron
L3 agent.
Partial-Bug: #1549862
Change-Id: Icc794d61f62be7ef5a7499c507e1e1bf2bc4363b
This test was probably fixed by changing the "remote_group_id" support
to use IP addresses instead of port names in OVN ACLs. It passes now,
so re-enable it.
Closes-bug: #1508256
Change-Id: I4ae2dd79417b8776141843bc5e2db09cd40970c0
The neutron-vpnaas does not work with the OVN plugin when neutron L3
agent is enabled. Update the supported extensions.
Change-Id: I2d12543c525578279152429a7740900c03a274a6
Closes-Bug: #1549080
Closes-Bug: #1541859
Signed-off-by: John Kasperski <jckasper@us.ibm.com>
OVN plugin support creating an external network, but we can not
update router:external option. If we want to using a new external
network, we need delete the old network.
In delete_network, floatingips not delete.
This patch supports update extenal network's field and handle
floatingips before delete network. Also remove the skipped
tempest api test for external_network_extension.
Closes-bug: #1474977
Change-Id: I5eebab2ba66e8943444437059402b11894845fcd
This patch implements Neutron security groups by creating the
appropriate ACLs in the OVN_Northbound database. OVN ACLs are
implemented using conntrack integration with OVS.
All of the OVN and OVS code is merged into master, but it requires
kernel support which has not yet been merged into the in-tree kernel
module in OVS. There's a branch that has the kernel backport available,
so this patch also switches the default branch we test against to one
where the kernel backport is available.
The patch includes some TODOs and some bug reports for disabled tests,
though not all necessarily related to this patch.
Related-bug: #1457567
Change-Id: I71d59dcab3f8b52adb734308df7ac97e2fa0d1b4
Signed-off-by: Russell Bryant <rbryant@redhat.com>
We used to exclude these to make runs go faster. I'm running tempest
*a lot* right now, so let's exclude them again to make things a little
faster.
Change-Id: I502781af7293fcea03b1a2b3c61bdfdbf28e503e
Signed-off-by: Russell Bryant <rbryant@redhat.com>
This test seems to fail about 20% of the time in the gate because it's
unable to ping one of the v6 addresses on the instance. This doesn't
seem to be a neutron/ovn_plugin issue as far as I can tell. This patch
skips this test for now until we can tackle why this is failing.
Change-Id: I6a6958e6c424ad13027623f66e1190f8e887bbec
Related-bug: #1499024
I think that this subset of security group tests are fine to run.
They should only require the API to manage security groups, which
should be working.
Change-Id: I3f7737e9d3803c8813ee0d4d9271248743ecaf1e
Signed-off-by: Russell Bryant <rbryant@redhat.com>
The tempest config skipped some tests that should be working fine. I
put this in when I was doing a full run many times to look at various
failures. I just saw the tempest job pass, so let's start working
back toward running everything.
Change-Id: I139f22e75290a650f83106826beba339249d69af
Signed-off-by: Russell Bryant <rbryant@redhat.com>
Neutron supports administratively setting the state of a port to up or
down. Support for this was just merged for OVN and this patch
integrates that support with Neutron.
Change-Id: I4daf4ed752a0e0d2b44fcfc0dc0a86c0e0b50971
Signed-off-by: Russell Bryant <rbryant@redhat.com>
Closes-bug: #1467971
I plan to revise this patch with a list of failing tests until we have
a passing tempest configuration.
Change-Id: Ie8e538dafe6bcd2786cdc12a2e8ef7d0b9967a26
Signed-off-by: Russell Bryant <rbryant@redhat.com>
This patch moves the list of enabled services into the local job
config so that we can more easily update it. This list is the same as
what was in project-config with "n-obj" added. One of the test
failures was
tempest.thirdparty.boto.test_ec2_instance_run.InstanceRunTest failing
when trying to create an S3 bucket, so I think turning this service
on will resolve that.
Change-Id: Ie9669381f0a1d5a695d998ab8453eb2427d39926
Signed-off-by: Russell Bryant <rbryant@redhat.com>
Add a devstackgaterc file to be used by our tempest CI job. This
will let us tweak the regex used to select which tempest tests run by
updating this file instead of updating the job definition in the
project-config repo.
Change-Id: If191fcec235af839b0946751965f94298be99e26
Depends-on: I43f00d889fc44b7d5a43a60b729bf8e9ada1eb22
Signed-off-by: Russell Bryant <rbryant@redhat.com>