Commit Graph

100 Commits

Author SHA1 Message Date
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
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
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 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
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
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
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
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
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
Frode Nordahl 8f3dfb184b
Add Ceph BlueStore Compression support
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/398
Change-Id: I997bb15c692c442db2db79d96882a2204186dbe1
2020-09-15 08:35:43 +02:00
James Page ed8bdede6f Add support for erasure coded ceph pools
Add standard configuration options for erasure coded pool
creation and profile configuration.

Update ceph relation joined handled to support erasure
coded pools - a replicated pool is created at 1% of the
total data weight alongside the erasure coding profile and
supporting erasure coded data pool.

Update ceph context to use the metadata pool name in the
glance configuration files when erasure-coded pool-type
is configured.

Resync charmhelpers to update Ceph Broker request support
for erasure coding.

Change-Id: If4a31a2adf8080af66885adb970fbb3cdd82f573
Depends-On: Iec4de19f7b39f0b08158d96c5cc1561b40aefa10
2020-08-07 10:41:40 +01:00
Liam Young 1433f32c3a Make the rbd pool name configurable
Allow the rbd pool name to be set via config. This brings glance
inline with other openstack ceph clients such as cinder.

Change-Id: I93b28c1b1276cca73348fd421024ef3ce0241258
2020-07-11 07:49:32 +00:00
Alex Kavanagh 97152f55a1 Policyd override implementation
This patchset implements policy overrides for glance.  It uses the
code in charmhelpers.

Change-Id: I0586326ff87fdf03f2c88e4c459627f4085c3367
Closed-Bug: #1741723
2019-10-07 22:04:00 +01:00
Andre Ruiz 6e6b492485 Implement new option: filesystem-store-datadir
This change implements a new option in config.yaml that can be used
to change the location of the images store on the filesystem.

Change-Id: I0d8e7409b8eb4e5e403455db03d73020f741afc4
Closes-Bug: #1657165
2019-02-21 09:41:06 -03:00
Przemysław Hausman 046f20f3bc Add support for image_size_cap in charm config
Glance supports image_size_cap setting. This setting controls maximum
size of image a user can upload. An image upload greater than the size
mentioned here would result in an image creation failure.

This commit adds support for setting image_size_cap parameter in charm
config. It can be manipulated during the runtime with `juju config'
command.

Change-Id: I0af1c6a503a87941b7c8ee34255583652e54f0cc
Closes-Bug: #1720040
2018-12-11 23:04:16 +01:00
Edward Hope-Morley 9e2af26b6d Make image location ops policy configurable
Some users may not want *_image_location operations to be
restricted to role:admin so this patch allows that to be
configurable and sets the default to be False since
enabling this by default is breaking RBD COW clones in
Nova for non-admin users (and anywhere else that relies
on that information).

Change-Id: I8c293d6036bc1d6104dab5458f6915968459a09e
Closes-Bug: #1786144
2018-08-31 15:44:00 +01:00
James Page bd7375104e Remove deploy from source support
Drop support for deployment from Git repositories, as deprecated
in the 17.02 charm release.  This feature is unmaintained and has
no known users.

Change-Id: Ic9a74991973863b2cf61fc5368bbe3664af90ef4
2018-01-08 15:11:54 +00:00
David Ames c5048c7817 Update HAProxy default timeout values
The default HAProxy timeout values are fairly strict. On a busy cloud
it is common to exceed one or more of these timeouts. The only
indication that HAProxy has exceeded a timeout and dropped the
connection is errors such as "BadStatusLine" or "EOF." These can be
very difficult to diagnose when intermittent.

This charm-helpers sync pulls in the change to update the default
timeout values to more real world settings. These values have been
extensively tested in ServerStack. Configured values will not be
overridden.

Partial Bug: #1736171

Change-Id: I4d15d8ef0f2bfb9966a45ca1850721c5de4d3b08
2017-12-11 11:36:52 -08:00
Liam Young f62513ad06 Expose {disk,container}_format options
The disk_format option was hardcoded and the container_format option
was unset. This change exposes both to the user allowing the admin
to restrict what formats are uploaded.

Closes-Bug# 1570875

Change-Id: I19fdc75b30863e997affb2dc90b0dd3bd19c9d27
2017-09-22 14:40:36 +00:00
Edward Hope-Morley 3531601714 Cleanup config.yaml
Change-Id: I5e42168cd74ebe973912db2003c242c9eb534fc2
2017-06-07 09:53:21 +01:00
James Page 074263eaa7 Make worker-multiplier sane in container environments
Resync charm-helpers to pickup the capped worker-multiplier
changes when deploying in containers.

Drop the default value for worker-multiplier of 2.0; this
is now handled from within the codebase rather than via a
default configuration value, reflecting the differing
behaviours between container and non-container deployments.

Change-Id: I418aac85c408b285cf6807ff4072e565898df399
Closes-Bug: 1665270
2017-04-26 10:41:48 +01:00
James Page 29da04b58b Add support for cephx pool grouping and permissions
Sync charmhelpers and add configuration option to allow access
to ceph pools to be limited based on grouping.

Glance only requires rwx access to pools containing images.

Change-Id: I72611b38887a686f6acaeffd70bc4705a425a07b
Partial-Bug: 1424771
2017-02-14 11:22:05 +00:00
Ryan Beisner 3f21f7d3f2 Update amulet test definitions for Newton
- Remove Precise-Icehouse Amulet test definitions if they exist.

- Add Xenial-Newton Amulet test definitions.

- Add Yakkety-Newton Amulet test definitions.

- Use the percona-cluster charm in tests instead of the mysql charm.

Change-Id: Idee95359049dcc4fcb1c30f9ed3fce640fef1eb7
2016-10-10 20:54:14 -05:00
Jenkins 3c17fd5ba1 Merge "Add ceph-pool-weight option for calculating pgs" 2016-07-14 20:23:06 +00:00
Billy Olsen c837863cf2 Add ceph-pool-weight option for calculating pgs
Provide the weight option to the Ceph broker request API for requesting
the creation of a new Ceph storage pool. The weight is used to indicate
the percentage of the data that the pool is expected to consume. Each
environment may have slightly different needs based on the type of
workload so a config option labelled ceph-pool-weight is provided to
allow the operator to tune this value.

Closes-Bug: #1492742

Change-Id: I56c7de4d9213fe85ce89cbad957291b438f6f92f
2016-07-14 08:06:34 -07:00
Jenkins b0cb553bcb Merge "Change worker-multiplier to float" 2016-07-14 09:34:57 +00:00
Corey Bryant d754f184a6 Various deploy from source changes and c-h sync
* openstack-origin is no longer required when using openstack-origin-git.
* Drop kilo from openstack-origin-git default values because upper
  constraints doesn't work in kilo for openstack-dashboard and glance.
* Add flag to allow for disabling upper constraints when using
  openstack-origin-git with user-specified git repositories.

Change-Id: I017dfd20e3fe997558c13d15c7d05dd1692e7730
2016-07-13 19:25:29 +00:00
Billy Olsen b825bd4747 Change worker-multiplier to float
Change the worker-multiplier to a floating point config option type
instead of integer. This allows users to specify workers to be less
than the number of CPUs, which is useful in deployments with multiple
services deployed into containers on top of bare metal.

The fix is to simply change the config option type and to sync in
the necessary update from lp:charm-helpers.

Partial-Bug: #1602444

Change-Id: I5f7b24d53f35c4a7ec9e5de563afa5e232ca83af
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2016-07-12 17:09:43 -07:00
Corey Bryant 67a5dbe43e Sync charm helpers and drop icehouse default
The following updates are picked up in the charm-helpers sync:
  * Drop icehouse from deploy from source defaults
  * Partial support for kilo-eol tag for deploy from source defaults
  * Set upper constraints for openstack when deploying from source
  * Improve systemd unit file generation for deploy from source

Icehouse is dropped from the openstack-origin-git defaults because
the default git repos don't work as-is for deploying icehouse so
let's not allow them to be deployed via default openstack-origin-git
values. The reason the default git repos don't work is because icehouse
didn't have the concept of upper-constraints so the depenencies aren't
capped, which causes problems.

Change-Id: I4a6157f447462f5f9b74d9a2f99030350bed6377
2016-06-30 13:13:25 +00:00
David Ames 3a2adbf106 DNS HA
Implement DNS high availability. Pass the correct information to
hacluster to register a DNS entry with MAAS 2.0 or greater rather
than using a virtual IP.

Charm-helpers sync to bring in DNS HA helpers

Change-Id: Icc9bfb16e07ca6cf5475182b1974b09949cd89b6
2016-06-23 09:23:00 +01:00
Corey Bryant 74e10c82d4 Add defaults for openstack-origin-git config option
openstack-origin-git currently only supports YAML that specifies
the git repositories to deploy from.

This adds support for default openstack-origin-git values. The
default values supported are: icehouse, kilo, liberty, mitaka,
and master.  For example: openstack-origin-git=master.

Change-Id: I17eebbe81053233c60687acf453b17109110993f
2016-06-20 09:07:33 -04:00
Edward Hope-Morley 063f3a44f0 Support using internal network for clients
Openstack mostly defaults to using public endpoints for
internal communication between services. This patch adds
a new option use-internal-endpoints which, if set to True,
will configure services to use internal endpoints where
possible.

Closes-Bug: 1456876
Change-Id: I76129d4def671c5a5001cf15d9ff629a94a450e0
2016-04-01 12:13:20 +01:00
Edward Hope-Morley 75d5d12d04 Add hardening support
Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks. Also
add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: I4b1d6a23672eed0eb669970e107920d86218684f
2016-03-29 14:26:51 +01:00
James Page 8a0023faa4 Expose image locations by default when in use with a Ceph backend to support copy-on-write cloning in cinder and nova 2016-01-07 11:38:02 +00:00
David Ames f7cc48c9a1 Fix lp:1522130 Add sane haproxy timeout defaults and make them configurable. 2015-12-03 14:56:56 -08:00
Corey Bryant e991f5e2a8 [ddellav,r=corey.bryant] Add juju action OpenStack upgrade support. 2015-08-14 13:19:15 -04:00
David Della Vecchia 45d4f2f764 Fixes formatting issue in config.yaml. Updated error message output to be more specific and helpful in action code. 2015-08-14 15:55:32 +00:00
David Della Vecchia 978a45c529 Made requested changes to the MP and updated tests. 2015-08-03 15:36:41 +00:00
David Della Vecchia 94126a5d00 Fixed issues with config option action_managed_upgrade. Added conditional to upgrade action to check for git install and display error if so. Added passing unit tests for upgrade action. 2015-07-22 18:38:42 +00:00
David Della Vecchia db272cb39a Adding action_managed_upgrade config option and checking for it during action execution and config-changed hook. 2015-07-16 18:45:41 +00:00
Edward Hope-Morley 459cc090dc [trivial] Cleanup config.yaml
Partially-Closes-Bug: 1473426
2015-07-10 15:14:20 +01:00
Corey Bryant c008fe0823 [billy-olsen,r=corey.bryant] Provide support for user-specified public endpoint hostname. 2015-06-10 16:31:46 -04:00
Billy Olsen 2e2e62bd75 Switch config option to os-public-hostname 2015-06-03 11:22:54 -07:00
billy.olsen@canonical.com 2116a66b51 [wolsen,r=] Add support for overriding public endpoint addresses.
Adds in the config option for overriding public endpoint addresses
and introduces a unit tests to ensure that the override for the
public address is functioning correctly.

Additionally fixed unit test to not attempt an actual restart of
the glance services.

Closes-Bug: #1398182
2015-05-29 15:08:48 -07:00