Glance treats rados_connect_timeout=-1 differently now. Let's remove
the description about its old behavior and avoid documenting details
in the module parameter descriptions to reduce our future maintenance
effort.
Depends-on: https://review.opendev.org/894514
Change-Id: If4c711ca7b8c9a5167ee48e902811e8353a1fba0
This introduces the support for the weight option in each store which
is used to sort locations.
Depends-on: https://review.opendev.org/886811
Change-Id: Ia08ab9b396a9f7ba3ee1f41a81cb666e9a80ccde
The glance-cache.conf is used by the glance-cache-prefetcher command
which requires access to backend store. Thus all store options should
be added to the glance-cache.conf file so that backend store can be
loaded properly.
Closes-Bug: #2034893
Change-Id: I8f0b2be8b138d267364f20ff81876902b225d29e
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.
Note that this change removes the pattern validation about [DEFAULT]
pipeline. The existing pattern check is incomplete, because of
the following two reasons.
- the pattern does not guarantee that the requested pipeline is
really supported or not
- the pattern accepts a+b+c but the existing pipelines in glance
does not have any entries with this pattern
Change-Id: I156d9a3a30ba6c523a0b16a14bf8a1839b61fb78
This ensures the parameters used by if-else logic accept only boolean
values because non-boolean can result in unexpected behavior.
Change-Id: Ie3fce5786d44be38fad176442a0a0f9b24faab77
When I implemented support for reserved store options[1], I somehow
overlooked the fact that some of the registered options are not really
used. This is mainly because glance does not use 'add' API of
the filesystem store but just write data directly into the store
directory.
This deprecates the ineffective options so that we can remove these
in a future release.
[1] d82df7aedd
Change-Id: Ifde7f70f4cf6a04e22e092a819e0c598079682ee
This introduces support for the new cinder_do_extend_attached option
which was added in the 2023.1 release. See the dependent change to find
more details.
Depends-on: https://review.opendev.org/868742
Change-Id: I4fbb2d275cf261286390765d9cd98112ca8adf0c
The python-ceph/rbd package is required so that glance services can
access to its ceph backend. This change ensures the package resource
is tagged with the glance-support-package tag so that the package is
always installed before starting glance services.
Change-Id: I0df179dccc95fd4d617eb1b39d921ecc4a6d7bee
This change fixes the duplicate resources between glance::api and
glance::backend::file, which were caused by the new parameters added
to the glance::backend::multistore::file defined type in [1].
[1] aaa352a3af
Closes-Bug #1979232
Change-Id: Ib2f89a46d483f70c91e5fc444a84e968b79dae8e
This change introduces support for the following two reserved backends,
which were added by [1].
[1] 6dba83ba3a7c047df282f2edb7217548f43d6251
Change-Id: I9e809f5ba25516b0974015ea5259d1ab7f5bb1ca
This change improves coverage of the file backend parameters. Because
the filesystem_store_datadirs parameter is MultiStrOpt, support for
MultiStrOpt is also introduced to the glance_cache_config resource
type.
Change-Id: I5785605bf4224c0f189fd7700d5a9b05def058e8
Packages managed by Puppet OpenStack modules should have 'openstack'
tag. This change fixes one package resource without that tag.
Also, this change replaces ensure_resource by ensure_packages, so that
more specific function for package resource is used.
Change-Id: I281c7f4504f7205e7f23458364288179da89d445
Support for S3 backend was removed from glance_store during Newton
release[1] but it was restored during Ussuri release[2].
This change re-introduces support for S3 backend.
[1] 4432e60af2a2bdbfc456d8d99d93d1157fc86dcd
[2] 261bad3e433860742ecdaf93a9ff5609dcbfa432
Change-Id: I82cd7f006f9c85513ee8781e6e1a526816188844
The key parameter of swift backend is used to define a credentail to
access Swift so should be hidden in logs.
In Glance the user parameter(swift_store_user) is also defined as
a secret parameter. However it defines user name or id and user name
or id is not currently treated as secret in puppet, so this change
doesn't cover the user parameter.
Change-Id: Iac580df4de14ffdb19436417b2830a834efd087d
This patch is introducing cinder_mount_point_base parameter into
glance::backend::multistore::cinder class, so that operators can
provide the cinder mount point for NFS volumes.
Change-Id: Ib724f6e895716847827be48ed08b01a7a312338f
Because we hardcoded the path in the glance_swift_config resource, We
don't expect the swift_store_config_file parameter is set to various
values, but set to the hardcode path, '/etc/glance/glance-swift.conf'
in almost all cases.
The parameter is deprecated by this change, and will be removed and
hardcoded in a future release.
Change-Id: Ie4a8b933200e25c69fc1ac4985acab486d8a62c8
This patch changes default of the swift_store_config_file parameter,
so that the configuration file generated by puppet-glance is used by
default, instead of requiring users to set the parameter explicitly.
Closes-Bug: #1908917
Change-Id: I4ac04a561746c227b245d11890d02c14a21965d0
Adding 'cinder_volume_type' configuration parameter to allow
cinder stores to specify a volume type for each cinder store.
Partially Implements: blueprint multiple-cinder-backend-support
Change-Id: If0e3e0bd01f976e5a32aa9355ac5dd99425722a3
Addng configuration option ``rbd_thin_provisioning`` and
``filesystem_thin_provisioning`` to rbd and filesystem
backends, to enable or not sparse upload.
A sparse file means that we do not actually write null byte
sequences but only the data itself at a given offset, the
"holes" which can appear will automatically be interpreted by
the storage backend as null bytes, and do not really consume
your storage.
Partially Implements: blueprint handle-sparse-image
Change-Id: Ic95fa45af0f1db92d8425862c6267f466764fbbe
This patch introduces cinder_os_region_name parameters for cinder
backend, because global os_region_name parameter was replaced by this
cinder specific parameters[1].
[1] 410747822c9433c83fd4aec547d3e4c288502f90
Change-Id: I4a7c9ac97ff2f1c04b651ecbc89b3cb1c583f2f9
This patch introduced the following 2 parameters into
glance::backend::multistore::cinder class, so that operators can define
multipath usage in volume connection by puppet parameter.
- cinder_enforce_multipath
- cinder_use_multipath
Change-Id: I17af43fe8cdf437c90453d316b66c3ea9d4f2745
The os_region_name parameter in glance::backend::cinder was deprecated
in Kilo release[1], so we can remove it now.
Also, glance::backend::multistore::cinder doesn't have os_region_name,
so it should be removed from its description.
[1] I075224acb9da2bb547d437b08cf6fccfed655d5c
Change-Id: I32a88f9d82dd24ed3592f8647cbb43e9e3c380dd
This patch updates the method of configuring glance backends to use the
modern syntax associated with glance's Multi Store feature. Glance's
glance_store/stores and glance_store/default_store parameters were
deprecated in Rocky, and are scheduled for removal in Ussuri.
Backends are now specified using new glance::api::enabled_backends and
glance::api::default_backend parameters. A series of
glance::backend::multistore::* defined resources support configuring
multiple instances of each backend.
The legacy glance::api::stores and glance::api::default_store parameters,
as well as the glance::backend::* class resources, are deprecated, but
continue to function for backward compatibility.
The glance::backend::s3 class is completely deprecated. Glance removed
support for the s3 backend in Newton.
Closes-Bug: #1846808
Change-Id: I4f3ec9ee7c4147a4e62de961a9532bdc45526f6b