1253 Commits

Author SHA1 Message Date
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
Hernan Garcia
4aaa2ce5a3 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
2021-06-01 05:23:11 -05:00
Corey Bryant
cfc03e5b78 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I7e70e466f0babe940f520cd4a240a06de61f51c0
2021-05-13 08:46:25 -04:00
Alex Kavanagh
72cd002dd5 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
2021-05-03 16:04:34 +01:00
Alex Kavanagh
6823beb7c3 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
2021-04-11 16:53:02 +01:00
Zuul
456946073a Merge "21.04 libraries freeze for charms on master branch" 2021-04-06 22:28:34 +00:00
Zuul
83e865d8fd Merge "Update worker-multiplier config description" 2021-04-04 03:23:53 +00:00
Alex Kavanagh
23e28db91f 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
2021-04-03 20:24:40 +01:00
Alex Kavanagh
6db4303124 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
2021-03-31 11:28:16 +01:00
Nobuto Murata
8463599fa4 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
2021-03-30 11:18:19 +09:00
Zuul
169c43690e Merge "Add Ceph RGW backend testing" 2021-03-24 22:37:56 +00:00
Ionut Balutoiu
6af56b7ddd 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
2021-03-22 02:15:04 +00:00
Ionut Balutoiu
7a69693752 Fix race condition with the object-store relation
The `CONFIGS.write(GLANCE_SWIFT_CONF)` is missing in the object-store
hook. This config file is used when the `swift` backend is enabled.

This bug is only encountered on some deployments, because there are multiple
places where `CONFIGS.write_all()` is called.

If the `object-store` relation is established, and another hook calls
`CONFIGS.write_all()`, this problem wouldn't reproduce. However, if
`object-store` relation is executed last, this issue will pop up.

Closes-Bug: #1915300
Change-Id: Ie52b18fc4dc637dbeec5ecfb8d5930a24c5f72cf
2021-03-19 22:58:47 +00:00
Alex Kavanagh
22f2ff3fcf 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: I446d1d02bf20c030c5991d8f80d9f5e5d8725466
2021-03-02 20:55:28 +00:00
Zuul
fe1dcb2834 Merge "Add new osci.yaml" 2021-02-24 13:21:41 +00:00
Chris MacNaughton
ed2c6b97f4 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I16e82e0f295a9c0f6f21e4ff343e2f1afda1d82d
2021-02-24 08:43:33 +01:00
Billy Olsen
efc10f7811 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I2357126e25ae77ef1ebb80b8dc444fcee747d515
2021-02-19 17:01:16 -07:00
Peter Matulis
f83ab69d75 Clarify object storage and multi-backend support
Update README.md

Change-Id: I5cf12b5959ac116f95c15c516b69d85d6f160bf7
2021-02-08 12:02:39 -05:00
Alex Kavanagh
bd40cf2d9a 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
* Include fix for local_address()

Change-Id: Ie7d5df9d44f687303898d2568205285e645a6fcd
2021-01-20 11:45:49 +00:00
Aurelien Lourot
7f7f387483 Remove Disco and Eoan bits
Change-Id: Idb522144cfc9b693bc1ed4dc417f147a2ed7d1c1
2021-01-12 13:55:16 +01:00
Aurelien Lourot
3b34673d3e Add Groovy to the test gate
Change-Id: Ib244713fa78d4b0d8e37db2dcc16ba18ae1749a3
2021-01-07 10:45:20 +01:00
David Ames
4a1aa147d1 Charm-helpers sync for Bug #1893847
Change-Id: I5efe8e98c23f8660cb5d90286e685a4b5dde8aba
Closes-Bug: #1893847
2021-01-05 14:24:12 -08:00
Aurelien Lourot
fc70c18307 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: I9cf280ab4044b6c9162d93b51b0257222164f1ac
2020-12-11 13:55:56 +01:00
Peter Matulis
a92fff1da0 Review README
Apply README template elements.

Improve and correct deployment instructions.

General improvements.

Change-Id: Ie59f02bbb7d49a07d9d2193952a2da46c0e3b61f
2020-11-24 19:11:08 -05:00
Zuul
bb10671999 Merge "Waiting state if broker request is incomplete" 2020-11-03 09:37:35 +00:00
Frode Nordahl
5f72fb582d
Add blurb about Ceph BlueStore compression
Change-Id: Ie6b88f82a74c5e28d0709315d15a305ed4a86bb4
2020-10-20 08:39:46 +02:00