Commit Graph

357 Commits

Author SHA1 Message Date
Chris MacNaughton 13e7d23079 Merge pull request #152 from gnuoy/add-missing-rocky-queens-codes
Add missing Rocky and Queens versions
2018-11-08 10:45:59 +01:00
Liam Young 6b0628a603 Add missing Rocky and Queens versions 2018-11-08 09:24:27 +00:00
Alex Kavanagh 1e4733bd90 Merge pull request #150 from thedac/render-vips
Allow OSCI environment variables
2018-11-06 08:40:13 +00:00
Liam Young 791b664a89 Merge pull request #151 from thedac/upgrad-series-command
Update the upgrade-series command
2018-11-06 07:33:43 +00:00
David Ames 3791cd9ffd Update the upgrade-series command
Since https://github.com/juju/juju/pull/9395 the ordering of the
upgrade-series command has changed.

Update to match current juju.
2018-11-05 15:46:50 -08:00
David Ames f6fe86e282 Allow OSCI environment variables
Zaza explicitly limits which environment variables are allowed for
template rendering. Allow the variables that OSCI actually uses. Without
this OSCI fails to render vips.

This enables zaza tests with HA in OSCI.
2018-11-05 15:28:04 -08:00
Alex Kavanagh 60cdfadf13 Merge pull request #149 from thedac/timeout-error
Explicit Model Timeout Exception
2018-10-31 15:41:31 +00:00
David Ames 1fb704507b Use model.applications as a dict 2018-10-31 08:24:47 -07:00
David Ames 1d709bbddd Review requests
Pep8 fixes.
2018-10-31 07:39:38 -07:00
David Ames 348e7211cd Explicit Model Timeout Exception
When we timeout waiting for the model to be idle and have specific
workload statuses make that explicit.
2018-10-29 11:32:43 -07:00
David Ames d4b2862f54 Merge pull request #148 from thedac/series-upgrade-generic-non-leader-first
More generic non leader first series upgrade
2018-10-29 10:19:51 -07:00
David Ames 3338fe89ba More generic non leader first series upgrade
Make the series_upgrade_mongodb less specific to mongodb. We may
eventually use this to series upgrade vault.

Fix bug in the generalized series_upgrade_non_leaders_first.

Fix change in switch --agree to --yes.
2018-10-29 10:03:28 -07:00
Liam Young 4f4cccb80f Merge pull request #147 from ChrisMacNaughton/file-ownership
WIP: Add support for testing file ownership
2018-10-17 09:06:02 +01:00
Chris MacNaughton 11133ccd1f fix up local template rendering 2018-10-17 09:32:49 +02:00
Chris MacNaughton cc893ae851 Add tests derived from tests.yaml in the target directory 2018-10-17 09:20:23 +02:00
Frode Nordahl 77799c3d98 Merge pull request #146 from thedac/series-upgrade-one-offs
Series upgrade one offs
2018-10-17 07:48:43 +02:00
David Ames 12ab3d8a40 Handle series upgrade for memcached 2018-10-16 15:32:51 -07:00
David Ames c092029603 Handle sereis-upgrade for mongodb 2018-10-16 13:28:46 -07:00
Liam Young 69698ea57d Merge pull request #142 from ChrisMacNaughton/bundle-flattener
Add support for removing machine placement in a bundle
2018-10-12 12:34:19 +01:00
Chris MacNaughton bc37046851 raise exception when trying to mix series 2018-10-12 09:05:26 +02:00
Chris MacNaughton 69c44551ff add unit testing and fix typo 2018-10-10 12:14:15 +02:00
Chris MacNaughton 362ce7bac5 rename flatten-bundle to remove-placement 2018-10-10 11:34:31 +02:00
Nicolas Pochet b3996949b8 Add ceph osd tests (#93)
Create functional tests replacing the Amulet tests that are currently used for testing.
2018-10-10 09:09:06 +02:00
Liam Young ff667c76c4 Merge pull request #141 from thedac/series-upgrade-daemons
Juju daemons remain up after pre-series-upgrade
2018-10-09 18:15:57 +01:00
David Ames 58af3438dd Fix completed machines unit tests 2018-10-09 09:09:25 -07:00
Chris MacNaughton 89527526f5 Add support for removing machine placement in a bundle 2018-10-09 17:37:40 +02:00
David Ames 202ab0b86b Fix completed machines 2018-10-05 14:50:10 -07:00
David Ames 06f181beaa Juju daemons remain up after pre-series-upgrade
The latest edge version of juju has the juju daemons remain up after
the completion of the pre-series-upgrade hook. This is a slight change
in behavior which requires a change to the zaza process. But it also
allows us to test for model idleness which we could not do when the
agents were down. This should avoid more race conditions.
2018-10-05 11:03:25 -07:00
Frode Nordahl d60699ca6c Merge pull request #140 from thedac/series-upgrade-ordering
Handle set origin
2018-10-05 16:54:31 +02:00
David Ames 0fba8b8568 Handle set origin
After the series upgrade a config changed hook will fire with openstack
origin or source still set to ubuntu series n-1 which will Traceback.

It is necessary to pause all primary charms which will then allow the
setting of openstack-origin or source to distro after the first unit is
in progress with the series upgrade.
2018-10-05 07:31:19 -07:00
Frode Nordahl 7b6feb2213 Merge pull request #139 from gnuoy/bug/missing-model-disconnect
Ensure new model is disconnected from
2018-10-03 13:31:36 +02:00
Liam Young 7746c2261f Ensure new model is disconnected from
When Controller.add_model is called it returns a model, this model
should be disconnected from otherwise stack-traces like the one
reported in issue #135 occur.
2018-10-03 12:16:57 +01:00
Liam Young 880dc66272 Merge pull request #138 from fnordahl/issue/137
functest-prepare: auto-generate model name when not provided
2018-10-03 11:15:33 +01:00
Frode Nordahl a697a01214 functest-prepare: auto-generate model name when not provided
Fixes #137
2018-10-03 11:46:45 +02:00
Liam Young adea4f7ebe Merge pull request #136 from thedac/completed-machines
Track which machines have been upgraded
2018-09-27 09:05:52 +01:00
David Ames 54718d9ab1 Track which machines have been upgraded
For machines that have multiple application charms running, upgrade
only once. Keep track of which machines have been upgraded.
2018-09-26 15:53:00 -07:00
Liam Young 1d08bbbc38 Merge pull request #134 from thedac/series-upgrade-variations
Allow for variations on series upgrade tests.
2018-09-20 16:45:50 +02:00
David Ames c7e8b047a4 Allow for variations on series upgrade tests.
It is useful to be able to test deployments which are not full OpenStack
deployments with all the required services to launch a VM.

This change creates variations that allow both the full stack tests and
ones that do not assume what has been deployed.
2018-09-20 13:24:14 +00:00
Liam Young 6b2eaca5f0 Merge pull request #132 from fnordahl/feature/add_functional_test
Add self-hosted functional test of Zaza
2018-09-20 14:55:33 +02:00
Liam Young c8c4908951 Merge pull request #133 from ajkavanagh/add-model-to-bundle-log-message
Add model name to bundle log message
2018-09-20 13:55:02 +02:00
Alex Kavanagh a2aeba613d Add model name to bundle log message
This simply adds the model name to the log message that the bundle
is being deployed to so the user can see which model got which bundle.
2018-09-20 10:45:33 +02:00
Frode Nordahl aa115b7546 Add self-hosted functional test of Zaza 2018-09-20 02:29:27 +02:00
Liam Young ef425b975d Merge pull request #131 from ajkavanagh/switch-image-download-to-tmpdir
Change the image download to download to tmpdir as a default
2018-09-19 15:56:55 +02:00
Alex Kavanagh 4bf09fc45a Change the image download to download to tmpdir as a default
This is to prevent (as far as possible) putting the image into the
module under test.
2018-09-19 14:24:51 +02:00
Liam Young 6d9724bdcf Merge pull request #130 from thedac/fix-model-not-found
Update the juju models cache on model add
2018-09-19 14:04:57 +02:00
David Ames 86188d2843 Fix typo 2018-09-19 13:47:10 +02:00
David Ames f6b368db44 Update the juju models cache on model add
Python-libjuju does not update the local cache of juju models on model
create. If no juju switch command or juju models command is run juju
will report model not found.

Issue is being tracked by
https://github.com/juju/python-libjuju/issues/267

Add a juju models command to update the local cache and make the new
model available to the juju binary.
2018-09-19 13:44:23 +02:00
Liam Young 83b59f7ef5 Merge pull request #129 from thedac/non-interactive
Non interactive package upgrades
2018-09-19 11:40:43 +02:00
David Ames b1320cefee Workaround script and files no longer necessary
By setting the DPkg options for non-interactive the workaround script
and files are no longer necessary for the test automation.
2018-09-19 08:55:29 +00:00
David Ames 0b94bef0d7 Set APT to non-interactive on series upgrade
A number of packages were requiring interaction on upgrade even with
do-release-upgrade -f DistUpgradeViewNonInteractive. By setting DPkg
options in apt.conf upgraded packages do the right thing.

Set 'DPkg::options { "--force-confdef"; };' on hosts being upgraded.
2018-09-19 07:34:24 +00:00