Commit Graph

65 Commits

Author SHA1 Message Date
Takashi Kajinami 664f39dc34 Validate cache cron jobs
Depends-on: https://review.opendev.org/911023
Change-Id: If64ffbb0fefa05629a1b78be677f5adf18f52648
2024-03-05 12:38:18 +09:00
Takashi Kajinami d1401c48ad Support image property protections configuration
This allows users to configure the image property protections
feature[1] using this module.

[1] https://docs.openstack.org/glance/latest/admin/property-protections.html

Closes-Bug: 2036732
Change-Id: I3b985b2b280e6d2b678078f4430db02dccca657c
2024-01-03 11:05:00 +09:00
Takashi Kajinami 1c0d3e0181 Assert db purge cron job
This makes sure the db purge cron job is properly configured in
acceptance tests. The job was enabled in the common manifest a while
ago by the dependent change.

Depends-on: https://review.opendev.org/792743
Change-Id: Ic83d6595cd23319e286719c2e7f766ea1aa3e4da
2022-11-28 15:38:01 +09:00
Takashi Kajinami fafd4c8c57 Stop testing image creation by openstack CLI
The current test case is validating behavior of the openstack CLI
rather than the deployment. Because we already test image creation by
the glance_image resource type, we can remove that redundant and
out-of-scope test.

Change-Id: I30ba37e5c72c6a918f0ee1f5d8ad275322f007f9
2022-09-07 01:20:00 +09:00
Takashi Kajinami 2332b90de2 Ensure glance-api is listening the expected tcp port
This change introduces an assertion to ensure the glance-api is
listening the correct tcp port (9292). Similar assertions are already
implemented in the other modules.

Change-Id: I9fe22af47e9e12905d731f6b0e4ead2c6864ce40
2022-09-07 01:18:16 +09:00
Takashi Kajinami d1f4dfdee9 Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: I985d6fb3dd798d726978acfcedf41a5327e7e9b2
2022-08-30 15:56:29 +00:00
Takashi Kajinami 1473037e7f Add support for rootwrap.conf
Change-Id: Ib28c3f1a8b46c439a16874c5695f121bf63c3bb9
2022-07-11 14:22:58 +00:00
Takashi Kajinami a002cad4d3 Extend coverage of config acceptance tests
Change-Id: I9ea1a85f4dedcd08f6c9a5463dc390fad5892009
2022-07-10 12:49:25 +09:00
Tobias Urdin 58f3f8adc0 Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: Ib09e32db27e71384f122b54a6d1d269aa1e1a375
2020-08-31 21:20:51 +02:00
Takashi Kajinami 3260dcd2c5 Use common class to manage apache service in beaker job
Depends-on: https://review.opendev.org/#/c/745246/
Change-Id: Ia44967dc809467d7c49022db3fcdb7fcebd6e132
2020-08-27 22:44:04 +09:00
Takashi Kajinami 11599ba429 Remove support for glance-registry service
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
2020-07-28 19:41:10 +09:00
Takashi Kajinami 8c845636db Add CentOS8 to nodesets
Change-Id: I84e9c5ec9cc2495c8c60d1dd95837c636c708e16
2020-05-10 21:44:49 +09:00
Tobias Urdin ed9298e996 Convert all class usage to relative names
Change-Id: I9ff8d888e367a46ab89e3668bf4ba76c4c7c127c
2019-12-08 23:06:03 +01:00
yatinkarel 1365358978 Fix properties in glance_image provider for osc >= 4.0.0
Similar to I6a68505d15473b140c85a199a09d2fee45864800

Openstackclient 4.0.0 changed the way some properties are displayed
on screen.

Old:
...,"Properties"
...,"foo='bar'"

New:
...,"Properties"
...,"{u'foo': u'bar'}"
or
...,"{'foo': 'bar'}"

This is breaking idempotency on the glance_image provider, since it
does not detect them correctly. This patch aims at fixing this, by
trying to detect the new format, and using JSON parsing in that case.

Change-Id: I1829c7e59058fa72690dc08b3e2f65afcad7ea46
2019-10-09 21:48:47 +05:30
PranaliD 091c01b7b8 Enable image import conversion & image output format
Glance image conversion configuration is not enabled by
puppet-glance in glance-image-import.conf.

Adding image_import_plugins & output format parameters to enable
glance image conversion.

Change-Id: I098aa0cabf2518b8861d5b58b885d9bdef54a7f6
Closes-Bug: #1807366
2018-12-10 13:41:53 +05:30
Tobias Urdin f0137bfc94 Fix properties for glance_image provider
There are some changes in Glance where it now does
som calculus on the image and adds these three new
values to the image properties. [1]

This change fixes so we dont update these properties
when we flush or create the glance_image resource.

It also changes the spec acceptance so it tests if
our custom property is there and not the only property.

[1] https://github.com/openstack/glance/blob/master/releasenotes/notes/multihash-081466a98601da20.yaml

Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: I7f1245be6c2446f0d4336630e800da3e110f3408
2018-08-15 12:57:17 -06:00
Tobias Urdin f3420eb493 modulesync: sync and add nodepool-bionic for beaker
Change-Id: Ic5cb6119ab0d9fa9fb6c90c283772bd5b2f40e80
2018-07-18 16:17:54 +02:00
Zuul 09d61bf298 Merge "Revert "Update the cirros version to "0.4.0""" 2018-05-04 22:15:21 +00:00
Mohammed Naser 61f53e428b Revert "Update the cirros version to "0.4.0""
We are reverting to 0.3.5 in order to use the upstream image
cache, also, devstack tests with 0.3.5 so it would be good to
stay consistent.

We can go back to 0.4.0 once devstack uses it and this will
avoid us having to pull down the image with every job.

This reverts commit 58566a032b.

Change-Id: If7f1542d6e9954b15024fa8074fd9938f7eb204b
2018-05-03 17:12:09 +00:00
ZhongShengping 4f0a7b1b63 Switch acceptance test to use integration classes
Change-Id: I012372ab87e34f93bf0ee801f9292d0f059a1ba2
2018-03-21 09:26:58 +08:00
ZhongShengping 58566a032b Update the cirros version to "0.4.0"
Change-Id: I164e568fb3e5fa5b3b6cabe6d8b964b8a711e2b2
2018-01-04 10:40:34 +08:00
ZhongShengping ac460a8b7e Update the cirros version to "0.3.5"
Refer to
https://docs.openstack.org/ocata/install-guide-rdo/glance-verify.html

Change-Id: Ie93e6a526ceed3f754d8f822d50a4c6dd036c06b
2017-10-31 15:57:15 +08:00
ZhongShengping 7ca105a684 switch beaker tests to use Keystone V3
Change-Id: I43a858d8cc389b23ae970738437a5e61dcfe87c4
Closes-Bug: #1723838
2017-10-30 00:13:38 +00:00
Denis Egorenko 1123f79809 Drop Glare service from puppet-glance
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
2017-09-20 20:31:08 +00:00
Alex Schultz 1d7f3d7b05 Align Stars, Fix CI
1) Update tox configuration

Update the tox configuration to pull in the openstack
upper-constraints.txt when running releasenotes. This will
fix the releasenotes job that is currently failing due to
a new version of sphinx. Additionally this change includes
updates from puppet-modulesync-configs.

2) beaker: stop deploying glance-registry and glance v1 API

The API and services are deprecated and marked as removed for Pike.

Change-Id: I860ecb2a49fb1feb3a4a24d5ee8271161e4ccc0a
Co-Authored-By: Emilien Macchi <emilien@redhat.com>
2017-05-18 20:15:03 +00:00
ZhongShengping a9c000a679 Set debug to true
In order to better view log error messages, set log debug to true.

Change-Id: Ibcc8b06254bd39909e418e786e935e53dc0c278c
2017-05-05 15:15:46 +08:00
Emilien Macchi 2cd9666d59 acceptance: remove Glare testing
Glare was removed:
https://review.openstack.org/#/c/427535/

So we don't want to deploy it anymore in beaker tests.

Change-Id: I1130d146563bd547b6424604a52996fbba892dea
2017-03-10 09:28:13 -05:00
Denis Egorenko 1e09e553ed Move Glance to new authtoken scheme
Use glance::<service>::authtoken to configure keystone_authtoken
section in glance configs, with all parameters required
to configure keystonemiddleware.

Also changed auth_type to auth_strategy, because auth_type is
related to keystone authentication.

Change-Id: I722a1e41b2cee0b3040c37f07adfd13c33edaa5c
Closes-bug: #1604463
2016-08-05 13:46:22 +03:00
Emilien Macchi f562023d2e Add nodepool-xenial.yml file
To run Beaker jobs in OpenStack Infra, we need this file so we run tests
on the right nodeset

Change-Id: Id0ccb15274e7466aca6a65b920eac564bece1105
2016-06-10 13:30:58 -04:00
Iury Gregory Melo Ferreira cf604fc6a6 Deprecate verbose option in logging
Option "verbose" from group "DEFAULT" is deprecated for removal.
The parameter has no effect.
-Deprecated verbose for logging and init
-Remove verbose in README
-Remove verbose from tests.

If this option is not set explicitly, there is no such warning

Change-Id: I7e58412fe26962337845b3cb9d67679bac0709d8
2016-05-18 01:12:46 -03:00
Alex Schultz 0cf9a7ae60 acceptance: ignore CLI warnings
Relax beaker CLI tests so we tolerate warnings like:
"Ignoring domain related configs because identity API version is 2.0"

The warnings are present in the images test.

Change-Id: Icffd95cea91c707c151faf44e16331217978009b
2016-05-11 12:29:42 -06: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
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 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
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
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 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
Jenkins 0902c3dccd Merge "Support of PyMySQL driver for MySQL backend" 2015-12-07 23:46:20 +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
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
Emilien Macchi 5b7b2b3c83 Acceptance: use common bits from puppet-openstack-integration
Change-Id: Ib920a612f8aff1e25666d02be83b98b8bc10d620
2015-11-18 17:56:47 +01:00
Emilien Macchi 7eb9915975 Bump UCA and RDO to Liberty GA
Bump from UCA RDO Liberty testing to GA repos.
Depends-On: I19a1588c488d56b647703c0267540c7649fdc6d1

Change-Id: I70da89f733629fb03b54dbc97d8a41d293d389a1
2015-11-04 10:04:35 -05:00
Emilien Macchi 57009efc4a file backend: do not inherit from glance::api
Do not make ::glance::backend::file inherits from ::glance::api because
::glance::api has parameters.
The class was broken until now.

Also, we need to include glance::backend::file to have
'filesystem_store_datadir' parameter in Glance config, since we're using
file backend.

If you don't provide this parameter, Glance fails to start:
glance_store._drivers.filesystem [-] Specify at least
'filesystem_store_datadir' or 'filesystem_store_datadirs' option

Change-Id: Iba6791199f7a2c7fef24b1e8752ed0b564b8512f
2015-10-02 17:15:18 -04:00
Emilien Macchi e5f3e1358a Bump RDO packages to tested repos
RDO has now [1] a repo that is tested against real CI.
Using this repository will avoid more failures in our CI.

[1] http://trunk.rdoproject.org/centos7-liberty/current-passed-ci/

Change-Id: Ie6d1a79ec4380b53497c70bbe6fbd54a88115574
2015-09-22 13:47:08 -04:00
Jenkins 03e1e00cbd Merge "Initial msync run for all Puppet OpenStack modules" 2015-09-21 10:45:05 +00:00
Jenkins a5cee560b4 Merge "acceptance: switch RDO to CBS repositories" 2015-09-11 12:03:00 +00:00
Emilien Macchi ef5652f1f8 acceptance: switch RDO to CBS repositories
This patch changes the repositories used to install OpenStack Liberty on
RDO by using CBS repositories and RDO trunk.

Here is the RDO roadmap that is suggested if we want to run Liberty:
From now until GA:
http://trunk.rdoproject.org/centos7-liberty/current/
http://cbs.centos.org/repos/cloud7-openstack-liberty-testing/x86_64/os/
http://cbs.centos.org/repos/cloud7-openstack-common-testing/x86_64/os/

After GA:
http://mirror.centos.org/centos/7/cloud/x86_64/openstack-liberty

Note about EPEL: deps from EPEL are rebuilt in CBS, so EPEL could be
disabled in the future.

Change-Id: I47a30d0cf07bc9db8142e81ce5b300a70d99de16
2015-09-10 12:13:16 -04:00
Gael Chamoulaud 0860b66fdc Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to',
- The old ':should' syntax in rspec 3.x is deprecated in favor of ':expect'
  syntax,
- Expectations on attribute of subject with 'its'.

Change-Id: Ie93c2ee4a33b9c526f1a4f175aab529b238b5c2e
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-09-10 11:03:00 +02:00