Commit Graph

260 Commits

Author SHA1 Message Date
Frode Nordahl 9108059f71 vault: Extend workaround for LP: #1826382
We also need to restart consumers of the placement API on the
'nova-cloud-controller' unit.
2019-11-12 17:40:25 +01:00
Frode Nordahl 43322b0152 neutron: Deduce expected security check results on TLS presence
If 'neutron-api' has a certificates relation to vault we have
different expectations of the security checklist result.
2019-11-12 17:40:16 +01:00
Frode Nordahl 1689a4452e net: Add support for DVR deployments with NGW 2019-11-12 15:33:01 +01:00
Alex Kavanagh 5956b0b163 Merge pull request #117 from openstack-charmers/bug/1851710
Increase number of attempts for ping_response
2019-11-11 09:12:42 +00:00
Frode Nordahl 9391758fba Increase number of attempts for ping_response
Some configurations require more time to settle before we get the
expected response. (LP: #1851710)
2019-11-11 10:04:30 +01:00
David Ames 55c2e60b8e Fix generator sort failure 2019-11-07 15:55:35 -08:00
Alex Kavanagh ca98d2af7f Merge pull request #107 from thedac/mysql8-actions
MySQL 8 specific tests
2019-11-07 16:00:29 +00:00
David Ames c6530f244d Merge pull request #111 from ajkavanagh/heat-policyd-tests
Add heat policy.d functional tests
2019-11-07 07:50:08 -08:00
Corey Bryant 6d53e6d758 Increase wait attempts for volume availability
Increase wait attempts for availability of volume created from image
in CephRBDMirrorTest. This is taking longer as of Nautilus due to
switch to using juju storage backed by undercloud cinder taking
longer than prior method of directory-backed OSD devices.
2019-11-06 20:59:48 -05:00
David Ames 22614a3099 Get leaders and non-leaders 2019-11-06 15:35:56 -08:00
David Ames 25b3932ce9 MySQL 8 zaza tests
* Re-arrange the MySQL, Percona-cluster classes to avoid code
  duplication
* cluster-status action
2019-11-06 15:28:20 -08:00
Corey Bryant 3437f8bc02 tmp 2019-11-06 14:58:39 -05:00
Frode Nordahl 8aced1c5b2 net: Revert switch to wait_for_application_states
We are stuck with juju_wait until we figure out how to deal with
all the non ['active', 'idle', 'Unit is ready.'] workload/agent
states and msgs that our mojo specs are exposed to.
2019-11-06 15:49:40 +01:00
Alex Kavanagh b95f6e6e7d Add heat policy.d functional tests 2019-11-06 11:40:20 +00:00
Frode Nordahl 8d676bf9fa Make non-existent tests/tests.yaml non-fatal where possible
Not all test environments or runners are equal, don't crash on
non-existent test config.
2019-11-05 16:38:06 +01:00
Liam Young b5f46b2820 Merge pull request #108 from openstack-charmers/ovn-charm
Teach `basic_overcloud_network` configure job about OVN
2019-11-05 10:01:50 +00:00
Liam Young 63fb045f02 Teach zaza about designate version 2019-11-04 11:35:26 +00:00
Frode Nordahl 675b109d54 Optionally limit number of units to get port attached
This is useful for validating deployments with OVN where it is not
required to have external networking attached to every chassis.

Any chassis that does not have external networking directly
attached will forward traffic destined for the external network
through a tunnel to a chassis that does.
2019-11-02 17:16:39 +01:00
Frode Nordahl 8e8544bab7 Fix ovn_present for ovn-dedicated-chassis
Add missing unit test.
2019-11-02 10:31:30 +01:00
Frode Nordahl 0163f79ec2 Teach `configure_gateway_ext_port()` about OVN
Also stop using ``juju_wait``.
2019-11-01 06:52:22 +01:00
Frode Nordahl 7d1d04a742 Deduce whether DVR is enabled from neutron-api config
Add helper to detect presence of OVN in deployment
2019-11-01 06:39:17 +01:00
Frode Nordahl 85927e20c6 Add helper to get uuids of machines w/OVN chassis
Refactor get_machines_for_application as generator function instead
of building and passing on static List.
2019-11-01 06:39:07 +01:00
Liam Young 99b53a2a76 Lint fixes 2019-10-31 15:52:37 +00:00
Liam Young 8178607ba9 Refactor swift tests and add storage
The SwiftImageCreateTest was running a pause/resume test for
swift proxy which does not make sense. So, break the proxy specific
tests into their own class and add a class for storage. A
subsequent change to the swift-proxy charm will be needed to add
the new proxy test class to the tests.yaml.
2019-10-31 15:37:56 +00:00
Jose Delarosa 337c83b68d heat: Reduce number of asserts and use helpers when appropriate 2019-10-30 14:42:25 -05:00
Jose Delarosa 806e6afd87 Removed blank line after docstring for pep8 compliance 2019-10-29 23:46:52 -05:00
Jose Delarosa b2141a1c62 heat: more enhancements
* Move code into test_410_heat_stack...() instead of calling functions
* Use glance and nova helper functions as available
* Simplify method for detecting duplicate encryption keys
2019-10-29 23:28:07 -05:00
Jose Delarosa 80d1f1086d Code improvements and fixes
* Removed heat templates
* Improved Docstring content
* Added code to assert errors when failing
* Removed private variable names
* Removed test_402_heat_stack_list function
2019-10-28 23:30:51 -05:00
Jose Delarosa 08b5b70854 Fix pep8 failures 2019-10-25 16:28:27 -05:00
Jose Delarosa d4ea94298f Add heat functional tests 2019-10-25 15:54:03 -05:00
Frode Nordahl 0f9d439bfd Merge pull request #104 from ajkavanagh/bug/1828424/openstack-dashboard-tests
Add openstack-dashboard functional tests
2019-10-24 10:15:04 +02:00
Alex Kavanagh 47dc2a8b5f Add openstack-dashboard functional tests
This PR adds the ported from the amulet tests in the openstack-dashboard
charm.  This is launchpad bug: 1828424 [1]

[1]: https://bugs.launchpad.net/charm-openstack-dashboard/+bug/1828424
2019-10-23 15:48:00 +01:00
David Ames addee58dd8 Do set DNS on overcloud subnets
It turns out we do need to set DNS on the overcloud subnet. It should be
the .2 of the CIDR under test and not the _admin_net's .2. There seems
there are security group rules in the way.
2019-10-22 16:12:26 -07:00
David Ames a207fea389 Stop setting external DNS
Use neutron DNS by not setting a DNS server on the subnet.
Also correct TEST_NAME_SERVER for potential future use.
2019-10-21 16:08:35 -07:00
David Ames 13fa5e9851 Only use TEST_ prefix 2019-10-18 11:26:37 -07:00
David Ames f29aac19c4 Handle OSCI environment variables
Move to preferred TEST_* environment variables, while remaining backward
compatible.
2019-10-18 10:14:34 -07:00
Frode Nordahl a82979d145 vault: Await execution prior to validation step
Make it possible for consumers of the ``auto_initialize_no_validation``
function to execute subsequent setup and test code that require vault
and the consumers of the ``certificates`` relation to be ready.

With the current order of execution, it is not possible to use the
configure function in models where ``keystone`` application is not
present.
2019-10-18 11:05:18 +02:00
David Ames 29a4c7cf44 Display routes in assertion error 2019-10-16 15:46:33 -07:00
David Ames 743c4765a4 Allow more time for BGP route test
Add more retries to the bgp route test and print out the routing table.
2019-10-16 14:57:53 -07:00
David Ames bb1525ddff Merge pull request #60 from exsdev0/rabbitmq-zaza-tests
Rabbitmq zaza tests
2019-10-15 08:40:20 -07:00
Liam Young 6c15605222 Series upgrade tests run funcs after upgrade.
Execute a list of functions after series upgrade if one is
supplied. This change is driven by the upgrade testing of vault.
Vault needs to be unsealed after it is rebooted.
2019-10-14 10:39:11 +00:00
Liam Young 79a149bfc5 Facade for vault & basic_setup_and_unseal
Add a facade for interacting with vault and a function which
unseals vault units (useful when vault units have been rebooted).
2019-10-14 08:56:35 +00:00
James Page d29a1fdadd Merge pull request #97 from gnuoy/fix-finding-vault-creds
Search for vault credentials file.
2019-10-14 09:32:48 +01:00
Liam Young e0c10b5457 Search for vault credetials file.
During testing the vault credentials are stored on the lead unit.
Unfortunatly which unit is the designated leader can change during
the life of the test (particularly if the test involves rebooting
vault units). This change adds a function to search the units for
the credentials file rather than assuming its on the lead unit.
2019-10-14 07:50:55 +00:00
Edin Sarajlic d2e12abb91 Remove condition: check client series will always be true.
All CI test runners are >= xenial. The condition will always be true.
2019-10-14 10:45:59 +11:00
Edin Sarajlic 1ea0be0440 Don't time.sleep when checking Rmq ports after toggling mgmt plugin. 2019-10-14 10:45:59 +11:00
Edin Sarajlic 060f7392d9 Don't sleep while waiting for cluster status to update. Use tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic 215b3c87e3 Don't time.sleep waiting for Nagios. Port to tenacity. 2019-10-14 10:45:59 +11:00
Edin Sarajlic d780f76797 Port validating Rmq SSL off from time.sleep to Tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic e8068a8356 Port validating Rmq SSL on from time.sleep to Tenacity 2019-10-14 10:45:59 +11:00