Commit Graph

2027 Commits

Author SHA1 Message Date
Liam Young 1191515eb3 Make run_package_change_test more robust (#694)
* Make run_package_change_test more robust

The run_package_change_test disables auto restarts and then
simulates a packages update. It then checks the service has been
marked as in need of restarting. However bug #1955498 shows that
if a new service is introduced that restarts a disabled service
then this is not picked up by the tests.

This change queries the last active time of a service proir to
the package being updated. If this changes after the package
reconfiguration then the service has incorrectly been restarted.

Depends-On: https://github.com/openstack-charmers/zaza/pull/478

* Log success too
2022-01-22 09:18:19 +00:00
Felipe Reyes 7d5d34b7c4 Retry find_cirros_image() on URLError (#695)
There are situations where the DNS infrastructure hasn't been stable and
many CI jobs have failed with the error:

  urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>

This change decorates the function find_cirros_image() to retry and give
the job more chances of recovering from the DNS failures.
2022-01-20 14:15:50 +00:00
Aurelien Lourot 91fe18103d Merge pull request #688 from ajkavanagh/switch-public-address-to-get-public-address
Switch unit.public_address to unit.get_public_address()
2022-01-14 16:46:19 +01:00
Alex Kavanagh 70ae1ab605 Remove commented out line. 2022-01-14 15:40:41 +00:00
Alex Kavanagh 1d415da690 Update test_get_keystone_ip__from_unit() test
Update the test to mock zaza.model.get_unit_public_address() to match
the associated changes in zaza for getting public address with juju 2.9
2022-01-14 15:21:32 +00:00
Alex Kavanagh 0af4c93d52 Switch unit.public_address to unit.get_public_address()
Due to the bug [1] on OpenStack providers, unit.public_address doesn't
actually work reliably.  The fix [2] is only for the async function
unit.get_public_address().  Sadly, zaza relied on unit.public_address
and so it needs this patch for juju 2.9 support on OpenStack providers.

This patch relies on an associated patch in zaza [3]; thus this will
fails its tests until that passes.

[1]: https://github.com/juju/python-libjuju/issues/551
[2]: https://github.com/juju/python-libjuju/pull/600
[3]: https://github.com/openstack-charmers/zaza/pull/468
2022-01-14 15:21:32 +00:00
coreycb 04d388ca70 Use full binary paths for neutron test_901_pause_resume (#686)
When pgrep_full=True is used, the resulting pgrep can match
more binaries than expected if the search pattern isn't specific
enough. This change makes the search patterns more specific
in order to only match the expected binaries.

Closes-Bug: #1933338
2022-01-13 18:26:33 +00:00
Basdbruijne 139919b635 add glance-simplestreams-syns to openstack upgrade exclude list (#691)
* add glance-simplestreams-syns to openstack upgrade exclude list
* fix formatting

Authored-by: Bas de Bruijne <bas.debruijne@canonical.com>
2022-01-13 18:24:42 +00:00
James Page 2bb4271530 Merge pull request #328 from afreiberger/bug/1882250
Add functional testing of set-weight action and resulting replication
2022-01-11 09:18:43 +00:00
Chris MacNaughton 0550c206a6 Merge pull request #690 from ajkavanagh/bug/689
Enable get_keystone_ip() to work with multiple vips config
2022-01-07 18:41:52 +01:00
Alex Kavanagh 1fbd505e27 Enable get_keystone_ip() to work with multiple vips config
The keystone charm allows multiple VIP addresses to be configured via
the 'vip' config parameter.  Unfortunately, get_keystone_ip() didn't
support this.  This patch adds that support, plus the missing tests.

Closes: #689
2022-01-07 16:56:22 +00:00
Aurelien Lourot 372bab5c48 Merge pull request #684 from gnuoy/bug/1949372
Search for message in rabbit tests
2021-12-14 14:33:54 +01:00
Liam Young e83591033b Remove tenacity around message search 2021-12-14 11:53:06 +00:00
Liam Young ce18b4a2a0 Fix reraising for RmqNoMessageException 2021-12-14 11:09:41 +00:00
Liam Young 87c72a510e Fix bug when no message is present 2021-12-14 09:02:16 +00:00
Liam Young 908f0b4a3b Search for message in rabbit tests
The current rabbit tests post a message on one unit and then
consumes the first message on another unit. If the two do not match
then the test fails. This means that a single pre-existing message
can break all these tests as the consumer always gets the wrong
message. This change updates the tests to search for the target
message rather than assuming that the first message is the target
message.

Messages that are not the target message are not reposted so any
pre-existing messages are consumed and in effect thrown away but
given these are all test messages in a test queue and the tests do
not run in parallel this should be fine.
2021-12-14 08:06:58 +00:00
Aurelien Lourot 0e13f606be Merge pull request #679 from ajkavanagh/filter-percona-at-focal
Ensure that series upgrades ignore percona at focal
2021-12-08 10:15:50 +01:00
coreycb cca753cb97 Merge pull request #681 from AurelienLourot/ceilometer-agent-pause-resume
Skip CeilometerTest.test_901_pause_resume for ceilometer-agent
2021-12-01 11:48:53 -05:00
Aurelien Lourot 3e7ac87a79 Skip CeilometerTest.test_901_pause_resume for ceilometer-agent
The ceilometer-agent charm doesn't have pause/resume
actions anymore. The ceilometer charm still does.

See https://bugs.launchpad.net/charm-ceilometer-agent/+bug/1952882
2021-12-01 11:49:30 +01:00
hemanthnakkina 1a1dc0a79e Add glance tests for Cinder Storage backend (#680)
Add zaza tests for charm glance when cinder is configured
as storage backend.

Related-Bug: LP#1905042

Co-authored-by: Hemanth Nakkina <hemanth.nakkina@canonical.com>
2021-12-01 10:20:08 +00:00
Alex Kavanagh d4d415c859 Ensure that series upgrades ignore percona at focal
When doing a series upgrade from bionic to focal, the percona-cluster
charm needs to be avoided.  This filters the applications for percona if
the target is focal.  Note if percona is placed on the same unit as
something else that needs to be upgraded (bad idea) then it may still
get 'upgraded' and the operation will fail.
2021-11-30 18:50:14 +00:00
Aurelien Lourot a0b4d15dc6 Remove deprecation warnings (#676)
Change-Id: I354d1a62c77aa1fa38f4be4615f264bc08f7795b
2021-11-29 09:27:06 +00:00
Liam Young c16bba2705 Merge pull request #668 from javacruft/rabbitmq-new-configuration
Support new style RMQ conf files
2021-11-23 14:29:57 +00:00
Aurelien Lourot 9040cef609 Merge pull request #600 from zhhuabj/hm-port
Delete hm port on unit removal
2021-11-23 14:17:00 +01:00
Zhang Hua 4cbee5bfd2 Delete hm port on unit removal - part 4 - disabled test 2021-11-23 09:37:31 +08:00
Felipe Reyes b3194e9c1f Merge pull request #670 from coreycb/v3-endpoint
Authenticate with cinder v3 endpoint by default
2021-11-22 16:46:52 -03:00
Corey Bryant 1eaa2233c1 Authenticate with cinder v3 endpoint by default
The v3 endpoint has been supported by the charms since Pike,
and the V2 endpoint was removed in Xena, therefore it makes
to use the v3 endpoint by default at this point.
2021-11-22 09:56:16 -05:00
Chris MacNaughton c9834315f9 Merge pull request #669 from freyes/bug/1951650
Use yaml.safe_load()
2021-11-22 14:45:45 +01:00
Felipe Reyes 29b569df13 Use yaml.safe_load()
Pyyaml>=6.0 requires to pass the Loader arg to yaml.load(), switching to
yaml.safe_load() recovers the old and expected behavior.

https://github.com/yaml/pyyaml/pull/561

Closes-Bug: #1951650
2021-11-22 10:37:06 -03:00
James Page f877ae0a36 Support new style RMQ conf files
The rabbitmq-server charm now uses INI style .conf files for
releases that support the new style of configuration.

Update SSL checks to look for this file first and then fallback
to the older .config filename if not found
2021-11-15 10:57:35 +00:00
Aurelien Lourot 9f2ca38de9 Merge pull request #656 from Barteus/master
Swift proxy remove devices test added
2021-11-10 12:33:02 +01:00
Bartlomiej Poniecki-Klotz 29799dfee3 Unit test comment fix. 2021-11-10 12:18:58 +01:00
Aurelien Lourot c6467d1da0 Merge pull request #665 from coreycb/skip-failing-ceph
Skip failing ceph test
2021-11-08 16:47:26 +01:00
Chris MacNaughton 33aa182a2f Merge pull request #666 from AurelienLourot/data-port-to-be-set
Support 'to-be-set' value for 'data-port'
2021-11-05 11:34:26 +01:00
Aurelien Lourot 50353b4625 Support 'to-be-set' value for 'data-port'
See https://github.com/openstack-charmers/openstack-bundles/pull/228
2021-11-04 14:59:23 +01:00
Corey Bryant 11f956b81b Skip failing ceph test
Skip test_ceph_pool_creation_with_text_file for releases >= victoria
until the issue is properly fixed.

This works around issue #647
2021-11-03 21:24:45 +00:00
Aurelien Lourot 7f516a1e7b Support OVN charms in automated OpenStack upgrade (#655)
* Support OVN charms in automated OpenStack upgrade

* Add ovn-dedicated-chassis to the list of control plane principal charms

Change-Id: I857513f130091e218a60eaf54eaf63527c00f5e5
2021-11-02 14:54:04 +01:00
Bartlomiej Poniecki-Klotz 873eb80264 Swift proxy remove devices test added.
Functional test for multi zone deployment was added.
The functional test removes the devices in region1 zone3 then uploads a new object. The check is to return object header data.
2021-10-29 15:19:51 +02:00
Bartłomiej Poniecki-Klotz c5ff8dff5d Merge branch 'openstack-charmers:master' into master 2021-10-28 15:39:35 +02:00
Zhang Hua eb3b3eb97c Merge branch 'master' into hm-port 2021-10-28 21:16:43 +08:00
Liam Young 14999ca1a1 Add two more auto initialise options (#664) 2021-10-28 11:16:58 +01:00
Aurelien Lourot 757250c30a Merge pull request #663 from gnuoy/add-opportunistic-vault-unlock
Add auto_initialize_opportunistic
2021-10-28 10:56:44 +02:00
Liam Young 5b2ef5df9b Add auto_initialize_opportunistic
Add a method which will init vault if its present and skip if it
is not. This allows much simpler tests.yaml if all test and
config steps are the same for TLS and non-TLS test cases apart
from initialising vault.
2021-10-28 08:08:19 +00:00
Aurelien Lourot 858c85c61f Merge pull request #659 from ajkavanagh/pin-pyparsing-for-aodhclient
Pin pyparsing to work with pinned version of aodhclient
2021-10-25 16:31:16 +02:00
Alex Kavanagh ae50ed3199 Pin pyparsing to work with pinned version of aodhclient
aodhclient is pinned at 1.4.0 and pyparsing needs to be pinned at <
3.0.0 to work with.  Note zaza also pins pyparsing as many, many modules
use pyparsing and if zaza gets installed first ti might break pip
resolution.
2021-10-25 15:01:25 +01:00
Bartlomiej Poniecki-Klotz da896ce00e Swift proxy remove devices test added 2021-10-22 12:41:29 +02:00
Aurelien Lourot cc291b8400 Extend OPENSTACK_CODENAMES up to Yoga (#654)
This dict is used in the OpenStack upgrade tests in
order to automatically determine the next release and
set the openstack-origin accordingly.

Also taking the opportunity to extend neighboring
lists.
2021-10-18 09:18:39 +01:00
Chris MacNaughton e4bc7c3866 Merge pull request #653 from coreycb/volume-v3
Favor the V3 volume endpoint for tempest config
2021-10-14 16:57:59 +02:00
Corey Bryant 860a9fd76c Favor the V3 volume endpoint for tempest config
If the V3 volume endpoint is available, use it for tempest testing.
The V2 volume endpoint is removed in OpenStack Xena, so this allows
us to use the latest available endpoint.
2021-10-14 14:51:31 +00:00
Zhang Hua 825cc8b266 Delete hm port on unit removal - part 3
This is Zaza functional test for lp:1915512. Add a unit and then remove a unit,
then query the list of ports to check that the port has been deleted.

Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/787700
2021-10-12 19:11:38 +08:00