When using Fedora image the ssh command that executes
netcat doesn't return because stdout remanins open.
Closes-Bug: 1439065
Change-Id: I41a75a5a262ce184cbbb57c39863af3d8f21ad61
Previously the unit tests for the accounts providers were assuming that
all tests would be run in order. This was causing an occasional failure
when 1 of 2 accounts with a network in the fake accounts list were used
for a test not mocking the network clients. This commit addresses this
issue by changing the fake test list in setUp to not use accounts with
networks. Then the test which does test accounts with networks will do
a cleanup on the mock from setup and use it's own accounts list.
Closes-Bug: #1446309
Change-Id: Id7eedc4f9063f33287c945ed72edd59f52d80952
This reverts commit 2b34ec3ff444e6e6ec7b3e52832ecd6e8ca20552
This breaks gate-grenade-dsvm-ironic-sideways on
stable/juno because the requested port's mac address is not
in the list of available mac addresses from the ironic
driver.
It's also unclear how useful this is given we already have
the test_preserve_preexisting_port test which is
essentially testing the same scenario, except it's not
run on stable/icehouse or stable/juno since preserving
pre-existing ports in nova wasn't fixed until Kilo.
Change-Id: I24403c1ae734b2137ddee5c3bf5a1594cf5375d8
Closes-Bug: #1445917
BP MTU selection and adervertisement requires sending pkts of known
sizes to verify MTU. This patch allows basic MTU testing via the
linux_client
Change-Id: Ia98ad49bad9ebbf783de599689b4684d31fadca6
This commits adds support for specifying the network to use with a
user/tenant into the accounts.yaml file. You can only specify a single
network which will be the network used for all that requires a
pre-existing network. This also means regardless of which cred provider
is configured the fixed_network can assume a TestResource object will
be returned from a get_creds call. As part of this change a common
method to return the full network dict from a just a network name is
abstracted out into tempest.common.fixed_network module since this
same method is needed to have the accounts file provide a network by
name.
Partially-implements: bp test-accounts-continued
Change-Id: I6f5ac1239d18f2935847b385a08de608f40fdda5
This commit makes some logging improvements to the common methods in
fixed_networks.py. Previously it was very difficult to trace through
any issues around network selection since it only would log the final
result and on failures. It also didn't attribute any messages to the
tests making the call. This fixes both issues by first leveraging
find_test_caller() from tempest-lib to get the test caller name and
secondly add more logging to help trace through the logic if something
fails. Additionally as part of this it was necessary to add additional
checks to the logic to ensure the logging was accurate and things were
in a known state.
Change-Id: Ifef67ed4578f48d7701635e7d81c144dc28b6120
When tempest uses identity v3 - either because it's forced by a
test, or because it's configured as default, accounts can still
work with v2 accounts configured in accounts.yaml, under the
assumption that those accounts belong to
CONF.identity.admin_domain_name. The domain name is added on the
fly to newly created credentials by cred_provider, however this
is not accounted for in the get_hash function - fixing that.
Change-Id: Id0e72b9a8b85fdc682b9e14c39ecc1d8495ef35c
This patch add new configuration options for the multiple strategies
for ssh access to VMs.
Partially implements: blueprint ssh-auth-strategy
Change-Id: I16cdbe0982aa35b752828054b6be2cae6c51c6ef
[GET /resources] methods should be "list_<resource name>s"
or "show_<resource name>", so this patch applies the rule
to messaging client.
Partially implements blueprint consistent-service-method-names
Change-Id: Ibae5f78b3dee12dbab5095872b8d868fbfec7f5d
Adding the ability to skip test_update_instance_port_admin_state
when this operation is not supported by the test environment.
Closes-Bug: 1436839
Change-Id: Icda251c46e2fefcc80b0c712d6f42d76a7d247b7
This patch modifies the _check_network_external_connectivity()
method in test_network_basic_ops such that it asserts there exists
one IPv4 subnet (instead of one subnet of any address family) and such
that it tests external connectivity to only the IPv4 subnet (in the
case of a dualstack external network).
The external connectivity test currently relies on SSH'ing to an
instance through its floating IP and pinging the external gateway IP.
To test IPv6 external connectivity, this test would have to be
modified to SSH to an instance's IPv6 GUA address and use the ping6
utility to ping the external IPv6 gateway address. That enhancement is
outside the scope of this patch and can be implemented in the future.
Change-Id: I0f9ea98cb84aa72cb1505fb9ff8ac61561cc1376
Closes-Bug: #1440226
Partially-implements: blueprint multiple-ipv6-prefixes
Add test to creation of server attachec to user created port
- Create security group
- Create network, subnet, router
- Create port with security group
- Call a function to create a server with port id
- Check public network connectivity
Change-Id: I7aad651c5b1899d21f3c4b1c11d67b523ae6e727
After removing v3 schemas, we have only 1 set of schemas for v2 (/v2.1)
APIs but those end up in scattered structure.
Schema files needs to be re arranged into a clean structure. Any
resource schema should be defined in single file for better readability.
This patch rearrange hypervisors response schema into one file and merge some
of common schema definition.
Partially implements blueprint rearrange-nova-response-schemas
Change-Id: I21b90b8410ea62a94f8f41ecf714e2158015c6d2
Define a new class TestResources which embeds credentials and
their network resources.
This makes it easier to obtain network resources for a set
of credentials in case of preprovisioned accounts.
Partially-implements: bp test-accounts-continued
Change-Id: Ie3d5e2471db7371e1109fd24a716e7c449843904
test_add_list_remove_router_on_l3_agent fails when testing with DVR
routers as distributed routers follow a different agent binding logic.
Due to this failure, performance improvements like e99f6e00 were reverted.
This called for a revision of the test case. This change ensures that,
when needed, the test provisions extra resources so that the binding logic
can be successful.
Closes-Bug: #1433349
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
Change-Id: I15bbf16fd4378c6431e9da8942d0968e7a012a91