579 Commits

Author SHA1 Message Date
Denis Egorenko
b3160011aa Use http protocol by default in auth_address for Swift backend
This commit explicitly sets default protocol to http in
swift_store_auth_address variable for Swift backend, because without
any specified protocol it will use https by default. That's not
consistent with other default values for protocols in auth addresses.

Change-Id: I232536d179db92d82f1c7459a0f13e5ca5576f42
2016-02-26 16:10:45 +03:00
Matt Fischer
dff967ad98 Remove unused keystone::python reference
This class doesn't do anything useful, the providers are doing the work.

Change-Id: I2ad76fd03650e064473d6c7d8f981b0f26afbba9
2016-02-22 21:08:49 -07:00
Ben Kero
a1680f1693 docs: Update README.md to point to new Beaker URL
The URL [1] to the docs for writing Beaker tests (specifically beaker-rspec)
have moved. The README.md still points to the old URL. This commit fixes
this by pointing to a better URL [2].

[1] https://github.com/puppetlabs/beaker/wiki/How-to-Write-a-Beaker-Test-for-a-Module

[2] https://github.com/puppetlabs/beaker-rspec/blob/master/README.md

Change-Id: I846b7d118163247d94103d67b84915ed3f73a6fa
2016-02-04 22:42:28 -08:00
Denis Egorenko
c8b7d3319b Use glance-swift conf for swift backend
For working with Swift backend, Glance needs authentication parameters,
which are supplied to Swift when making calls to its storage system.
Glance will use information from the file specified under parameter
swift_store_config_file. When this parameter is set to the same file
(glance-api.conf), we have lot of non-critical errors in glance-api
log, because of 'Invalid format of swift store config'.

The same problem, when we have RadosGW.

Change-Id: I18ee8f68f7ce793d2580685e79ed636556c57ddd
Related-bug: #1540890
2016-02-02 17:34:33 +03:00
gcmalloc
7e2e1162d0 Add support for min ram and min disk
Add min_ram and min_disk properties to the glance_image resource.

Change-Id: I27202559bc73283a318575669c957238f5aee988
2016-01-25 17:54:41 -08:00
Emilien Macchi
28bcf83e14 drop mock dependency
mock is not used anywhere in the module, let's drop it.
This patch will help to hit this bug:
https://launchpad.net/bugs/1492636

Change-Id: I427b83d65ac850329e227310a2e3888d5c8c5cd1
2016-01-22 09:39:26 -05:00
Emilien Macchi
67bd15682e Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Use common code in puppet-openstack_spec_helper in Rakefile and
spec_helper_acceptance.

Change-Id: Ia9279876369e1ae1d0062eae4b103fca5256c452
2016-01-18 09:11:17 -05:00
Jenkins
b2aa99e0b8 Merge "Use openstack spec helper for spec defaults" 2016-01-16 18:09:24 +00:00
Jenkins
1f8cacb736 Merge "Add memcached_servers parameter" 2016-01-14 19:55:04 +00:00
Denis Egorenko
258b1905da Use openstack spec helper for spec defaults
* Add puppet-openstack_spec_helper to Gemfile
* Use puppet-openstack_spec_helper/defaults in spec_helper
* Delete spec/defaults.rb, useless now

Change-Id: Ic30d5f0a4e9e4674b378bb74c140dc7b5d81f7b4
2016-01-14 21:04:15 +03:00
Xingchao Yu
f444097a71 Add memcached_servers parameter
This patch is aim to add memcached_servers parameter in glance-api
and glance-registry service.

Change-Id: I4f671ebcda63007fa13f86655b9988648592b68b
2016-01-14 02:45:19 +08:00
Jenkins
e58c73f9c6 Merge "Update to pull in rspec-puppet-facts" 2016-01-13 13:13:21 +00:00
Jenkins
a3bccf6363 Merge "Create glance::cache::logging class" 2016-01-12 15:11:24 +00:00
Jenkins
429c256ebc Merge "Fix Swift store configuration" 2016-01-11 13:52:46 +00:00
Yanis Guenane
72fbeed3dc Create glance::cache::logging class
This review creates the glance::cache::logging class to be in feature
parity with glance::api and glance::registry.

Change-Id: Ia3f27e991b1e525ee3604502d6afc6dc7d45247c
2016-01-11 16:10:16 +03:00
Ben Nemec
c324788ff6 Fix Swift store configuration
The swift_store_config_file option is being set in the DEFAULT
group instead of the glance_store group where it is actually
defined in Glance.  This causes configuration of the Swift store
backend to fail because the configuration is not found by the
check here:
https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/utils.py#L66

Moving the option to glance_store makes the Swift backend work again.

Change-Id: I3af198e5015df1d626c4a5aaccb3b4e5781f56b8
Closes-Bug: 1532352
2016-01-09 00:03:19 +00:00
Xingchao Yu
81333fce40 Add rabbit_ha_queues option
There are two ways for setting up RabbitMQ HA:

 1. Configure $rabbit_hosts to multi rabbit hosts.
 2. Setting up a loadbalancer in front of RabbitMQ cluster,
    provide a unique address in $rabbit_host

In current, rabbit_ha_queues option is controled by rabbit_hosts
if conditional statement. When users try the second method:
changing rabbit_ha_queues to true. If they don't set rabbit_hosts,
then current logic will not work.

This patch is aim to add an rabbit_ha_queues option, set it to undef
by default for forward compatbility.

Change-Id: I9f61c113b41cb00f7f95e80e2cabe1641aed74e7
Close-Bug: #1485287
2016-01-07 08:57:52 +00:00
Alex Schultz
c9f7cbc8b5 Update to pull in rspec-puppet-facts
Change-Id: Ic591dff6d2927a027f29970e6b18020dc589ce7f
2016-01-06 21:28:07 -07:00
Jenkins
aa3be49105 Merge "Default service_name to 'Image Service'" 2016-01-05 17:58:06 +00:00
Jenkins
aea8027cbd Merge "Use identity_uri and auth_uri by default" 2016-01-05 17:51:56 +00:00
Emilien Macchi
17101434e1 Set os_region_name to $::os_service_default and drop warning
This commit [1] introduced a weird warning that send a warning by
default.

This patch:
* sets os_region_name to the default value in OpenStack using
  $::os_service_default
* drops the warning

[1] Id7a6894e5bb12fc7697dfe23e5f9d4a44a719086

Change-Id: Id4e94e18bad19c605bb82d3fb16b867493dab4c3
2016-01-03 10:47:47 -05:00
Emilien Macchi
148253cd27 Use identity_uri and auth_uri by default
Change-Id: I8ef94a18fd24f9572830994bcd005691d2314d66
Closes-Bug: #1528963
2016-01-02 08:57:56 -05:00
Emilien Macchi
80faf9a017 Default service_name to 'Image Service'
In Liberty, we sent a warning if service_name was not set (and auth_name
was configured as the service name), with the goal to define the correct
default value during Mitaka.

This patch set the service_name parameter to 'Image Service' by default
to match with Keystone's default catalog.

Note: if you already run OpenStack, when you'll run Puppet after this
change, the old service will still be present and you'll have to drop it
manually. Though the Glance endpoint will be updated with the new
service.

Change-Id: I740a9ad32361e6a78277ea0667fba7f631eb64af
Closes-bug: #1506061
2015-12-24 16:52:10 +01:00
Emilien Macchi
5917ed6fb8 Set auth_region to $::os_service_default and drop warning
This commit [1] introduced a weird warning that send a warning by
default.

This patch:
* sets auth_region to the default value in OpenStack using
  $::os_service_default
* drops the warning

[1] Id7a6894e5bb12fc7697dfe23e5f9d4a44a719086

Change-Id: Ia5fcbb6333c3466232ac16a552f90f950313230f
2015-12-23 23:06:15 +01:00
Jenkins
8e506f0167 Merge "Add more settings to glance-api" 2015-12-23 10:10:03 +00:00
Gael Chamoulaud
0e82931439 Fix unit tests failing against puppet 4.3.x
Change-Id: I12d569cd4d916b4b19c0287f70bc5b4e4f67b411
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-12-22 20:20:03 +00:00
Emilien Macchi
866af363f3 Make Keystone_endpoint match service by name/type
Since a chance in puppet-keystone (1], we now match an endpoint with a
service name/type.
This patch reflects this change for 'image' service endpoint.
)
[1] http://git.openstack.org/cgit/openstack/puppet-keystone/commit/?id=0a4e06abb0f5b3f324464ff5219d2885816311ce

Closes-Bug: #1528308

Change-Id: Idff0ff4052ee9db4395a0b556f4c01c5538450dd
2015-12-22 18:06:57 +01:00
Jake Yip
8b4b305bc8 Add more settings to glance-api
Add settings
 * location_strategy
 * show_multiple_locations

Change-Id: I64b1d5a29faeed98316d4f44c9f24bf2f82a3d35
2015-12-22 21:05:16 +11:00
Jenkins
d59acd2211 Merge "Preparation for default endpoint names rename" 2015-12-16 05:48:39 +00:00
Jenkins
c3b685ba0d Merge "Let openstacklib manage openstackclient" 2015-12-10 18:30:48 +00:00
Martin Mágr
144622fd30 Preparation for default endpoint names rename
This patch prepares for changes of default endpoint names,
so that they match default_catalog name [1]

[1] https://github.com/openstack/keystone/blob/master/etc/default_catalog.templates

Change-Id: I0aa0be260f119f461a37199fb608a9bd0ba2263f
Partial-bug: #1506061
2015-12-09 14:28:58 +01:00
Mykyta Karpin
938e7679e6 add more settings to glance api, registry, rabbitmq
settings added:

delayed_delete
scrub_time
signing_dir
token_cache_time
image_cache_stall_time
image_cache_max_size
kombu_reconnect_delay

Change-Id: Id7a6894e5bb12fc7697dfe23e5f9d4a44a719086
2015-12-09 11:51:27 +02:00
Matt Fischer
e7a4604613 Let openstacklib manage openstackclient
No need to duplicate resources, let openstacklib manage the client.

Change-Id: I6c530e9e821c6a92ea5310ffeb8a4e42f067060c
2015-12-08 15:33:15 +00:00
Jenkins
118d6b5824 Merge "Remove qpid messaging support" 2015-12-08 03:00:35 +00: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
Denis Egorenko
dd53e39b11 Remove qpid messaging support
Qpid messaging driver is removed from Oslo.messaging [1]
Therefore, we cannot support it anymore.

[1] I4a9cba314c4a2f24307504fa7b5427424268b114

Change-Id: I5a702aacf77956a6c616fd98d2f942654548f00d
2015-12-07 20:30:10 +03:00
Jenkins
be5006e8dc Merge "Remove references to puppet-openstack from README" 2015-12-07 17:26:13 +00:00
Matt Fischer
c720e78925 Remove unused cluster_id parameter
Change-Id: I020e7130d3d4bd479a6c2d167d7c485718d9b52f
2015-12-06 23:06:46 -07:00
Jenkins
f923a169e3 Merge "Stop collecting glance services by name" 2015-12-03 12:51:09 +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
Jenkins
c8a13e0e66 Merge "Correct db sync for backwards compatibility" 2015-11-30 20:27:44 +00:00
Jenkins
79a35c43aa Merge "Update Glance Swift backend configuration" 2015-11-26 15:25:27 +00:00
Emilien Macchi
0e5ca8f1d7 Checkout openstack-integration from master
Since stable/liberty was created, let's now checkout master to prepare
the next release (Mitaka).

Change-Id: I1a6220db3323637ccd4dda91ddb2388671be5cfb
2015-11-26 11:12:21 +01:00
Emilien Macchi
0f384787e3 release: prepare 7.0.0 (liberty)
This patch prepares this Puppet module to be released in 7.x series (Liberty)
with 7.0.0.

Change-Id: I67c7cefb95003539400a8176af21325d71cd4575
2015-11-25 11:51:22 +01:00
Gael Chamoulaud
da26542fbb Fix unit tests against Puppet 4.3.0
Related-bug: #1517805
Change-Id: I19e891ecce2bceb20e141199e14333f01b0ec9ab
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-11-24 10:05:01 +01:00
Nate Potter
ee32828f45 Remove references to puppet-openstack from README
The README references to the retired puppet-openstack module
should be removed, as they link to the empty github page.

Change-Id: If9702538d378ea8a3400d3c08520da2ff825f04c
Closes-bug: #1518589
2015-11-22 16:29:35 +00:00
Mykyta Karpin
acd95e6a3a Add support of os_service_default fact in glance spec
This change adds possibility to use the os_service_default
   fact for configuration options that default to '<SERVICE DEFAULT>'.
   this change is done by analogy with cinder
   commit 667e6c0850672dbbf99381eb92468f95e5591913

Change-Id: Ie5c8909bcc1c9a6a7a9ab1b59eec4637751ffd74
2015-11-20 12:53:35 +00:00
Doug Knight
a530adfc79 Stop collecting glance services by name
Collect glance service resources by title instead of name.  The service
name differs across distributions but the resource title does not.
These collectors were silently ignored when they did not match any
services on Red Hat systems.

Change-Id: I9c17395576b35920eda1f57d93ef684a00253c53
Closes-Bug: 1511891
2015-11-19 11:19:37 -09:00