Commit Graph

1278 Commits

Author SHA1 Message Date
Jorge Merlino 07da644b2b Add parameters to cinder backend configuration
Add configuration parameters cinder_store_user_name,
cinder_store_password, cinder_store_project_name and
cinder_store_auth_address to cinder volume type backend configuration.
This avoids a glance_store bug that prevents glance-api from starting.

Closes-Bug: #2052726
Change-Id: I4b6ca32ed426f77a326711c2457046dbda594e77
2024-03-21 14:49:34 -03:00
Alex Kavanagh d9e52f7869 Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.

Change-Id: Iaf999d23f918f9e3556a92852eec60c6e7cde9a3
2024-02-24 20:11:37 +00:00
Zuul 7aaa32fe11 Merge "Updates for caracal testing support" 2024-02-17 02:19:49 +00:00
Alex Kavanagh e65eaf3151 Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: If2944411e04d21448f518b701f74a35ae39cd20e
2024-02-12 18:19:33 +00:00
James Page cfb228fc43
Fix check for internal endpoint enablement
For cinder volume backend sections, ensure that enabling internal
endpoint usage for service access does not completely clear the
existing content of the section.

Change-Id: I383a0794e924db3c7f4ce47d1e3b88355c2475e4
Closes-Bug: 2052726
2024-02-12 17:14:55 +00:00
Alan Baghumian 59efce8bc8 Restore original paste files if glance-common
re-installation does not restore them.

Implemented a unit test function for the above
scenario.

Call apt_update from upgrade_charm().

Closes-Bug: #2042792

Change-Id: I57c5fa293b421483b0879f24ddac260e47c7cbef
2023-11-08 16:45:21 -08:00
Alex Kavanagh ad0097b5e6 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: I7b0d02c915e2f7ae1d6d86cd829895530643de45
2023-10-24 20:04:08 +01:00
Alex Kavanagh e78568ebb2 Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation.  Fix in charmhelpers is in [1].

[1] https://github.com/juju/charm-helpers/pull/824
Closes-Bug: #2028683

Change-Id: I071037fbef7940e447d6aaefa61e38b988b37e66
2023-09-15 15:51:12 -04:00
Corey Bryant bc8ee3ef8e 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

Depends-On: https://review.opendev.org/c/openstack/charm-ceph-radosgw/+/890700
Change-Id: I6136bff2e755afbd50c607782351d1d720a525fa
2023-08-14 17:23:52 +00:00
Rafael Lopez 0a1d645000 Add configuration option for custom image properties
Added configuration for injecting default image properties using the
interoperable image import process. This change adds 1 configuration
option to the charm:
- 'custom-import-properties' to specify the desired custom properties

Note: current glance docs example shows incorrect quoting, the
implemented format in this change (no quotes) is correct. Docs fix
in: https://review.opendev.org/c/openstack/glance/+/890423

Release note: https://review.opendev.org/c/openstack/charm-guide/+/891010

Closes-Bug: 1994053
Related-Bug: 2028895
Change-Id: I9548c90e663285c6e7a70eebc8c135a5568974bc
2023-08-10 04:47:17 +00:00
Jadon Naas fe0cfb0134 Add docs key and point at Discourse
Add the 'docs' key and point it at the 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: I8105c5e90d0e8054f26f21fbd29cb80bebe7aa39
2023-07-11 15:14:36 -04:00
Corey Bryant f6212eac8b 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
* Sync charm-helpers to pick up fix for os_requires_version()

Change-Id: I9d44ab27409530e4690121e6ab7e3fdfeeda3071
2023-04-14 13:11:51 +00:00
Corey Bryant bc9c435dbc 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: I3840ac8ad4fd20978cf12e4a64fb4cf3fbc7f954
2023-03-07 20:07:26 +00:00
Zuul c9b6b6b471 Merge "Change doc example for a better one" 2023-02-17 20:06:25 +00:00
Guillaume Boutry ef5d6de615
Backup glance registry configuration files on upgrade >= Stein
Glance Registry has been deprecated in Stein release.
Leftover configuration files can still be read and
configure wrong settings, breaking deployment.

Closes-Bug: 1979090
Change-Id: I54b72aef0fd49b036cf1783ef9887fa9243c93f8
2023-02-14 08:09:23 +01:00
Gabriel Cocenza 96a2bb3af9 Add support for HAProxy L7 checks
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default)

Closes-Bug: #1880610
Change-Id: I81d7fd67029dd5025f95b41d788b03ce4b6038bb
2023-01-17 18:06:05 -03:00
Liam Young fbedaf36bd Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: If694d62772142e180a767a84ca2c0810a5a42e43
2023-01-16 10:28:22 +00:00
Felipe Reyes ca1524b41a Drop 'source' config key from support charms
Support charms (e.g. rabbitmq-server and mysql-innodb-cluster) source
their packages from distro and never from the cloud archive, this change
drops the set of that configuration key.

Change-Id: I129713bb3845c1d0264bc4e17bb297724d23ac6b
2022-10-26 10:46:55 -03:00
Corey Bryant 4d29d4792e Ensure openstack-release package is correct after install hook
The linked bug shows the install of the charm with openstack-origin set
to zed.  This happens because configure_installation_source() causes the
openstack-release package to be installed *before* the zed cloud archive
sources are configured into /etc/apt and an apt update done. This means
that the openstack-release package says "yoga" despite the zed packages
actually being installed.

Then, on the config-changed hook, it sees that the installed version is
showing as yoga and tries to do an upgrade.  This fails, as the charm
hasn't yet bootstrapped, and the charm tries to bootstrap after
upgrading the packages.

There's a few bugs here which are exposed, but the tactical fix is to
force the openstack-release to match the installed packages.

Closes-Bug: #1989538
Change-Id: Ic1cf491e1121f4fee3e57862fd1cc0315d3953da
2022-10-04 19:38:18 +00:00
Alex Kavanagh e062ab667f Ensure that kinetic/22.10 is enabled
This patch adds kinetic to the metadata.yaml and ensures
that a run-on base for 22.10 is added in the
charmcraft.yaml

Change-Id: I3c7f71afa45d6416ba27677bbad3e4f70ec414ea
2022-08-31 19:59:50 +01:00
Corey Bryant 021c4256a7 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: Iff2f3d0e011b47d895136ab7376f0e7d9c3955fb
2022-08-26 18:40:33 +00:00
Jorge Merlino 7a967b4e0b Change doc example for a better one
Change-Id: I3dc04d97276d78b5feb6145f7f4b16007c8c004c
2022-07-05 15:29:31 -03:00
Jorge Merlino 1c02b49817 Add information to image-conversion config parameter
Change-Id: I6676d20c7529fa47a387b3bb538de3f95399a71a
2022-05-26 17:30:24 -03:00
Hemanth Nakkina df4ef60bec Change cinder-state-transition-timeout default value to 300
The defaults for cinder-state-transition-timeout in openstack
glance is 300. Change the charm configuration as well to set
the same value.

Related-Bug: #1905042
Change-Id: I8add26e9fc23dffac75ded29673d50c7fcc48a6f
2022-04-21 10:00:46 +05:30
Alex Kavanagh be13489b15 charm-helpers sync to include pci
Change-Id: I566404ca79dca682183d412b985838097f61ab86
2022-04-07 12:13:35 +01:00
Alex Kavanagh ba56ad1098 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

Change-Id: I3b35d399a2aa2656ba1aa45c54a398923582ef30
2022-04-06 11:08:23 +01:00
Edward Hope-Morley d2546d56be Sync charmhelpers to get fixes
Change-Id: I99007f5446fd930c23d10808dee9389c1f474f1c
Related-Bug: #1965967
2022-03-28 11:33:11 +01:00
Alex Kavanagh e2255c29dd 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: I816a3034b055433a7688ac1165017c25f7fcf873
2022-02-15 16:10:36 +00:00
Hemanth Nakkina c2f877a7d4 Add support for cinder storage backend
Create new glance_api.conf template from Ussuri release to
use default_backend and enabled_backends configuration
parameters instead of deprecated stores, default_store
parameters.
Add new config option cinder-volume-types to specify the
volume types in cinder that can be used to store glance
images.
Add logic to update cinder in glance-api configurations
if cinder-volume-service relation is joined.

Also add two flags, cinder_http_retries and
cinder_state_transition_timeout

Closes-Bug: #1905042
Change-Id: Ife649defc9b765b433d7973ab31778f9cb1efdd9
2022-02-07 08:46:14 +05:30
Alex Kavanagh 3c32cab855 Migrate charm to charmhub latest/edge track
Change-Id: I0e037fd484a7a77b15095caa1f350e638410fcb6
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-01 13:06:14 +01:00
Hervé Beraud 4c7ebb7cf9 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I3286f03d977e6f602f0f50dac0646534d1d6f305
2021-12-15 10:22:40 +00:00
Corey Bryant db007f32f6 Switch to yoga unit jobs and add py39
Change-Id: I42fa8b1d13b5d52c7c880ff68adfd82f5c3eb4ce
2021-11-17 14:47:00 -05:00
Zuul dafd17a29e Merge "Remove trusty/xenial metadata and function tests" 2021-11-15 10:04:38 +00:00
Corey Bryant 1e24f0c4cf Remove trusty/xenial metadata and function tests
Drop xenial metadata and function tests as the next release of
the charms won't support xenial.

Change-Id: Ia21075352add103592ffcdf7666c28dee32fcd96
2021-11-12 11:05:00 -05:00
Alex Kavanagh b84e235904 Remove 'jammy' metadata - unblock gate
The charmstore doesn't accept charms with jammy metadata yet.

Change-Id: Ib813e610c537b19d9f777765bd2af135e342f14c
2021-11-12 11:01:32 +00:00
Corey Bryant 7704576a46 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove groovy bundles

Change-Id: I8226658c97575e3a0ccf0989a2690716afb2ac5e
2021-11-09 10:27:03 -05:00
Zuul ad71b06a00 Merge "Disable expose_image_locations whenever S3 is enabled" 2021-10-06 00:10:57 +00:00
Alex Kavanagh 99440f370f Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I5cf40c1d44ffac42f2a21615c2969ffcc9d1910b
2021-09-29 20:01:27 +00:00
Nobuto Murata cacc3d5a5b Disable expose_image_locations whenever S3 is enabled
This is a follow-up change on Id2e9d4351513341b5ee41fa8a8d677aca6580fca
Instead of relying users to set expose-image-locations=false which is
error prone, disable expose_image_locations from the charm side whenever
S3 backend is enabled not to expose credentials.

Closes-Bug: 1935743
Change-Id: Iac0f27418eec6c818df8cc3fa1c133db38d26069
2021-09-22 22:09:37 +09:00
Aurelien Lourot 434ab4b5ee Use new tempest Zaza test class
Change-Id: I149660d2a2e1f70b63d08a0ec343306fd19c316f
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/635
2021-09-16 12:47:41 +02:00
Zuul cd107a6211 Merge "Test bundles for focal-wallaby and hirsute-wallaby" 2021-09-16 09:05:30 +00:00
Alex Kavanagh febc35ea36 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Sync libraries.

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: I39929fbe3626c83e985d6fb9b21422a1b17e81d1
2021-09-15 15:49:17 -07:00
Alex Kavanagh 638c9b6cb5 Sync charmhelpers for xena install support
This is a pre-xena-bundles sync so that other charms that
depend on this can be merged.

Change-Id: I7f17acb4cc4a83fc15655bf6e15c8ff3b3fe92ff
2021-09-14 10:45:54 +01:00
Peter Matulis accb194b74 Clarify multiple backend support
* Minor corrections

* Minor rewording

* Add Documentation section as per README template

Change-Id: I3ce454a2dcc976a25ae5e82f55a522ff07442374
2021-09-02 16:43:14 -04:00
Aurelien Lourot 801a9a1888 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

Change-Id: Ia4c682988ae9200b864fb75ad60899cdddb188c1
2021-07-22 14:54:08 +02:00
Nobuto Murata b01a246a4d Put a clear instruction not to expose S3 creds
Change-Id: Id2e9d4351513341b5ee41fa8a8d677aca6580fca
2021-07-07 11:31:51 +09:00
Nobuto Murata a6dc972b09 Allow enabling S3 object storage backend
S3 backend has been available (again) since Ussuri in the upstream
Glance. We will enable the backend with config options for an external
S3 storage information.

Co-authored-by: Connor Chamberlain <connor.chamberlain@canonical.com>
Co-authored-by: Vladimir Grevtsev <vladimir.grevtsev@canonical.com>
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/574
Closes-Bug: #1919338
Change-Id: Id76a74cc6041b9c3364399254681138475f19935
2021-06-10 21:26:14 +09:00
Zuul b1cae3160a Merge "Add impish to metadata.yaml" 2021-06-07 11:21:51 +00:00
Zuul ea1c7f43e6 Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-04 18:39:00 +00:00
Aurelien Lourot 6aed7471fc Add impish to metadata.yaml
Change-Id: I077d6f2a11b37b23cae9328475b99dba707636c0
2021-06-03 11:11:57 +02:00