Commit Graph

233 Commits

Author SHA1 Message Date
Nicolas Pochet d891227494 Add a way to compare OS release pair
It was a functionality available in charm helpers. It is implemented in
a similar way:
* Get the current series from the `keystone` machine
* Get the OS version from `get_current_os_versions`
* Try to find the built string in `OPENSTACK_RELEASES_PAIRS`
It is thus possible to compare release pairs as it returns integers.
2018-08-08 15:23:40 +02:00
Chris MacNaughton 43e2375537 Merge pull request #92 from fnordahl/issue/91
Fix ordering of arguments in call to `async_run_on_unit`
2018-08-08 11:11:01 +02:00
Frode Nordahl e408be6719 Fix ordering of arguments in call to async_run_on_unit
Fixes #91
2018-08-08 10:56:25 +02:00
Chris MacNaughton 31b68a7806 Merge pull request #89 from fnordahl/bgp-speaker-remove-add-workaround
Remove and add BGP speaker from dragent
2018-08-06 11:48:34 +02:00
Frode Nordahl 820ed8083d Remove and add BGP speaker from dragent
Workaround for LP: #1784083
2018-08-06 00:03:32 +02:00
Chris MacNaughton 252a008d23 Merge pull request #88 from fnordahl/retrieve-password-from-keystone
Retrieve password from keystone
2018-08-01 16:08:52 +02:00
Frode Nordahl 97c8c69675 Improve password security
Retrieve password from leader settings on keystone leader
unit.
2018-08-01 15:36:10 +02:00
Frode Nordahl 200ba35d57 Add functions: run command on leader, get leader settings 2018-08-01 15:31:24 +02:00
Frode Nordahl a67edfb444 Merge pull request #87 from gnuoy/feature/launch-instance
Changes to enable testing creating a guest
2018-08-01 10:25:56 +02:00
Liam Young 7a901108c4 Changes to enable testing creainting a guest
This is a bundle of disparate changes that enable testing the
creating of a guest instance. At a high level these are:

* Add helpers for downloading ubuntu images.
* Add method for setting up a basic overcloud network. This is very
  similar to zaza.configure.network.run_from_cli
* Add nova setup module that includes create_flavors and
  manage_ssh_key
* Add nova test base class for launching an instance and two
  derived classes for launching a cirros and lts image respectively.
* Fixes to zaza.charm_tests.test_utils after the refactor of the model
  argument in zaza.models
* New certs.is_keys_valid function to check if a public and private
  key are a pair.
* Methods in utilities.openstack for managing ssh keys. On creation of
  a new key the private key is stored locally and the public key is
  retrieved from Openstack
* Methods in utilities.openstack for testing guests at various points
  of the creation process.
2018-08-01 07:30:24 +00:00
Frode Nordahl 43dea67b00 Merge pull request #85 from gnuoy/feature/charm-overide-local-overlay
Allow charms to override local overlay
2018-08-01 07:42:40 +02:00
Frode Nordahl 23201ccc4d Merge pull request #86 from gnuoy/feature/add-glance-setup
Add method for setting up cirros image.
2018-08-01 07:41:41 +02:00
Liam Young 0d49aaa009 Add method for setting up cirros image.
add_cirros_image is designed to be called by the configure step
of charms to setup a cirros image in the deployment.
2018-07-30 08:58:59 +00:00
Liam Young f830aaa90c Allow charms to override local overlay
The local overlay ('local-charm-overlay.yaml') is generated on the
fly during deploy time and it assumes that the application name
will match the charm name. However this is not always the case so
allow charms to override the deploy time generated template with
one from the local tests/bundle/overlay directory.

This is really another stop-gap until the whole bundle generation
piece is rewritten.
2018-07-30 07:32:18 +00:00
Liam Young 511103e2af Merge pull request #84 from openstack-charmers/enable-dev-bundles
Enable dev_bundles flag and add unit tests
2018-07-17 18:07:20 +01:00
Ryan Beisner 814614c085 Enable dev_bundles flag and add unit tests 2018-07-17 10:23:17 -04:00
Chris MacNaughton 9a28fe055b Merge pull request #83 from gnuoy/add-model-constraint-supprt
Allow model constraints to be passed via env vars
2018-07-13 15:40:43 +02:00
Liam Young ea7336a67e Allow model constraints to be passed via env vars
Allow model constraints to be applied to models that zaza
creates.
2018-07-13 12:36:14 +00:00
Chris MacNaughton 78a0f51f9c Merge pull request #82 from gnuoy/inject-model-constraints
Allow model settings to be added or overridden
2018-07-12 13:53:49 +02:00
Liam Young 08aacfd0ec Allow model settings to be added or overridden 2018-07-12 12:03:12 +01:00
Frode Nordahl fcac054d85 Merge pull request #81 from gnuoy/vault-with-https
Support vault api behind https
2018-07-11 15:24:14 +02:00
Liam Young debd7ec645 Support vault api behind https 2018-07-11 12:47:24 +00:00
Frode Nordahl d47ee4ee59 Merge pull request #80 from gnuoy/default-workload-statuses
Add dict of non-standard workload statuses
2018-07-10 10:06:49 +02:00
Liam Young 6b3f7e5cc5 Add dict of non-standard workload statuses 2018-07-10 08:59:01 +01:00
Frode Nordahl cd29cee799 Merge pull request #79 from gnuoy/fix-stale-model-name
Update model name cache when switching models
2018-07-10 09:08:19 +02:00
Liam Young 3b738f279e Update model name cache when switching models
The model name cache needs to be updated when switching models
otherwise calls to get_juju_model get a stale results. Closes
2018-07-10 08:00:07 +01:00
Frode Nordahl 8413ddf620 Merge pull request #77 from gnuoy/unknown-wl-status
Cope with Workload status unknown messages
2018-07-10 08:27:52 +02:00
Liam Young 294d8f5fd0 Cope with Workload status unknown messages
Some charms never implemented the workload status messages, these
charms have a wl status of unknown and wls message of ''. This fix
allows a wls of '' to be specified.
2018-07-09 15:17:07 +00:00
Chris MacNaughton 2bc4badbf5 Merge pull request #76 from fnordahl/c-n-add-cacert-option
Add `cacert` option to network configure script
2018-07-09 10:26:34 +02:00
Frode Nordahl 720429b516 Add cacert option to network configure script 2018-07-05 14:17:57 +02:00
Liam Young 68ea18660c Merge pull request #75 from fnordahl/fix-keystone-tls-detection
Fix keystone tls detection and verification
2018-07-04 12:47:40 +01:00
Frode Nordahl 2a566b5e05 Fix keystone tls detection and verification
At present the check for which transport to use references a
configuration option that has been removed.

Update check to test for current configuration option plus
add a check for presence of `tls-certificates` relation.

Also remove insecure option and add verify option to allow
control of verification including providing own CA certificate
bundle.

Reference for verify option:
https://docs.openstack.org/keystoneauth/latest/api/keystoneauth1.html#keystoneauth1.session.Session
2018-07-04 13:17:25 +02:00
Alex Kavanagh 8a1dd18cfa Merge pull request #73 from gnuoy/add-test-coverage-report
Add coverage report to unit tests
2018-06-21 10:32:33 +01:00
Liam Young dacab83305 Add coverage report to unit tests 2018-06-21 10:20:46 +01:00
Alex Kavanagh 6304f9beeb Merge pull request #72 from gnuoy/enable-docstring-lint
Enable doc string lint checks
2018-06-21 09:55:20 +01:00
Liam Young e6848dc448 Enable doc string lint checks
Enable doc string lint checks excluding unit tests.
2018-06-21 09:45:45 +01:00
Liam Young ad1f8ce889 Merge pull request #70 from ChrisMacNaughton/model-name
add MODEL_NAME variable to determine model
2018-06-20 16:52:46 +01:00
Chris MacNaughton c13ea8f282 .get will never throw the exception we expect on mismatch 2018-06-20 17:24:21 +02:00
Chris MacNaughton 57ee4a3662 syntax fix and add unit test 2018-06-20 17:09:34 +02:00
Chris MacNaughton 063aadd4df add MODEL_NAME variable to determine model 2018-06-20 17:04:11 +02:00
Chris MacNaughton 15539c981c Merge pull request #69 from gnuoy/docstring-compliant-exc-tests
Fix remaining docstrings in zaza/*
2018-06-18 16:56:29 +02:00
Liam Young 30c8ad4c97 Fix remaining docstrings in zaza/*
Fix remaining docstrings in zaza/*, the unit_tests/* still need
work.
2018-06-18 13:12:43 +01:00
Chris MacNaughton 6b9a68df0f Merge pull request #68 from gnuoy/remove-unused-tempest-script
Remove unused tempest script
2018-06-18 11:36:46 +02:00
Liam Young 3d57f4d6f4 Remove unused tempest script 2018-06-18 10:24:30 +01:00
David Ames 4dcecaa23b Merge pull request #66 from gnuoy/zaza-docstring-lint
Docstring tidy of zaza.model
2018-06-15 07:37:49 -07:00
Liam Young a5c15f9b7a Rebase 2018-06-15 10:49:39 +01:00
Liam Young 398c057007 Docstring tidy of zaza.model 2018-06-15 10:44:53 +01:00
David Ames 05313af610 Merge pull request #64 from gnuoy/simplify-model-calls
Simplify model calls
2018-06-14 09:24:26 -07:00
Liam Young f0d91ae31b Fix caching of model name and remove debug lines 2018-06-14 06:23:26 +01:00
Liam Young 9b26376a19 A few fixes 2018-06-14 06:20:05 +01:00