21 Commits

Author SHA1 Message Date
Sofer Athlan-Guyot
5a83a8d56d Include openstacklib defaults manifest.
This provides a mechanism for setting default across all modules.

Change-Id: I28c8f651f8c81de6ab2d3cb73ac67d57cad0a264
Related-Bug: 1599113
2016-07-08 08:56:03 +00:00
iberezovskiy
558fa4d212 Configure oslo related parameters using puppet-oslo module
Database, logging and policy parameters for api, registry
and glare services are configured from oslo defines now.

Change-Id: Iee5ee3adfaf9cef1dd3f634806d47c3c52c648fb
2016-04-14 14:20:18 +03:00
Denis Egorenko
da8a3aa022 Add Glance Glare API service
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
2016-03-22 18:50:29 +03:00
Jenkins
0902c3dccd Merge "Support of PyMySQL driver for MySQL backend" 2015-12-07 23:46:20 +00:00
Jenkins
72749e7a1d Merge "Introduce glance::db class" 2015-12-07 23:45:49 +00:00
iberezovskiy
b6a9a2fd93 Support of PyMySQL driver for MySQL backend
Add ability to use python-pymysql library
as backend for MySQL connections.
Update acceptance tests to use pyMySQL.
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
The same implementation as it's done for keystone:
https://review.openstack.org/#/c/242134/

Change-Id: If7a19e4c5492ea2464358144e706c62ee2c8a78a
2015-12-03 13:04:57 +03:00
Denis Egorenko
d6d4ddbe8f Introduce glance::db class
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
2015-12-01 19:12:34 +03:00
Nate Potter
166af71b1f Correct db sync for backwards compatibility
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
2015-11-19 16:31:13 +00:00
Crag Wolfe
ef19c5584d The package python-ceph no longer exists in el7, use python-rbd.
Change-Id: I885a11fd33577618138ddffaf0de196e7bb62a77
2015-06-08 14:35:52 -04:00
Emilien Macchi
876e857b29 Revert "Separate api and registry packages for Red Hat"
Due to a patch in RDO packaging, puppet-glance is broken for RHEL platforms.

This reverts commit 5f15e05704b2e549b8fab1c643a6ee743a0e92f4.

Change-Id: I7ba146714d1b0e8d461c556eff5a9f8c4ad9627f
2015-04-17 13:37:04 +00:00
Javier Pena
5f15e05704 Separate api and registry packages for Red Hat
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
2015-04-10 18:07:12 +02:00
Gaudenz Steinlin
c51c22770d Command parameter to sync the correct Database
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
2015-02-23 13:06:35 +01:00
Benedikt Trefzer
394661ec4a support separate registry/api packages
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
2014-04-15 21:50:35 +02:00
Mathieu Gagné
7da1f3bf2d Add glance-cache-cleaner and glance-cache-pruner
* 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
2013-07-24 18:11:29 -04:00
Marc Koderer
bf19533072 Add support for rbd in glance
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
2013-07-08 15:01:10 +02:00
Jenkins
f2313ce6af Merge "Do not initialize version_control for database" 2013-07-06 01:08:57 +00:00
Mathieu Gagné
ca13c19b8a Do not initialize version_control for database
glance-manage version_control is not required since Folsom.

Fixes: bug #1172456
Change-Id: I39d3df92c91341ff3869d5e9da05d44714aaf54f
2013-07-01 00:27:56 -04:00
Dan Bode
53d2b7eeb6 glance::client was not installing the correct package
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
2013-06-20 10:22:27 -07:00
John Chilton
9d8a1fb56d Specify glance client package name in params.pp. 2012-05-03 10:36:15 -05:00
Dan Bode
0f751551db Make the db_sync command different per distro
Ubunutu has packaged its own special commands to deal with
db migrations. This commit ensures that the db sync command
is per distro.
2012-04-12 15:21:59 -07:00
Dan Bode
2167074954 Add fedora support for glance
This commit adds fedora support for glance
2012-03-18 11:57:04 -07:00