413 Commits

Author SHA1 Message Date
Emilien Macchi
2f614cf9fd MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: If85731786a061aed9cb44f016edc67f32c3db1a5
Closes-bug: #1446375
2015-04-21 18:53:13 -04:00
Jenkins
c0feafd0e9 Merge "Revert "Separate api and registry packages for Red Hat"" 2015-04-17 18:48:10 +00: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
354ae692a5 Fix os_region_name in provider
Commit e6e8f6a56231409028ff1e7cdcd44781ca37d5b0 changed the section
where the os_region_name setting is placed from 'DEFAULT' to
'glance_store'. However, the provider was not updated to reflect
this change, so it broke.

Change-Id: I9e91faac2a45ac4eba4cc27c328e8dc67e619ab3
2015-04-16 18:39:08 +02:00
Jenkins
3f07c87f88 Merge "Change location to be a param, not a property" 2015-04-16 14:00:28 +00:00
Jenkins
9c1b0a90d9 Merge "Separate api and registry packages for Red Hat" 2015-04-16 08:51:01 +00:00
Colleen Murphy
c49cf8dbaa Pin puppetlabs-concat to 1.2.1 in fixtures
Puppet Labs is in the process of releasing a 2.0.0 version of
puppetlabs-concat, which will have many breaking changes that affect
many dependent modules. Changes have been merged to master, but not yet
released. While we figure out what changes we need to make in our own
modules and wait for updates in dependent modules, we should just pin
to a stable version.

Change-Id: Ie53c9c0c3f7ad84d310372e24eacc02a710cacf5
2015-04-15 15:25:52 -07:00
Jenkins
25ad0bfbbc Merge "Move rabbit/kombu settings to oslo_messaging_rabbit section" 2015-04-14 18:40:24 +00:00
Colleen Murphy
1d0a8ba83d Change location to be a param, not a property
The location property of the glance_image type has nearly identical
functionality as the source param, yet one is a param and one is a
property. It is possible to change either of these for a glance image,
but only if it is as of yet unset, and therefore unsaved. It is not
possible to change the location of a glance image once it has been
saved, nor is it possible to query it afterward. Since having location
be a property when it is usually unsettable and is always unqueryable
does not make much sense, we change it to be a param to be consistent
with the source param.

Change-Id: I686c3fec9bf571d18e282888c626d795c9958a6b
2015-04-10 15:18:34 -07: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
Jenkins
067ba2150a Merge "Fix API/Registry ensure for Ubuntu" 2015-04-10 15:26:20 +00:00
Matt Fischer
81a9c1acb1 Fix API/Registry ensure for Ubuntu
On Ubuntu the API and Registry are separate packages so we need an
package_ensure for each.

Change-Id: I02dcca223f57392e7b4c82806a2c0d48d301d4aa
2015-04-10 08:29:43 -06:00
Yanis Guenane
ab054853e1 Create a sync_db boolean for Glance.
Other components offer the option to decide whether or not to run the db sync
command. Glance was missing this feature. This commit add this feature for
Glance.

Change-Id: Iec31d724370a40aee56ead5839ef47ceacf7223d
2015-04-07 11:52:26 +02:00
Mike Dorman
e6e8f6a562 Move rabbit/kombu settings to oslo_messaging_rabbit section
Kilo oslo-messaging deprecates rabbit/kombu settings in the
DEFAULT section.

Move these settings to proper oslo_messaging_rabbit section.

Change-Id: Ica8cd70ece41f55b827f74d3f14cbc35f37ae13d
2015-04-02 22:54:42 -06:00
Xingchao Yu
101ca5b088 Move rbd related options into glance_store section
From Juno release, rbd related options has been move into
glance_store section.
See more info:
http://docs.openstack.org/juno/config-reference/content/section_glance-api.conf.html

Change-Id: Ibf38ee27f0ad08592dd05650c37613cee0100a7d
Closes-Bug: #1436699
2015-03-26 14:48:46 +08:00
Jenkins
0eed538b35 Merge "Fix catalog compilation when not configuring endpoint" 2015-03-19 23:29:32 +00:00
Emilien Macchi
ec48075eca api: change default pipeline
Setting up cache requires ops to be aware of how cache works in Glance
and the fact they'll need more space on disk. It can be dangerous when
using shared storage (Ceph for example).

This patch aims to default to 'keystone' without cachemanagement
anymore.

This is not backward compatible, so if the deployer is not overriding
this parameter, Glance API won't manage the cache anymore.

Change-Id: Ibac35501658b2ba79081cbc7a53245d4a4eb7839
2015-03-17 15:45:46 -04:00
Jenkins
2c9b22a668 Merge "Add $notification_driver parameter to notify::rabbitmq" 2015-03-16 08:17:55 +00:00
Jenkins
7aa1e3ecf9 Merge "Command parameter to sync the correct Database" 2015-03-13 16:23:50 +00:00
Bartłomiej Piotrowski
9be4c24d98 Add $notification_driver parameter to notify::rabbitmq
It makes possible to control the value of notification_driver setting and defaults
to 'messaging' to maintain backwards compatibility.

Change-Id: I3f2c29adbfb605ef288962f72ba81c11811cb357
2015-03-12 09:45:40 +01:00
Risto Laurikainen
ee0549f15d Fix catalog compilation when not configuring endpoint
Previously when you set $configure_endpoint to false and did not have a
keystone_endpoint resource with the same name as is defined by
glance::keystone::auth, the catalog would not be compiled. This was
because a relationship was being established where one resource in the
relationship didn't exist.

This changes this so that the relationship involving the Keystone
endpoint is only defined if $configure_endpoint is set to true.

Also, the test for when $configure_endpoint is false was set to check
for an endpoint that doesn't get created even if $configure_endpoint is
true. Fixed so that it checks for an endpoint that has the correct name
(the same as when using the default values to call the class).

Change-Id: I6631a656a888d0df7ab173705bea0598bd2b2f58
Closes-Bug: 1368686
2015-03-11 21:33:39 +01:00
Jenkins
c114412c36 Merge "spec: updates for rspec-puppet 2.x and rspec 3.x" 2015-03-11 17:12:02 +00:00
Jenkins
39a7cdde5c Merge "Fix lint issues (doc, metadata, manifests)" 2015-03-11 17:08:22 +00:00
Javier Pena
9f44421ceb Support identity_uri in provider
After https://review.openstack.org/152321 was merged, it was no
longer guaranteed that some now deprecated settings like auth_host
and auth_protocol would be present in glance-api.conf. This breaks
the Glance provider, which expects them to be present.

This patch adds support for identity_uri in provider, while
keeping backwards compatibility.

Change-Id: Ie8a2e45a4afea4828e02af36e64d65e7d4b7557e
2015-03-03 16:42:09 +01:00
Sebastien Badia
dbe297b056 spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the rspec-puppet release
2.0.0, in the mean time, we update rspec syntax in order to be prepared
for rspec 3.x move.

In details:

  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: Ibd0333dc3c0959e846edfbad51fb48e8dfb8fbe9
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-02-25 05:37:44 +01: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
Sebastien Badia
0d83409381 Fix lint issues (doc, metadata, manifests)
Add puppet parameters lint (with puppet-lint-param-docs gem) and fix
missing documentations, this commit also fix metadata.json file (SPDX
license, and open dependencies).

Change-Id: I0d590b930a8d0263c3a74d861b9786770be7d183
2015-02-23 01:29:11 +01:00
Jenkins
9a4568c361 Merge "Add Puppet 4.x lint checks" 2015-02-12 16:28:56 +00:00
Jenkins
4ccd0981a1 Merge "Add openstack tag to glance packages" 2015-02-09 21:17:17 +00:00
Jenkins
237f7d9b44 Merge "Correct docs on format for glance::policy data" 2015-02-09 21:15:13 +00:00
Clayton O'Neill
d72e768a10 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I3d21236d5bf3b0b6c625e38e20492d35aaa13307
2015-02-09 17:02:48 +00:00
Matt Fischer
2dff962a65 Support identity_uri
This patch adds the ability to set a new identity_uri parameter.
It also deprecates the old auth_host, auth_port, auth_protocol,
and auth_admin_prefix parameters. Logic is in place so that
users of the deprecated settings should have a smooth upgrade
process and get deprecation warnings until they adopt the
new settings.

Change-Id: Id72991da18dd1f467a7683f8f450e157da64f969
Closes-Bug: #1391235
2015-02-05 15:20:26 +00:00
Matt Fischer
cbf3326184 Add openstack tag to glance packages
Change-Id: Ifbc41027c11f62342397d7e60e71080336c3418e
Partial-Bug: #1391209
2015-02-05 15:20:18 +00:00
Jenkins
553d098745 Merge "Makes kombu_ssl_* parameters optional when rabbit_use_ssl => true" 2015-02-04 13:28:34 +00:00
Sebastien Badia
eed2801f23 spec: pin rspec-puppet to 1.0.1
rspec-puppet (2.0.0) was released yesterday[1], this new version broke
puppet-openstack unit tests (undefined method `resource')[2] as talked on
and in a second time to update your specs to 2.0.0 and rspec 3.x`)

[1] 8459e14807
[2] http://logs.openstack.org/45/105245/6/check/gate-puppet-nova-puppet-unit-3.3/3682541/console.html

Change-Id: I7474f99231c8edbafcf4576f78e58506410e7052
Partial-bug: #1417604
2015-02-03 15:32:20 +01:00
Lukas Bezdicka
15b0a7dc82 Makes kombu_ssl_* parameters optional when rabbit_use_ssl => true
The kombu_ssl_* parameters should not be required when rabbit_use_ssl => true
Rather, rabbit_use_ssl must be set to true if the kombu_ssl_* parameters are
used.

Change-Id: I1b2cbb15a7778c3d072409c43b39d1f41b7b48b6
Closes-Bug: 1356083
2015-02-02 13:36:54 +01:00
Jenkins
0a246c01c5 Merge "fixtures: Unpin puppetlabs-mysql module" 2015-01-22 03:42:28 +00:00
Jenkins
121a74f45f Merge "Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default" 2015-01-12 23:42:10 +00:00
Mike Dorman
ad5bb3d76b Correct docs on format for glance::policy data
Correct the format of the $policies parameter to glance::policy.
That parameter is passed directly to create_resources, so it needs
to be in a format acceptable to that.

Just updating docs here as anyone already using the policy classes
are likely not using the (incorrectly) documented format, anyway.

Change-Id: I80f1f832db124eef3bfd75907e4a2dcb5a5effca
Closes-bug: 1409897
2015-01-12 15:27:20 -07:00
Sebastien Badia
2b64d1b838 fixtures: Unpin puppetlabs-mysql module
Since commit dd25406 of puppet-openstacklib we don't need to pin a
specific release of puppetlabs-mysql.

Change-Id: I7b10d71b9716f8b79c4211ab068901fa39d1a441
2015-01-12 20:22:13 +01:00
Lukas Bezdicka
592503bef1 Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default
Rabbitmq won't talk to us anymore if we try to use SSLv3 as it disabled
support for SSLv3. Openstack components use python's openssl
implementation which does not support TLSv1.1 and TLSv1.2 yet so we
just switch to TLSv1. Support for newer TLS should come with python
2.7.9+

Closes-Bug: #1409667
Change-Id: I6dd2dcf7d047d8cee028c3f890221194b0179b8a
2015-01-12 16:42:01 +00:00
Jenkins
30d215a784 Merge "Allow overriding ensure for glance-registry" 2015-01-12 12:29:35 +00:00
Jenkins
2dae7deda3 Merge "Migrate postgresql backend to use openstacklib::db::postgresql" 2015-01-11 23:55:57 +00:00
Clayton O'Neill
9befc700a1 Allow overriding ensure for glance-registry
The main glance class allows overriding the package_ensure setting
from the default of 'present', but on Debian based systems
glance-registry is a separate package.  This package updates the
glance::registry class to allow overriding the package ensure there
also.

Change-Id: I6182836728102e827f9d5a3beef4964dd6e8d7f9
2015-01-07 13:53:23 +00:00
Clayton O'Neill
81f5841260 Fix typo
Change-Id: I7aa1918c481e842bc7d555f87dda7eb78b003483
2015-01-07 08:00:59 -05:00
Sebastien Badia
7857c67e24 Migrate postgresql backend to use openstacklib::db::postgresql
Let migrate to the new openstacklib::db::postgresql helper for
postgresql backend. This commit also unpin postgresql fixture
(openstacklib support now the latest version of postgre module).

Change-Id: I29ae9506cb638aa3e3925705bac945511c96ca8f
Implements: blueprint commmon-openstack-database-resource
2014-12-30 19:05:14 +01:00
Jenkins
d16b5b0e06 Merge "Fix is_public munge" 2014-12-29 11:12:53 +00:00
Jenkins
390cd7787e Merge "Service Validation for Glance-API" 2014-12-23 03:37:35 +00:00
Javier Pena
06182be5f7 Fix is_public munge
Commit 031609b57284cf13877ce727c2e4672831a3dbe2 changed the way
is_public was munged. However, when testing it it looks like it
was always seen as an empty string after this, so all created
images were private. Changing the way the 'if' block is done fixes
it.

Change-Id: If2eb52a6d0d9be89c9323702616f62f8ecba5e02
2014-12-19 00:51:52 +01:00
Emilien Macchi
2fa0df1e3b Service Validation for Glance-API
As an option, validate Glance API service with a default or custom
command, and if the service is up and running, create a Puppet Anchor

Change-Id: Id713d32d1dc34a15e93adb89c18d3471145e6ffe
2014-12-08 18:43:09 -05:00