The rbd backend implementation of glance_store requires not only
python3-rbd but also python3-rados. In CentOS the python3-rados package
is installed as a dependency of python3-rbd, but in Debian and Ubuntu
that dependency is not defined and we should install python3-rados
explicitly.
This fixes the missing python3-rados package in Ubuntu, by using
the meta python3-ceph package which installs all python libraries.
Closes-Bug: #2002934
Change-Id: I620c607f09e98f1ce1d7ba34d1b797dbef8402ad
This change introduces a basic implementation to run glance-api as
an application managed by httpd+mod_wsgi, instead of a standalone
eventlet server.
Change-Id: I9421ec891c535503ff61ad6107a1935a32b4b263
A recent change in os-brick [1], which is used by cinder backends,
requires external file locks. This patch adds support for configuring
the lock path, with a default value that matches the corresponding
lock paths used by other services that use os-brick (namely cinder
and nova).
[1] I6f7f7d19540361204d4ae3ead2bd6dcddb8fcd68
Closes-Bug: #1980539
Change-Id: I5ea6766656f4227a1c514777c03bbf78d4ac59cd
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
Currently the os_package_type fact is used to distinguish Ubuntu and
Debian but it's redundant and built-in $::operatingsystem should be
enough. What is worse the custom fact is not injected while composing
facts data in unit tests and has never been tested properly.
Change-Id: Ifa3a52795b9e07fc1f2e003dd33c42dc0373880f
This patch removes support for glance-registry service, because it has
been removed from glance [1].
[1] https://review.opendev.org/#/c/738671/
Change-Id: Id05f736dbbddaff2cb90aa6678c777b9a0318e40
The glance::backend::rbd class when managing the
ceph package would install the python-ceph package
which after changing to python3 became python3-ceph.
The python3-ceph package does not exist and the python-ceph
package is only a meta package that points to all the python
2 libraries.
This changes so that it installs python3-rbd on Ubuntu but
leaves the python3-ceph package on Debian based packaging.
Change-Id: I37baa79943063a66922a9f82a286583a091122c7
The libraries jobs fails with:
manifests/params.pp:7:ERROR: two-space soft tabs not used
Change-Id: I0899318ce29a1b3a585cb9d7fcfaca12234ef879
Closes-Bug: #1806790
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.
Change-Id: I2101ddb29e48733a5a5982daafe074ce1c983e9c
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Glare service is now totally dropped from Glance [1] and now should
be configured only with puppet-glare module.
[1] https://review.openstack.org/#/c/427535/
Change-Id: I695ad518285a92a80dd7a9d5bebd11e804359224
Removing puppet-lint warnings
in favor of upgrading to latest gem
2016-09-13 21:08:47.767844 | manifests/api.pp:558:WARNING: line has more than 140 characters
2016-09-13 21:08:47.767929 | manifests/params.pp:35:WARNING: line has more than 140 characters
2016-09-13 21:08:47.767948 | tests/site.pp:6:WARNING: unquoted node name found
Change-Id: I3a8a01057befa358867eb0396e19c9b763e2b13a
Database, logging and policy parameters for api, registry
and glare services are configured from oslo defines now.
Change-Id: Iee5ee3adfaf9cef1dd3f634806d47c3c52c648fb
In Mitaka Glance v3 was moved to stand alone service [1] - now
it's called Glance Artifacts Repository (Glare).
This patch adds appropriate service managing, package installation,
configuration and related spec tests.
[1] I5b7bd4cdcc5f2a40fc4a5f74bcc422fd700c4fb0
Change-Id: I3371d1d57486e79ccfae565417f2195d3ae66bc9
Closes-bug: #1555697
Another modules already implement a <component>::db class that
is not implemented in Glance. This commit aims to apply here the same logic.
Change-Id: Icd65a3303ccd512d5e34598d3e3a78bc924f8128
In the previous patch https://review.openstack.org/#/c/241003/4
the default value for the config file when running glance-manage
db sync was changed. This patch restores the old default value
for backwards compatibility.
Change-Id: I1c17461bf7f4922ece41673f3f726ec00b0cd4c7
Due to a patch in RDO packaging, puppet-glance is broken for RHEL platforms.
This reverts commit 5f15e05704.
Change-Id: I7ba146714d1b0e8d461c556eff5a9f8c4ad9627f
Starting in Kilo, Red Hat-based platforms are using separate
glance-api and glance-registry packages (for an example, see
http://trunk.rdoproject.org/f21/current/).
Change-Id: I3ad476846d7dec3ca612e5b0d20b21b8577f4af0
Without the correct --config-file parameter the glance-manage db_sync
command does not sync the correct database. The default without any
configuration is to use an SQLite Database at /var/lib/glance/glancedb.
This is most probably not what's intended.
Change-Id: I61f4e47ad082b48ee83b17df70e9856f640083b1
on Debian plattforms there are separate packages
for glance registry and glance api. This allows
you to install api/registry on different servers.
If the packages for registry and api are the same,
(as it is the case for RedHat plattform)
the package is installed in ::glance class.
If the packages differs (as for Debian plattform),
installation of packages is done in
registry/api classes.
Additionaly this patch adds a test for unsupported
plattforms.
Change-Id: I8d4b74e8c8ad2dd7e6e2ad175326f36ff818c108
* glance::cache::cleaner: Installs a cron job to remove stalled and
invalid cached images.
* glance::cache::pruner: Installs a cron job to keep the image cache
at or below the maximum cache size.
Change-Id: I99cb1809446f1a1126454ff5fa5bdceb8044ee28
Add support for Ceph/rbd in glance.
Unit test added to spec.
Add package dependency "python-ceph" accordingly to a patch from
Michael Jeanson <mjeanson@gmail.com>.
Change-Id: I0908cde951994db6aba74d2ce3415126c429a76e
The actually glance executable is not installed as a part
of the python-glance package, it is installed in the
python-glanceclient pakcage.
Going through the RDO packages, I do not even see a package
called python-glance.
Change-Id: I35c71fc5da595a695b10cb2ecc5ad27f5131bac8