Commit Graph

310 Commits

Author SHA1 Message Date
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
David Ames
fb67806fc6 Use status output for block_until_unit_wl_status
unit.workload_status was actually reporting the application workload
status. Using the full status output from model.get_status() gives us
unit by unit workload status.

Updated block_until_unit_wl_status to use the full status output to
correctly block per unit.
2018-09-12 08:20:45 -07:00
David Ames
77c57df9c6 Must use the snap version of agents when using edge version of juju 2018-09-12 08:20:45 -07:00
David Ames
35f3f547e0 Revert LOCAL_OVERLAY_TEMPLATE removal 2018-09-12 08:20:45 -07:00
David Ames
c80f057eb6 Parameterize workarounds 2018-09-12 08:20:45 -07:00
David Ames
4eb3c2e744 Set model on subprocess juju cmds 2018-09-12 08:20:45 -07:00
David Ames
30082c2311 Series Upgrade
Utilities for performing series upgrades.
Place holder for future stand alone series upgrade zaza test.
Small change to overlay template to allow stand alone zaza tests.
2018-09-12 08:20:45 -07:00
David Ames
be4eee176e Place holder for future standalone series upgrade
Pure standalone tests are not quite ready yet. But this is a place
holder for the series upgrade tests.
2018-09-12 08:20:45 -07:00
David Ames
056047d93c Allow non-charm standalone tests 2018-09-12 08:20:45 -07:00
David Ames
7f118b1cc3 Merge pull request #124 from gnuoy/nova-launch-noop-fixes
Fixes related to guest creation tests.
2018-09-12 08:14:34 -07:00
Liam Young
0c82de5d83 Make image name configurable in glance. 2018-09-12 08:12:42 +00:00
Liam Young
b2a33a451a Fixes related to guest creation tests.
* Make image creation a noop if image already exists
* Two admin projects are created, one in the default domain and
  one in the admin domain. To differentiate between them specify the
  admin domain when searching for the project id. This, in turn, ensures
  that the security group rules are applied to the correct 'default' security
  group.
* Fix cirros image name
2018-09-12 06:32:21 +00:00
Chris MacNaughton
2e45965a73 Merge pull request #123 from thedac/liberty-scope
Undercloud keystone scope
2018-09-05 16:40:53 +02:00
David Ames
89e1660be3 Undercloud keystone scope
The get_undercloud_keystone_session function was mistakenly using the
get_keystone_scope function. The get_keystone_scope function is only
for use with the overcloud.

Use of the get_keystone_scope function mistakenly caused undercloud
authentication to mix overcloud authentication.

We would only see this when the overcloud is Liberty because only
liberty uses scope=DOMAIN with keystone v3.
2018-08-31 15:20:35 -07:00
Frode Nordahl
001c3f8c03 Merge pull request #121 from n-pochet/fix-tox-venv-error
Modify the venv tox environment
2018-08-24 15:40:48 +02:00
Frode Nordahl
d37c44c56a Merge pull request #122 from n-pochet/fix-documentation
Add logging parameter in CLI in documentation
2018-08-24 15:40:10 +02:00
Nicolas Pochet
5ce272255f Add logging parameter in CLI in documentation 2018-08-24 09:41:01 +02:00
Nicolas Pochet
4d613bccc1 Modify the venv tox environment
* Make it target python3
* Install the necessary dependencies
* Use /bin/true to not raise error when using it via `tox -e venv`
2018-08-24 09:20:53 +02:00
Frode Nordahl
9eda316756 Merge pull request #119 from fnordahl/pause-lead-unit-in-key-rotation-test
Pause lead unit in key rotation test
2018-08-20 11:35:21 +02:00
Frode Nordahl
2a95ff617a Merge pull request #120 from n-pochet/enable-logging-levels
Add logging level configuration for all functest-*
2018-08-20 11:35:07 +02:00
Nicolas Pochet
d6fa8799d3 Add logging level configuration for all functest-*
Fixes #117
2018-08-20 11:05:38 +02:00
Frode Nordahl
0418cb4d26 Pause lead unit during key rotation test
Related LP: #1787719
2018-08-20 09:51:16 +02:00
Frode Nordahl
81153b7516 Use lead unit instead of first unit 2018-08-20 09:50:56 +02:00
Frode Nordahl
f4f25716a2 Add get_lead_unit_name function 2018-08-20 09:49:55 +02:00
Frode Nordahl
6c5e06ed86 Merge pull request #109 from n-pochet/unit-from-name
Make `get_unit_from_name` use `model_name`
2018-08-17 09:01:48 +02:00
Nicolas Pochet
7b1441d953 Make get_unit_from_name use model_name 2018-08-17 08:58:16 +02:00
Frode Nordahl
2c39eb2c7a Merge pull request #110 from n-pochet/add-exception
Add `CommandRunFailed` exception
2018-08-17 08:44:50 +02:00
Nicolas Pochet
fb39813bb1 Add CommandRunFailed exception
Add exception to make the exception's message building easier.
2018-08-17 08:23:39 +02:00
Frode Nordahl
968a61a922 Merge pull request #116 from fnordahl/issues/115
Check already applied config before attempting to set
2018-08-17 08:05:44 +02:00
Frode Nordahl
76d2576046 Check already applied config before attempting to set
Fixes #115
2018-08-17 07:35:46 +02:00
Frode Nordahl
b6ecef8eec Merge pull request #114 from fnordahl/issue/113
Fix race in `test_utils.config_change()`
2018-08-16 14:54:59 +02:00
Frode Nordahl
4726db35af Fix race in test_utils.config_change()
When changing config we have a race that make the idle/ready
check run *before* the `config-changed` hook has started executing
on units.  Subsequently tests are sometimes executed before or while
configuration change is in progress, leading to intermittent false
negative test failures.

Fixes #113
2018-08-16 14:48:20 +02:00