* Update charm-glance from branch 'master'
to d9e52f7869b566582815d3a473d543e7d88c4466
- Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.
Change-Id: Iaf999d23f918f9e3556a92852eec60c6e7cde9a3
* Update charm-glance from branch 'master'
to 7aaa32fe11fb679aae592e93872600b5a06daf8b
- Merge "Updates for caracal testing support"
- 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
* Update charm-glance from branch 'master'
to cfb228fc43ef29764295cefb45407162143cee09
- 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
* Update charm-glance from branch 'master'
to 59efce8bc81fc7800d2cb6ba696028832063a6e0
- 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
* Update charm-glance from branch 'master'
to ad0097b5e63ff8e8f6fc9569f019cdfcf6049a7d
- 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
* Update charm-glance from branch 'master'
to e78568ebb2dc34da36b617553defae837e836bbb
- 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
* Update charm-glance from branch 'master'
to 0a1d645000576e5ccbc723614e0610eeffd29935
- 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
* Update charm-glance from branch 'master'
to fe0cfb0134975c4c6607a47a4936fbfc5b7ea33c
- 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
* Update charm-glance from branch 'master'
to f6212eac8b97244827277701fb9c63b1b9347dc8
- 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
* Update charm-glance from branch 'master'
to c9b6b6b471fc38525ef4846cc7bde43b565929a6
- Merge "Change doc example for a better one"
- Change doc example for a better one
Change-Id: I3dc04d97276d78b5feb6145f7f4b16007c8c004c
* Update charm-glance from branch 'master'
to ef5d6de61564f3f81037f7082454a95ba11eedbb
- 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
* Update charm-glance from branch 'master'
to 96a2bb3af9a9b3b5756e5d618371187fa6e09b8f
- 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
* Update charm-glance from branch 'master'
to ca1524b41a7d5161a9c4df750ef268ea33b1c80c
- 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
* Update charm-glance from branch 'master'
to 4d29d4792ebc3f99d484488ed1041ede74b4a620
- 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
* Update charm-glance from branch 'master'
to e062ab667f8ac3e32c4765901f2c2a58fbd1b975
- 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
* Update charm-glance from branch 'master'
to 021c4256a7a716785b85359504d5db17c825b207
- 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
* Update charm-glance from branch 'master'
to 1c02b49817010102d64072549f47dbbc91ae608c
- Add information to image-conversion config parameter
Change-Id: I6676d20c7529fa47a387b3bb538de3f95399a71a
* Update charm-glance from branch 'master'
to df4ef60bec7ec4b457eb8f14a9a659e83af897db
- 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
* Update charm-glance from branch 'master'
to be13489b152e2d57e313a17e3e489e70f011e083
- charm-helpers sync to include pci
Change-Id: I566404ca79dca682183d412b985838097f61ab86
* Update charm-glance from branch 'master'
to ba56ad1098b5c5eb46e4b47ca6b09d72b22a1fc9
- 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
* Update charm-glance from branch 'master'
to d2546d56bed1219cc3aa924b9edcb42e02fa8b84
- Sync charmhelpers to get fixes
Change-Id: I99007f5446fd930c23d10808dee9389c1f474f1c
Related-Bug: #1965967
* Update charm-glance from branch 'master'
to e2255c29ddd147fe4887b5310ad85c2946f38012
- 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
* Update charm-glance from branch 'master'
to c2f877a7d420363be6d9f2718d0ecbcb424ecd84
- 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
* Update charm-glance from branch 'master'
to 4c7ebb7cf92dd1397dff57920717d5e10ef48237
- 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
* Update charm-glance from branch 'master'
to db007f32f6881147aa70b4c7bc4deaa233d4ef14
- Switch to yoga unit jobs and add py39
Change-Id: I42fa8b1d13b5d52c7c880ff68adfd82f5c3eb4ce
* Update charm-glance from branch 'master'
to dafd17a29eb087ef48f217f5d458b7f21bbe5f44
- Merge "Remove trusty/xenial metadata and function tests"
- 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
* Update charm-glance from branch 'master'
to ad71b06a0043edd5e5ca7b7ba7a96fed2ae2af7b
- Merge "Disable expose_image_locations whenever S3 is enabled"
- 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
* Update charm-glance from branch 'master'
to cd107a6211e0b4e157159ef0f31e9e893e6ebde1
- Merge "Test bundles for focal-wallaby and hirsute-wallaby"
- 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
* Update charm-glance from branch 'master'
to 638c9b6cb521dc5bca430feb48df81c42312de12
- 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
* Update charm-glance from branch 'master'
to accb194b74a91b551fc05ab90ac17ea50799ae7a
- Clarify multiple backend support
* Minor corrections
* Minor rewording
* Add Documentation section as per README template
Change-Id: I3ce454a2dcc976a25ae5e82f55a522ff07442374
* Update charm-glance from branch 'master'
to b01a246a4d5beb16341d53c8da4daa28e4cbde44
- Put a clear instruction not to expose S3 creds
Change-Id: Id2e9d4351513341b5ee41fa8a8d677aca6580fca
* Update charm-glance from branch 'master'
to a6dc972b098587aee1d7b0d6769bb95530ca81e9
- 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
* Update charm-glance from branch 'master'
to 4aaa2ce5a34679a753e261f90f16c7e5bc0c05f9
- add config to enable convertion to raw format
image-convertion config enables image convertion to raw format
this optimizes back-end capabilities while not putting the burden
of converting images to their end users
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/582
Closes-Bug: 1899767
Change-Id: Id3791721f9e38899c87b88591cdc42e46ffea5c1
* Update charm-glance from branch 'master'
to 72cd002dd56f00fac2e754f798103bcf4e488655
- 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: Ia9a2f970c181138a251da3dc53db6fba1122e5eb
* Update charm-glance from branch 'master'
to 6823beb7c3bce7d4e2449f906e77104308a817b7
- 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: Ifbb9b9b3a796881a3759f01f67124544ba1ce626
* Update charm-glance from branch 'master'
to 456946073a90c2db600b80c88f55946cf0ebd620
- Merge "21.04 libraries freeze for charms on master branch"
- 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: Ic820ea4ac8daaf5f7155f7c74e352f6cf210ddbc
* Update charm-glance from branch 'master'
to 83e865d8fd53ebe02bcb179af776da8fcd915d35
- Merge "Update worker-multiplier config description"
- Update worker-multiplier config description
Based on the change in charm-helpers:
https://github.com/juju/charm-helpers/pull/553
Related-Bug: #1843011
Change-Id: Idb39bc573e403d064312864ade44038fe03052e2
* Update charm-glance from branch 'master'
to 6db4303124db2ac57a2928c4977e5c2c0d4c4f3b
- Charm-helpers sync for wallaby bundles
In order to get the ball rolling with keystone, glance needs to
know about wallaby so that it can install in keystone's functional
tests. This sync just teaches glance about wallaby.
Change-Id: I23f286fd1175c01883a8eb19d3e52c2a30a38dda
* Update charm-glance from branch 'master'
to 169c43690ed7622bebea3f0a6575ffbc53ef8f87
- Merge "Add Ceph RGW backend testing"
- Add Ceph RGW backend testing
Enable multi-backend for the bundles with Ceph deployed.
The extra backend enabled is an object store, that uses the
OpenStack Swift compatible API provided by the Ceph RGW.
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/505
Change-Id: I7125fbd4d188b2da3227ab8288a8aed3a61ef143