621 Commits

Author SHA1 Message Date
iberezovskiy
d70f4c5434 Remove docs duplication for notification_driver
Change-Id: Ic915a855296cca9e2d74b12382bee143d0d1141b
2016-04-20 19:41:38 +03:00
Denis Egorenko
af8da24358 Totally drop Qpid support
Qpid was removed in Mitaka from Oslo Messaging, so now we can
drop it in manifests.

Change-Id: I336c99b7709f061734ca09128a366361f13a934e
2016-04-18 14:15:28 +03:00
Jenkins
e648bb5830 Merge "Configure oslo related parameters using puppet-oslo module" 2016-04-15 20:46:20 +00:00
Jenkins
48c2ec493a Merge "Use oslo module for messaging (rabbit) configuration" 2016-04-14 19:44:17 +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
Jenkins
63cbebc02e Merge "Fix the purge_config option for api and registry" 2016-04-13 10:59:58 +00:00
iberezovskiy
51c2793738 Use oslo module for messaging (rabbit) configuration
Additonal changes:

  * switch messaging related parameters to $::os_service_default
    as they are used in oslo::messaging_rabbit define
  * update unit tests
  * update docs for notify::rabbitmq class
  * drop deprecated rabbit_durable_queues parameter
  * fix notification parameters according to mitaka config file

Change-Id: Ib20c13f136a299c958d9ac064e8ad93ceb0ebd40
2016-04-13 13:29:23 +03:00
Nathan A. Taylor
aa2c4c9213 Fix the purge_config option for api and registry
It appears that the resources decleration, that made purge_config work,
was accidently removed. I am adding it back so that the option will work
again. This resources decleration was setting the purge flag with a
boolean, so that inifile would handle it.
  * Adding in spec tests

Change-Id: Ib80b89932c60aeab0d252109d2e79ac0f209596b
2016-04-12 11:33:56 -06:00
Javier Pena
109cda8b24 Fix image list in glance_image provider
https://review.openstack.org/298718 changed the way images are listed,
by removing the '--long' parameter. This breaks when called by the
openstacklib provider, because that was the "properties" argument in
adb0b1d012/lib/puppet/provider/openstack.rb (L74)
so the command-line used '' as a last argument, causing the failure.

This will require a stable/mitaka backport.

Change-Id: I69e3cc848fbacbda01f9bd7d8a079c99b15cb5cf
2016-04-08 19:27:00 +00:00
Emilien Macchi
31c15aefd4 acceptance: drop dependency cycles tests
They bring no value in our CI, we already test a full deployment of
Glance and workflow of image upload, we don't need them.
Moreover, they make our life complicated when debbuging CI issues.

Let's drop the tests.

Change-Id: I94fa88d661dc83d4f1803ab3275ff0cfa58b6c5b
2016-04-08 15:24:42 -04:00
Jenkins
5d6e42356e Merge "Switch glance to os_service_default facts" 2016-04-07 14:11:53 +00:00
Alex Schultz
e6f19c9553 Release notes for glance_image updates
Adds the release notes for the glance_image update to support managing
image properties

Change-Id: I4d5cbc5e89cd9bc8b46dd3b05a3df3125f46aa78
2016-04-06 12:12:24 -06:00
Mykyta Karpin
037545fb3e Switch glance to os_service_default facts
Change-Id: If860858e2bdfe0387b6a3260b81a97625d05b9fe
2016-04-06 18:56:34 +03:00
Jenkins
ecfcaa5264 Merge "Add ability to set properties with glance_image" 2016-04-05 11:51:17 +00:00
Michael Polenchuk
d0957fb622 Add ability to set properties with glance_image
This change updates the glance_image provider to support the ability to
specify properties for an image.  This change only adds the support for
setting properties. The conversion and update to using the v2 will
require further rework of this provider.

Change-Id: I22b92c5ccd0f77c837e9abe987cee07c7d90867e
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
2016-04-04 14:57:25 -06:00
Jenkins
4923d0441c Merge "Implement ability to pass CA bundle certificate for vCenter server" 2016-04-04 13:18:20 +00:00
Igor Zinovik
a1fbd1a42c Implement ability to pass CA bundle certificate for vCenter server
Glance with vsphere backend by default verifies vCenter server TLS/SSL
certificate using system truststore (e.g.
/etc/ssl/certs/ca-certificates.crt). Here is a problem with connection
to vCenter: if we consider case with default installation, then vCenter
starts with self-signed certificate which cannot be verified using linux
shipped CA bundle. Glance starts, but fails to do any useful work,
because it generates SSL errors due to inability to verify vCenter
TLS/SSL certificate.

User can provide its own CA bundle file for Glance to verify connection,
but currently puppet-glance does not support this. This patch aims to
fix this problem, it:
- introduces new optional parameter $vcenter_ca_file which undef by
  default, which means that value will not be written to glance-api.conf
- it switches default value of vmware_api_insecure to True
- provides rspec tests for changed behaviour

Change-Id: Icef5c35ad1128df465da548dd880a0dfeeadb5e1
Related-bug: #1559067
2016-04-04 07:34:25 +00:00
Dan Prince
006c32a38f Add options to set swift auth domains
We need options to be able to set the user and project domain
when using keystone v3 credentials for the swift backend. Without
these options keystone v3 swift will fail.

Change-Id: Id384b0eca750e0946b42cb8ccb60a7f9ed64d21a
2016-04-01 14:16:12 -04:00
Emilien Macchi
a7b78a33e1 Gemfile: rely on puppet-openstack_spec_helper for dependencies
Rely on puppet-openstack_spec_helper gemspec file for managing Gems
dependencies.

Change-Id: I175946e849b144e93597e4f763d9d7330d3db76f
2016-03-29 21:36:10 -04:00
Jenkins
035d1e6c71 Merge "Add posibility to configure Glance backend settings for Glare service" 2016-03-28 21:07:33 +00:00
Denis Egorenko
ea0c4d5b51 Add posibility to configure Glance backend settings for Glare service
This patch adds posibility to configure backend settings for Glare
service.

Since Glare service is experimental feature, it can be usually disabled
for deployment. Hence was added a optional parameter 'glare_enabled' for
each backend manifest. So, if Glare is enabled glance glare config
will (and should) have same backend options as main glance api config.

Change-Id: I112a332f490d2e57eef5fa7d41d465c0eb89da04
Related-bug: #1555697
2016-03-28 16:18:13 +03:00
Emilien Macchi
5628f7cb69 Import release notes from stable/mitaka
stable/mitaka branch does exist now, let's import the notes from it.

Change-Id: I27f4501d992008eb6bc5da6865c0c79d80636c48
2016-03-24 19:03:10 -04:00
Jenkins
3941da05fc Merge "Add missed glare_config options for glance::config class" 2016-03-24 21:19:20 +00:00
Denis Egorenko
a2fe12405e Add missed glare_config options for glance::config class
Change I3371d1d57486e79ccfae565417f2195d3ae66bc9 is introduced a new
glance service - Glare, but it missed options for glance::config

Also this patch adds tests for glance::config class

Change-Id: Ie07480562b2c0761f5218eb00b3ed3f335bd7cfb
2016-03-24 13:49:06 +03:00
Jenkins
9407ebd653 Merge "Configure endpoint for Glance Glare" 2016-03-24 00:11:40 +00:00
Emilien Macchi
6a748cee54 Release 8.0.0
* Update CHANGELOG with release notes URL.
* Update README with new release number & name.
* Update metadata.json with new tag & dependencies.
* Add release note prelude for Mitaka.
* Update Reno release note to drop prelude.
* Improve release note landing page.

Change-Id: Ib548135252c44de054891bf46821007d53d0a64b
2016-03-23 16:07:06 -04:00
Denis Egorenko
e0b34f450d Configure endpoint for Glance Glare
Change I3371d1d57486e79ccfae565417f2195d3ae66bc9 is introduced a new
glance service - Glare and it has own endpoint. This patch adds it.

Change-Id: Ibea50c249e6f0f33dbcfae4bf7cf3569f27c21e5
Related-bug: #1555697
2016-03-23 21:16: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
ee7fbcf37c Merge "Update stores option's example value" 2016-03-21 15:57:25 +00:00
Xingchao
5eacf1c039 Update stores option's example value
stores and default_store option's example value has changed.
See more info in [1].

[1] http://docs.openstack.org/kilo/config-reference/content/section_glance-api.conf.html

Change-Id: I913be3415c02adbaa3b1aafe120366a097ede09d
2016-03-18 11:23:20 +08:00
Emilien Macchi
d68f25114e releasenotes: add notes for Mitaka cycle
Change-Id: I682987c9c6be77425b29d089ffff150c7391a959
2016-03-17 13:55:45 -04:00
Emilien Macchi
7695d6deb2 Add basic structure for ReNo
ReNo [1] is the release management tool in OpenStack.
This patch adds the basic structure to start using it.

* Update .gitignore
* Add a basic note "use-reno"
* Add releasenotes/ dir and basic files
* Add python files: setup.cfg, setup.py, test-requirements.txt and
  tox.ini.

[1] http://docs.openstack.org/developer/reno

Change-Id: I205b179a6bff595c4eee564836d77b1981aa61c9
2016-03-14 08:28:13 -04:00
Jenkins
fbf285e95d Merge "api: allow ssl communications with registry" 2016-03-10 14:35:20 +00:00
Emilien Macchi
7bf43b2b13 api: allow ssl communications with registry
Add missing options to allow Glance API to connect to Glance Registry
when SSL is enabled on both services.
Also switching SSL options to os_service_default to avoid useless
conditions in manifests.

Change-Id: Ia40228fc165ef8ce1213fed7f5eec4de1c12c013
2016-03-09 13:23:07 -05:00
Mykyta Karpin
7d1c73ba0a spec: Add Unit Tests for glance paste_ini types/providers
Change-Id: Ia6688b80f983c76db5b076eafc842bfe2be4481b
Partial-bug: #1440401
2016-03-09 14:47:48 +03:00
Jenkins
bf7765f66d Merge "Remove POSIX users, groups, and file modes." 2016-03-09 00:03:32 +00:00
Jenkins
6a3240c06e Merge "Add glance multi/single store declaration examples" 2016-03-09 00:00:05 +00:00
Nate Potter
ef344c3d40 Add glance multi/single store declaration examples
This patch adds examples to explain the new multiple store backend
declaration feature and how to use it. It covers both the case
where the user wants to declare multiple backends as well as just
one.

Change-Id: Ief8fea9d57422d05d36bf9b6946695249958aad9
Depends-on: I28a79ae36e673a3537ea16910d338666b65c80f7
2016-03-08 17:37:12 +00:00
Drew Fisher
637f986252 Remove POSIX users, groups, and file modes.
This patch removes File resources which should be delivered by packaging
tools.  These resources (files, directories, modes, users, and group
attributes) could be in conflict with different OS packaging systems
which isn't a desired result.

Co-Authored-By: Ivan Berezovskiy <iberezovskiy@mirantis.com>

Closes-Bug: #1458915

Change-Id: I02fe8cc99dcd56e16ac66136a0da244a1eeb630b
2016-03-08 15:48:10 +02:00
Nate Potter
22231b2d66 Implement multiple store configuration
This patch moves the default_store config option to the glance::api
class, and makes it possible to configure more than one store while
supplying a value for the default store to be used. If only one store
is given for glance_store/stores, the default store is automatically
set to be the same value. If multiple stores are given and no default
store is explicitly set, the config will fail and ask the user to
provide a default store.

Change-Id: I28a79ae36e673a3537ea16910d338666b65c80f7
Closes-bug: #1481460
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
2016-03-05 00:32:39 +00:00
Alex Schultz
cda71192de Switch glance to rspec-puppet-facts
This change updates the glance tests to use rspec-puppet-facts to test
multiple operating systems.

Change-Id: I75fd8970ba8335cb4ffa09a7d600415056e9f889
2016-02-29 16:33:46 -07:00
Emilien Macchi
624f522e71 Supports IPv6 in registry_host
This patch add support for IPv6 address in registry_host.
It adds brackets if an IPv6 is detected.

Change-Id: Ic1d75984fac7bce3d0239df54a877ae2b713c442
2016-02-29 12:57:49 -05:00
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