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
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
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
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
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
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
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
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
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
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>
Glare was removed:
https://review.openstack.org/#/c/427535/
So we don't want to deploy it anymore in beaker tests.
Change-Id: I1130d146563bd547b6424604a52996fbba892dea
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
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
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
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
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>
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
Change I3371d1d57486e79ccfae565417f2195d3ae66bc9 is introduced a new
glance service - Glare and it has own endpoint. This patch adds it.
Change-Id: Ibea50c249e6f0f33dbcfae4bf7cf3569f27c21e5
Related-bug: #1555697
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
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
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
Bump from UCA RDO Liberty testing to GA repos.
Depends-On: I19a1588c488d56b647703c0267540c7649fdc6d1
Change-Id: I70da89f733629fb03b54dbc97d8a41d293d389a1
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
- 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>