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
Liam Young
8843b6bb5a
Merge pull request #128 from thedac/series-upgrade-validation
...
Fix LTSGuestCreateTest.setUpClass
2018-09-18 15:08:44 +02:00
David Ames
6ecbad1a86
Fix LTSGuestCreateTest.setUpClass
2018-09-18 12:59:30 +00:00
Frode Nordahl
4c571b34f5
Merge pull request #127 from thedac/series-upgrade-validation
...
Enable LTS launch instance on series upgrade test
2018-09-18 11:03:00 +02:00
David Ames
50da3de319
Enable LTS launch instance on series upgrade test
2018-09-18 08:56:07 +00:00
Liam Young
3b89132f6f
Merge pull request #126 from thedac/get-project-id
...
Fix get_project_id
2018-09-18 10:48:30 +02:00
David Ames
a1d152e737
Fix get_project_id
2018-09-18 08:38:02 +00:00
Liam Young
8e6a3e47f7
Merge pull request #125 from thedac/multi-series
...
Classes for different upgrade scenarios
2018-09-14 10:09:29 +01:00
David Ames
e33af35103
Allow different workaround files per series
2018-09-13 17:05:07 -07:00
David Ames
a093a17bb3
Classes for different upgrade scenarios
2018-09-13 14:34:26 -07:00
Liam Young
d8df798b82
Merge pull request #118 from thedac/series-upgrade
...
Series upgrade
2018-09-12 16:30:39 +01:00
David Ames
c5fe6ce723
Move upgrade series functions to zaza.model
...
Moving the upgrade series functions to zaza.model. Once the feature
stabilizes we can add functionality to libjuju and remove the
subprocess calls.
2018-09-12 08:22:09 -07:00
David Ames
8874fc7961
Fix docstrings
2018-09-12 08:22:09 -07:00
David Ames
9e24be435e
Fix launch_small_instance in charm_tests
2018-09-12 08:21:51 -07:00
David Ames
e893cc4b40
Do not wait for idleness after pre-series-upgrade
...
The pre-series-upgrade hook stops the juju agent. This can cause the
juju wait for idleness to wait forever. Wait for the expected workload
status instead.
2018-09-12 08:20:45 -07:00
David Ames
c4182197d4
Use block_until_unit_wl_status for upgrade timing
...
Remove all calls to time.sleep and use block_until_unit_wl_status to
manage the timing of the upgrade steps.
Also use run_via_ssh to execute commands while the juju agents are down
during a series upgrade.
2018-09-12 08:20:45 -07:00
David Ames
a83c3c4d2a
Pass upgrade workaround files for standalone test
2018-09-12 08:20:45 -07:00