Commit Graph

667 Commits

Author SHA1 Message Date
Corey Bryant 72e22a94ed Mock datetime instead of redefining standard library
This fixes up the test to mock the datetime calls specifically in
the test that needs to mock them, rather than the prior approach
which was redefining the behavior of the standard library function
globally.

Closes-Bug: #2045588
Change-Id: I9c585c91c5527a61e4a8dbcba0a8a01108cd9b2e
2023-12-04 15:49:36 -05:00
Corey Bryant ca420eccbb Enable swift payload upgrades for wallaby+
Sync charm-helpers to pick up fix for openstack_upgrade_available
that enables successful payload upgrades. This will need backporting
to stable/wallaby.

https://github.com/openstack-charmers/zaza/pull/619
Closes-Bug: #2040606
Change-Id: Ib1586a486a7a01023bd59bfa70016481ad5f89dc
2023-10-26 08:12:31 -04:00
Alex Kavanagh 955f7e710c Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: I3ca0e47cc8cd0bc8475c0c4b0ef8d013d52401ed
2023-10-23 18:12:50 +01:00
Corey Bryant 8045849848 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/stable

Change-Id: I3dd29fd9d9e5e7057dc50b03a4a3945d1c7178d2
2023-08-02 14:19:09 -04:00
Peter Matulis 20a5dc391f Add docs key and point at Discourse
Add the 'docs' key and point it at a Discourse topic
previously populated with the charm's README contents.

When the new charm revision is released to the Charmhub,
this Discourse-based content will be displayed there. In
the absense of the this new key, the Charmhub's default
behaviour is to display the value of the charm's
'description' key.

Change-Id: Ia0081ac92bcadf638df084e385cc3c0e7af4ecf7
2023-07-07 12:04:28 -04:00
Zuul 51bfe2adca Merge "Add package-upgrade action" 2023-05-31 21:19:51 +00:00
Zuul eb1980f0e3 Merge "conntrack: set sane sysctl defaults" 2023-05-26 14:13:26 +00:00
Corey Bryant 3a5b5872c5 Add package-upgrade action
The package-upgrade action performs package upgrades for the current
OpenStack release.

The code path used is similar to the openstack-upgrade action, with the
difference being that package-upgrade will not execute if an openstack
upgrade is available (based on the openstack-origin setting).

This change includes a charm-helpers sync.

Change-Id: I0c7184bba29731354e52dc28e3a4dd6f282fa843
2023-05-26 15:07:07 +01:00
Corey Bryant 93a1214feb Enable jammy-antelope voting and drop kinetic-zed tests
* Voting was turned on for jammy-antelope in the
  project-template for charm-functional-jobs in zosci-config
* Voting for jammy-antelope bundles with non-standard names
  is turned on in individual charms
* Kinetic-zed bundles/tests are removed

Change-Id: Ie8a668f3ad032af939e87dba1cda18e30a2b13ff
2023-03-29 21:01:51 +00:00
Corey Bryant 545dfc167a Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: I940bf81b4dfaa57df6bf194d40d8a28b01aeb7e5
2023-03-07 21:49:27 +00:00
Liam Young da0f33c95b Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: If35466d52fe4f3301699a29ba14bc10d58adb345
2023-01-18 12:57:20 +00:00
Zuul 2f0f5f10ff Merge "Add Kinetic and Zed support" 2022-09-29 01:37:25 +00:00
Corey Bryant db60b2c03d Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
Depends-On: https://review.opendev.org/c/openstack/charm-swift-proxy/+/847513
2022-09-26 21:08:53 +00:00
Zuul 34b00a0530 Merge "Add vm.watermark_scale_factor tuning" 2022-09-12 10:03:29 +00:00
Brett Milford c6b0d798b7 Add vm.watermark_scale_factor tuning
Depends: https://github.com/juju/charm-helpers/pull/609
Implements: spec memory-fragmentation-tuning
Change-Id: I0195d5f65f36442abf1355dd5150d48a37184e97
2022-09-02 08:53:06 +10:00
James Page d9a8025ac3 conntrack: set sane sysctl defaults
swift-storage is often deployed alongside nova-compute where it
inherits some sane defaults for sysctl values, specifically around
conntrack configuration.

If its deployed standalone it does not recieve the same tuning,
but its very much applicable as access between swift-storage nodes
for rsync traffic is firewall limited so makes a high demand
on conntrack on the server.

Lift and shift the defaults from the nova-compute charm.

Change-Id: Iedd27a51ff93fd1670a418e1434c94875fe21643
Closes-Bug: 1879121
2022-07-11 14:40:52 +01:00
Francesco de Simone 98c67e4d92 Changes to the default inode size
As per the bug report, the xfs-inode-size default value is in contradiction with the current upstream advice.
This patch removes the default value and accept the filesystem defaults for mkfs.xfs inode sizes.

Closes-Bug: #1879423
Change-Id: I9effc6052524ead9817454912284e3c48ce55901
2022-07-04 15:57:30 +00:00
Alex Kavanagh c40f1d531b Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga
- charmhelpers sync

Change-Id: Ie37826e7803659f2f40eaac5f8d539cce5ef145b
2022-04-07 12:31:59 +01:00
Alex Kavanagh 26e45baa26 Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I3559219e8d723dcf23fe107e7585b6f005053224
2022-02-17 12:11:47 -05:00
Alex Kavanagh fc2fd1b649 Migrate charm to charmhub latest/edge track
Change-Id: I99c71d7dc201829ebfd5c9d0d6214f72fe0709ba
2022-01-27 18:02:23 +00:00
Zuul a5b484a253 Merge "Update Makefile to reference Zaza and Python3" 2022-01-11 09:56:45 +00:00
Corey Bryant 3b62cfde31 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39
* add focal-ussuri-gr bundles

Change-Id: I9b34612cbdbbafa5eff8ab3df9e41a97b481c7e2
2021-11-19 07:59:54 -05:00
Alex Kavanagh 90fa306577 Fix yaml.safe_load() and allow py35 tests to complete
Change-Id: Id1aa21f4b6de67a6e03ced2352b45d1080e7760c
2021-10-14 17:37:59 +01:00
Chris MacNaughton e0ed80527f Disable local overlay for the CMR bundles.
Closes-Bug: #1945786
Change-Id: I93ab6d1c19e34fd5001de1dcde978f74793f74ae
2021-10-07 11:12:17 +02:00
Alex Kavanagh 44d15b3fe2 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ie59e35b3c4c9b80ac3579717f54db7017a0efff3
2021-09-29 21:04:42 +00:00
Aurelien Lourot 2adc1dcdef Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Also remove unused applications from bundles for focal-ussuri+ as zaza
is now more aggressive at checking for applications that have no units
during deployment.

Change-Id: Ia16e1d4dc68783577858815c86ae0cb2ffcc9134
2021-07-27 10:17:10 +01:00
Aurelien Lourot 8a7bde93a1 Add impish to metadata.yaml
Change-Id: I9d657f34ee567149a7f0b504776cb40cd1629221
2021-06-18 20:36:44 +00:00
Zuul b4e420d43d Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-15 03:09:23 +00:00
Corey Bryant 5d241dcc2a c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I3deb0f519b9746d632c9c56b7a77fa5efb78fad0
2021-05-13 08:48:00 -04:00
Billy Olsen d39f452353 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ib72b4692e3a970097c365feded241aa4840fe9ad
2021-05-07 05:59:42 -07:00
Alex Kavanagh a173cc6a5b Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libraries sync.

hisute-wallaby test is disabled (moved to dev) due to [1] as bundle may
reference a reactive charm.

[1] https://github.com/juju-solutions/layer-basic/issues/194

Change-Id: I33460b286d635ed000c94e1d8e8f55ad4ff7dd83
2021-05-06 10:21:32 +00:00
Alex Kavanagh 4990afb937 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: Id214883525ba3db9001f367cea3379ee3ffbd003
2021-05-03 16:11:08 +01:00
Alex Kavanagh d82f0a4370 21.04 sync - add 'hirsute' in UBUNTU_RELEASES
The 'hirsute' key in c-h/core/host_factory/ubuntu.py:
UBUNTU_RELEASES had been missed out, and is needed for
hirsute support in many of the charms.  This sync is to
add just that key.  See also [1]

Note that this sync is only for classic charms.

[1] https://github.com/juju/charm-helpers/pull/598

Change-Id: Id5ec1154770c87e18bb2a4244b22354c9d0edfc0
2021-04-11 17:01:03 +01:00
Alex Kavanagh 9e0b2b4fb0 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I4e72dafd2ab198846cb376097dd8a2b7438dedd9
2021-04-03 20:34:29 +01:00
Chris MacNaughton 6beb4e5cc6 Do not duplicate names for CMR jobs
Change-Id: I7e9d216684d467499059480b3190d70e03c27215
2021-03-17 17:14:48 +01:00
Alex Kavanagh 689f3b7dad Add hirsute and remove trusty from metadata.yaml
This update adds the new hirsute Ubuntu release (21.04) and
removes trusty support (14.04 which is EOL at 21.04).

Change-Id: I6d15bbd54d384f3a658eb72418a2895bf9631927
2021-03-02 21:04:59 +00:00
Zuul 5048027372 Merge "Add new osci.yaml" 2021-03-02 10:29:08 +00:00
Zuul fda297cf24 Merge "Fix swift replication errors" 2021-03-01 15:51:27 +00:00
Chris MacNaughton 3028939d84 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: Id44d2037d5743bc882388141d726194c51d82fbf
2021-02-23 11:30:02 +01:00
Alex Kavanagh 19d5010902 Hotfix charmhelpers sync for local_address() fix
The network-get --primary-address juju-info fails on pre-2.8.?
versions of juju.  This results in a NoNetworkBinding error.
Fallback to unit_get() if that occurs for local_address().

Change-Id: Icfa65b0e02060e63fa90a57cd95da1dcac729c06
2021-01-20 12:26:47 +00:00
Alex Kavanagh 61d3a4d9ae Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: I4a1e9239e40d27d48e48b9e5241240eff9689a3d
2021-01-15 16:09:33 +00:00
Zuul 250f901cb7 Merge "Updates for testing period for 20.01 release" 2021-01-13 20:31:22 +00:00
Alex Kavanagh e329b52252 Updates for testing period for 20.01 release
* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: Ic9c930a58afa9e1e849e61581b9cca588cc48529
2021-01-12 15:44:24 +00:00
Aurelien Lourot 216ba766e7 Remove Disco and Eoan bits
Change-Id: I6d7c6e27fa746fa502b5d5efabe36cb029df78f5
2021-01-12 14:04:38 +01:00
Erlon R. Cruz 4337b753f5 Fix swift replication errors
There are several errors related to the swift replication service.
The swift storage charm is not properly restarting the services
after configuration changes, the correct object_lockup_timeout
value (that per the behaviour observerd in our environments must
be greater than object_rsync_timeout) and we also needed to fix
the object replicator config file to honor the
object-handoffs-first configuration.

This patch along with the swift proxy-change should fix the
currently known replication problems.

Closes-bug: #1903762
Depends-on: I87eb23de94e3f2f5b06d44df1f8bd9d2324456a0
Change-Id: I87eb23de94e3f2f5b06d44df1f8bd9d2324c8470
2021-01-05 11:19:13 -03:00
Aurelien Lourot 1e287bdd51 Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: If5dcba453316a8d67fe4287288b928008005e1e9
2020-12-11 14:04:54 +01:00
Aurelien Lourot 5df44cb7c5 Add Groovy to the test gate
Change-Id: Ib517eb372a07824f14e450203bf8d5784d931e67
2020-11-05 12:54:56 +01:00
Corey Bryant 821c61a4bd Add swift 2.26.0 version for victoria
Cherry-pick from 21f9f239c4

Change-Id: I84ada78c1f94974d1899a38c437073a17d5960ab
2020-10-13 19:30:01 +00:00
Chris MacNaughton d1b2a737f2 Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: Idab61ae33fef40f065b22dc1bed460a73c6d58db
2020-10-12 11:24:33 +02:00
Alex Kavanagh 494908cee7 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I28bc6125b817c2f1608157509c27d54dab9541a5
2020-09-27 19:20:00 +01:00