CI jobs for this plugin use DevStack to install and configure
OpenStack and to upload guest images to be used for tests.
This change allow to customize guest images just before
being sent to image service with the purpose of installing
new packages (like socat), configuring N network devices, etc.
This change has been created because for testing multicast
socat is required, but it was designed with the idea
of being used to allow further guest images customizations.
Change-Id: I88491dbb65031fe3743d1c3d27c38a57b5511794
Occasionally test_floatingip_port_details() fails, showing
the floating IP attached port status as 'BUILD'. Wait for the
status to transition to 'DOWN' before checking other port details,
similar as is done to the fixed IP port's device_id value.
Changed afffected method to use constants for port status as well.
Change-Id: I862115b37c97d5a3cad082d8cd4e7b855ef3f88b
Closes-bug: #1792472
We know that those tests are failing 100% times because
router ports are not going DOWN when router's admin_state_up is
set to FALSE.
Let's make it unstable until this issue will be resolved to make
scenario jobs passing at least sometimes ;)
Change-Id: Ia9e4af5d798a769c5ff7056e686632bac6f79aec
Related-Bug: #1789434
We are not running the release notes job, so are unable to
see the built release notes when they are included in a patch.
Add it as in the other neutron repos.
Also added a similar README.rst as the neutron repo to give
the basic info on release note generation, and fixed up
various issues in the configuration description.
Change-Id: I98ffed3ed77a16bba59cae69a73cb699ddb175fb
In scenario trunk test test_subport_connectivity there
is bash command used to check name of base interface on
spawned vm (e.g. ens3 or eth0), configure vlan interface
with vlan_id used on trunk port (e.g. ens3.10),
make this vlan device up and run dhclient on this interface
if it's not running yet.
This command was broken and that cause failure of this test.
Change-Id: I4c0207f79cd6df2594f976b9509697209011edf2
Closes-Bug: #1766701
Nested virt doesn't work well on infra nodes.
This reverts commit 190755866c6dbbd735dcae3ee9434c8f03722763.
Change-Id: I43eeb502ba07cf5745a17015df7fdc7120df6eaa
Closes-Bug: #1788006
Add test cases to pass valid and invalid filters to server.
If a valid filter is passed, assert server returns the correct
list of resources. If an invalid filter is passed, assert
server returns a 400 response.
Change-Id: I2b8baa93a5587fa036a8a8ab124c216d2dba4444
Related-Bug: #1749820
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I0fe9ef7cabdb0b389bc3852708c0a75fef591510
Story: #2002586
Task: #24314
When using SSH client to execute a command a Paramiko
client is created, it is connected to server and then the
client reference is forgot without closing socket.
This produces a leak of SSH connections. It also slow
down test executions when more than one command has to
be executed with the same SSH client (for example when
executing ping between VMs).
This change also add convenience methods to SSH client:
- connect() method allows to create and connect Paramiko
client to be used by tests directly (for exaple to open
a command like socat, cat, nc and redirect STDIN/STDOUT
to generate or receive network traffic. The method is
going to return the same Paramiko client instance
until close() method is called.
- close() method allows to close paramiko client socket and
release resources.
- execute_script() spawn a script interpreter (Bash by default) on
a remote machinge to execute a script provided as a string.
For convenience by default it combines STDOUT and STDERR to LOG
an human friendly message when the script fails.
Change-Id: I3a70131f03aea342c8e8a04038000bd974cca921
Add new 'debtcollector' dependency with the purpose of deprecating methods
that are going to be removed.
Mark BaseTempestTestCase.create_and_associate_floatingip for removal.
Replace create_and_associate_floatingip with create_floatingip in
BaseTempestTestCase class.
Change-Id: I5c5fd143a5cb4e138c46d13445f8225444bd2f58
It adds missing parameters to create_floatingip method:
- port: is translated to port_id=port['id']
- client: is used to create/delete returned floating IP
- **kwargs: are forwarded as they are to client
It deletes floating IPs on final cleanup even when created
by other client than default one.
It implements delete_floatingip method.
Change-Id: Ie2421839947f9010e8d2590cde1fd86669092fb9
There are lots of resources left after tempest tests finished,
we should cleanup.
This patch cleanup routers and security groups which
generated by default DevStack config, we still keeps
working on in the other patches.
Change-Id: I8dad97fdebd91f824a043dc60381b3a8ea29d5ed
Partial-Bug: #1759321
Add socat helper module to execute socat via SSH in
test cases that require a more advanced tool than nc
(like for example multicast test).
Change-Id: I1a21d082422afaec37c24814cc4caebacb790874
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I7bbfe9d9a240a4badf75623e5270afcd24770e5d
There is no need to run neutron-tempest-plugin-designate-scenario job
on patches where only docs or release notes are changed.
Change-Id: Idfe62149639644b3761791be5353727c3f9f09a6
If an API extension is enabled in tempest config file, we want
to ensure the extension is present in neutron server.
In before, we occasionally ran into issues that the list of
extensions is mismatch, which leads to failure of test cases.
This patch adds a test case to check that.
Change-Id: I4c59f407c30020e3865e96e67a1b61361e699014
Command "ping" available in cirros image don't have "-M" option.
This is necessary in test_connectivity_min_max_mtu scenario tests
to check connectivity without fragmenting packets.
So those tests will always fail with cirros and should be skipped
in such case.
Change-Id: Idb63cb37f6e1cc467106ea3ee99727824a4b1529
Closes-Bug: #1786472
In router migration tests, before migration is started, router
is set to admin_state_up=False. This cause that status of all
router ports should be set to DOWN.
This patch adds check (and wait) that all ports are really set
to DOWN state before migration of router is started.
Change-Id: I72ce0d4480c6d26e8ce1c8193e7ec18585df1c06
Related-Bug: #1785582
virt_type option in nova-compute will be now set to "kvm" instead
of "qemu" if test job will be running on node which supports
nested virtualization.
In case of nodes where it's not supported, devstack will
automatically switch it to "qemu" again. It's in [1].
This should improve time of booting vms so tests should be finished
faster and there should be less errors with ssh to instance timeouts.
[1] http://git.openstack.org/cgit/openstack-dev/devstack/tree/lib/nova#n289
Change-Id: Ifaa37398634f3cda73525363f8e197f03fd63a7d
Instead, have a separate class for shared code (QoSTestMixin)
so that we can add test cases to QoSTest without affecting
FloatingIPQosTest.
Change-Id: I2fc2d2a94e78298c2bded00b585c8a1ae852fc0a
Neutron-lib 1.18.0 is our Rocky RC and is already being used by neutron
[1]. This patch updates the neutron-lib required version to match
neutron [1] in prep for the Rocky release.
[1] https://review.openstack.org/#/c/583671/
Change-Id: Iee7a1ab3559b3ef58354f90774c2854e41dc18ae