343 Commits

Author SHA1 Message Date
Jesse Pretorius
4fa9872510 Disable glance-registry and the v1 API by default
When using the glance v2 API the glance-registry service is
optional, and the intention is to remove the glance-registry
service in the S cycle.

The glance v1 API is scheduled to be removed in Queens.
This patch therefore disables the v1 API by default to give
us as much time as possible to identify the impact of that
and to get the issues resolved before it is removed from
the code-base.

The patch also cleans up the glance-registry init files
to handle the transition in an existing environment.

Tests are added to validate that enabling the v1 API still
works, and enabling the v2 registry still works.

Change-Id: I4c27aa0ca5b649e4fa76cfd0f326d80f50074db1
2017-11-20 12:48:55 +00:00
Jesse Pretorius
1416013cd4 Allow deployment without glance-registry
The glance v1 API is deprecated and intended to be removed
from the glance code within the Queens or Rocky cycles.

When using the glance v2 API the glance-registry service is
optional, and the intention is to remove the glance-registry
service in the S cycle. The glance-registry service is required
when using the v1 API though.

Furthermore, when using the glance-registry service it is not
possible to execute a rolling upgrade without losing API
transactions.

Given the above information, this patch enables the deployment
of glance with only the v2 API enabled, and without the
glance-registry service. It adds a per-commit test to validate
that this configuration works.

This patch also corrects a previous misconfiguration which
enabled the v2 registry service, but did not set the data_api
correctly for the API service to inform it that the registry
was operating.

The glance_enable_v1_registry variable is also removed as it
is meaningless. The v1 API *requires* the registry to be
enabled, so we just enable it if glance_enable_v1_api is
enabled.

Change-Id: Ie95daed286798d139f0a35ffdd2a4dd1cdda6ff9
2017-11-20 12:48:02 +00:00
Andreas Jaeger
6adc4a4512 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I967a2e5c2a014894198a908dc2d38ec0b2cb185e
2017-11-17 07:56:44 +01:00
OpenStack Proposal Bot
1f16d86fb0 Updated from OpenStack Ansible Tests
Change-Id: Ica185f6769f0ac05cc12f3fb6c749bb4f0425109
2017-11-10 13:16:11 +00:00
Jesse Pretorius
45d84bf792 Remove unified queue from gate pipeline
Initially the intent for adding this was to better test
any patches for roles together before they merge, but it
has had the unintended side-effect of causing patches to
take much longer to merge (because they all get lined up
in a single queue, rather than independent queues) and
a lot more infra resources are used (because a patch
that fails at the top of the queue will result in all
subsequent patches restarting all their tests).

As discussed in the channel, we'd prefer to revert back
to the previous independent queue method of testing. It
has served us well.

Change-Id: I8b9146f9b4ca895d9d22e280c4a029ccfecd64ec
2017-10-23 11:18:35 +01:00
Jesse Pretorius
0e8e780aff Add openstack-ansible-linters test
Currently the linters test is in the project-config
repository, but those are meant to be used for standard
jobs which do not require any repository other than the
one given. Our lint tests use the 'openstack-ansible-tests'
repository, so we should rather use our own job definition.

Change-Id: I2f28cdbb62b033f48db909c59c5036b34a5bfc5d
Depends-On: I0391ec310c4eede436011a48490e3c524c8ddf4d
17.0.0.0b1
2017-10-18 17:48:12 +01:00
Zuul
ea70cf4796 Merge "Add OpenStack-Ansible metadata" 2017-10-18 15:11:17 +00:00
Jean-Philippe Evrard
2cab2c2298 Update upgrade role for Queens from P
This changes the a-r-r with the proper version, and fixes
the repo path for role upgrades:

The role will, during test-upgrade-pre, have its current branch
checked out, and will deploy the current branch infrastructure,
including the generation of the constraints.

Then, the installation of previous branch of the role will use
the constraints for its previous version, but will have no
constraints for it, and fail.

We need to generate the constraints for the previous version too.
This should do it.

On top of that, we needed to update the work for Zuul v3:
This implements the initial OSA zuul v3 role jobs.

This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Change-Id: I8710e7b9bb6010ba98279f61a63274ace56f6e8d
Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2017-10-17 18:32:54 +00:00
Jean-Philippe Evrard
73dc946c92 Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

Change-Id: I5196403b4c63fe965ad566c9b19d921bb11e0891
2017-10-17 10:23:53 +00:00
OpenStack Proposal Bot
a460f7d764 Updated from global requirements
Change-Id: I69e72eae21385c29cafa694b4fa103fc46182e71
2017-09-20 16:21:15 +00:00
lidong
ec5b3dba4e Update links in CONTRIBUTING.rst
Use https instead of http for docs links

Change-Id: I39e5a0af5baa81721bc3f8423463eb10a7820090
2017-09-19 10:06:38 +08:00
OpenStack Proposal Bot
5deac655a8 Updated from OpenStack Ansible Tests
Change-Id: I257a8ebbd75bd20482383fb3c645d6b45ed59ddf
2017-09-14 17:59:43 +00:00
OpenStack Proposal Bot
8e7fed05ec Updated from global requirements
Change-Id: Ia8850cdd894eece194298b0fba303ac8d9ab926c
2017-09-13 12:58:32 +00:00
OpenStack Proposal Bot
90b0124032 Updated from OpenStack Ansible Tests
Change-Id: I1fa5aa288fb86b82892f06669376eae87658b5b2
2017-09-11 21:13:39 +00:00
OpenStack Proposal Bot
c474697d6d Updated from OpenStack Ansible Tests
Change-Id: I5067e3ed073696f0c51b62569fe9f964905ea281
2017-08-31 15:19:13 +00:00
Andy McCrae
80e902a4cf Update paste, policy and rootwrap configurations 2017-08-25
Change-Id: I123057e57534f21a4cd346cc2d921f6197063ab0
2017-08-25 09:31:13 +01:00
OpenStack Proposal Bot
f985ed370d Updated from OpenStack Ansible Tests
Change-Id: I52e8038a32e8af82185d5a06542f0445aafab6b5
2017-08-24 13:57:52 +00:00
Jesse Pretorius
2e952eaf80 Update upgrade role for Pike
Change-Id: I74e4d597ac08c747cff3824cb6638c1bf4459243
2017-08-23 13:14:39 +01:00
Jimmy McCrory
8a7d8f9a23 Remove glare-paste.ini template
Glare was separated into its own project some time ago and this file
doesn't appear to have ever been deployed by the role anyway.

Change-Id: I6eaa0fef8f3877c0b4093b2a8d7adb5cbcdff583
2017-08-22 13:39:47 -07:00
Jenkins
57a630c283 Merge "Update reno for stable/pike" 2017-08-22 14:49:48 +00:00
lidong
54c6069901 Fix a typo
Fix a typo in file:
releasenotes/notes/glance-init-config-overrides-d1c8c3dcc50c109a.yaml

Change-Id: Ibb08769d5e7e42b19813a23965e30af5c1a1ac31
2017-08-22 12:20:01 +08:00
d8e6236e27 Update reno for stable/pike
Change-Id: I64ab95c9b9a13d184b9d1b05d583c725b5a9f0ec
2017-08-21 10:32:40 +01:00
lidong
6d06dbb5f9 Update links in README
Change the outdated links to the latest links in README

Change-Id: Ic3279b2d6499a1e0777a760abf2bff096e016856
2017-08-19 19:01:34 +08:00
OpenStack Proposal Bot
2cd3eb160c Updated from global requirements
Change-Id: Ib093d430c53e3ed3c644ec9a3b6f04a4c36407bf
2017-08-18 11:37:49 +00:00
Markos Chandras
a6f93be5c1 tasks: glance_install: Fix virtualenv-tools issue on openSUSE
openSUSE is also suffering from the same virtualenv-tools issue so
we need to remove the existing python-2.7 symlink.

Link: https://github.com/fireteam/virtualenv-tools/issues/5
Related-Bug: #1637509
Partial-Bug: #1644629
Change-Id: Iff9ddc29903a278dac7ab941fe7bd5bae1702bb7
2017-08-16 12:34:25 +01:00
Andy McCrae
4cf5a474da Update paste, policy and rootwrap configurations 2017-08-15
Change-Id: I288ac6dc58a6942fd3cc1b3bc34d363c165dce74
2017-08-15 10:21:27 +01:00
OpenStack Proposal Bot
01cbd0805d Updated from OpenStack Ansible Tests
Change-Id: I37485caee4e6b7b8c15d1aaf5d8fd74d19a98d16
16.0.0.0rc1
2017-08-04 15:21:58 +00:00
OpenStack Proposal Bot
dd0ecc0ea6 Updated from OpenStack Ansible Tests
Change-Id: I2e456ac7af633fcec39a71b76394fcd913831265
2017-08-03 15:26:32 +00:00
Major Hayden
fbeca2de81
Add dnf support
This patch adds dnf support for CentOS.

Implements: blueprint centos-and-dnf
Change-Id: I1be6411994eb5c9fd90f224e24b29ec41587287f
2017-08-02 16:16:04 -05:00
OpenStack Proposal Bot
d097e5f0b7 Updated from OpenStack Ansible Tests
Change-Id: I18947c80ac5acc46fa3ff25ebba29fefbaf6973d
2017-07-31 19:10:57 +00:00
Jenkins
e008f826d1 Merge "Updated from global requirements" 2017-07-28 18:35:20 +00:00
OpenStack Proposal Bot
f006b20e41 Updated from OpenStack Ansible Tests
Change-Id: Ibb2c940b62b385e8bd0b871ad17c15abc376b6ae
2017-07-28 15:00:23 +00:00
OpenStack Proposal Bot
e16c5219d0 Updated from global requirements
Change-Id: Id9c401ddd39a1ccd84bf931536ec7e3e4e5f425e
2017-07-27 19:17:23 +00:00
Andy McCrae
8c2f4b0b7c Implement uWSGI for glance-api
As part of the Pike goals we are moving api services to run as WSGI
apps. glance-api service is set up as a wsgi app, and this patch moves
it over.

Since this is just a drop in replacement for the existing eventlet
service operators and deployers should notice no difference.

Implements: blueprint goal-deploy-api-in-wsgi
Change-Id: Ie5fbf437031be01682534c466b3737d090a81c57
2017-07-25 14:20:24 +01:00
ZhongShengping
c2e384eabf Update URLs in documents according to document migration
Change-Id: I5c798478b1da8803477e594dec11f1e08592c8f7
16.0.0.0b3
2017-07-14 09:37:06 +08:00
Logan V
3bbd8d13fe Include ceph_client role if needed
Moves the ceph_client role execution inside the os_glance role
instead of executing it at the playbook level.

Change-Id: I1d24a82f22663150f0db5bbfcb4d957d600db5c2
2017-07-13 13:30:57 -05:00
Jesse Pretorius (odyssey4me)
9a8481bc26 Revert "Only sync glance database on major versions"
The current major upgrade detection compares
the same variable against itself. It also takes
place after the new venv tag has been placed
and the local facts are refreshed so there's
no good way to figure out the origin version.

Additionally, the version_compare filter only
works with semver version strings which is
unnecessarily strict.

Additionally, there does not appear to be any
evidence in the glance documentation that
the db sync action requires services to be
shut down or any other orchestration, so the
previously implemented action of doing a db
sync on every playbook execution should be
just fine. If there is nothing for it to do (which
will be the case for a minor upgrade) then it
will do nothing. If there is something for it to
do (which will be the case for a major upgrade)
then it will do what needs to be done.

As such, there appears to be no point in
implementing this extra set of tasks and
conditionals.

This reverts commit 647c4e33f1fcba771f23f7aabf0dc061b22f79ab.

Change-Id: I3b5afae3b7abf58de0b71ec2e67df2c38b6da5e3
2017-07-12 11:43:39 +01:00
Jesse Pretorius
f006470f27 Cast the resulting intersect set into a list
When using Ansible with python3, the result of
the intersect filter is a set, not a list. This
causes a failure when trying to access item 0
in the list.

In this patch we cast the set to a list before
accessing item 0. This will work for both
python2 and python3.

Change-Id: I9b03c57a5b1f675a8ca6e42dd5aae6c1e4742603
2017-07-07 12:56:41 +01:00
Jenkins
861a62d716 Merge "Updated from OpenStack Ansible Tests" 2017-07-07 01:14:02 +00:00
Jenkins
3eebad4ce2 Merge "Add support for the openSUSE Leap distributions" 2017-07-07 01:13:57 +00:00
OpenStack Proposal Bot
a95b64f70d Updated from OpenStack Ansible Tests
Change-Id: I96a96d5e6e741f7a33627671f2a9b4b2e2f1a1f1
2017-07-06 21:08:19 +00:00
Jenkins
ea5faf6e01 Merge "Improve inventory scoping for limited play execution" 2017-07-06 16:37:41 +00:00
Jesse Pretorius
1335990b9a Improve inventory scoping for limited play execution
When executing the playbook with limits set, the scoping
currently does not work quite as well as one would hope.

This tightens it a bit more to ensure that it operates
as expected.

Change-Id: Ie043fca77d98ce55edb84547b06be0001d7311ea
2017-07-06 14:09:25 +00:00
OpenStack Proposal Bot
b0a81bdd24 Updated from OpenStack Ansible Tests
Change-Id: Iacedb66fd500227cd9f079163710d3957f071353
2017-07-06 13:02:29 +00:00
Markos Chandras
e9ae99edbf Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except for adding the appropriate distro variables
file and also update the zypper cache before package installation.

Change-Id: Ia3fe5fedbbc2781cf2e7ae4d82c09e0960c6744b
2017-07-06 13:19:19 +01:00
Jenkins
0e2b011ac7 Merge "Hedge upgrade process against no software change" 2017-07-06 07:28:51 +00:00
Jesse Pretorius
6e74637fcd Switch from run_once back to inventory scoping
As it turns out, run_once executes a task
once per batch when executed from a serialised
playbook instead of once per set of play hosts
as previously thought.

In this patch we implement a combination of
dynamic inclusion, inventory scoping and
play host scoping to achieve the required
goal of only running it once, even when the
playbook is executed using limits.

We also remove the unnecessary extra local
fact refresh.

Change-Id: Ib864bf2c0603e8281aa0ba3979ae020e90fd0adc
2017-07-04 13:43:28 +01:00
Jesse Pretorius
4268636066 Hedge upgrade process against no software change
Some deployers make use of the new role without
implementing a change in the software, resulting
in the correct local facts not being deployed.

To hedge against this, we add some more conditionals
to ensure that the facts are deployed.

Change-Id: I1e783c5a791ab66fbb693f672d87cbf092cf8112
2017-07-03 11:58:12 +01:00
ZhongShengping
599fb64de0 Fix openstackdocstheme settings
To use openstackdocstheme 1.11.0 properly, this patch fixes
some settings according to follow[0].

[0]https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: I362996b70abdb2753df458d21e889a63835e4438
2017-07-03 16:15:19 +08:00
Jesse Pretorius
af9142ec9b Use listen instead of chained notifiers
From Ansible 2.2 onwards, listen can be used for
handlers instead of chaining notifiers. The
handlers are then executed in the sequence
present in the handler file.

Change-Id: Ia185ab830005f311f37d4eb7dfab1ae116419e3b
2017-06-30 13:39:03 +01:00