10824 Commits

Author SHA1 Message Date
Radosław Piliszek
1ea029a91d Followup on MariaDB handling fixes
This fixes issues reported by Mark:
- possible failure with 4-node cluster (however unlikely)
- failure to stop all nodes from progressing when conditions are
  not valid (due to: "any_errors_fatal: False")

Change-Id: Ib6995bf4c99202c9813859b3d9e2f420448f0445
2020-02-02 16:39:29 +01:00
Zuul
4d0c442b88 Merge "CI: Refactor base jobs" 2020-01-27 19:43:47 +00:00
Zuul
b07267381b Merge "Enable Glance to use Cinder iSCSI backend" 2020-01-27 18:53:55 +00:00
Radosław Piliszek
beed12f354 CI: Refactor base jobs
Since Zuul was restarted after applying [1], we can keep relevant
files listings in the base jobs per scenario without blocking
periodic job runs.
This greatly simplifies the jobs and project definitions.

[1] https://review.opendev.org/678273

Change-Id: If2e4fff6a514e6174709c2fc9f76b103f81a54ae
2020-01-27 17:12:48 +01:00
Zuul
2a88e2446c Merge "Add serial to haproxy in site.yml" 2020-01-27 16:11:38 +00:00
Zuul
0580d00342 Merge "Adds Docker image pruning command" 2020-01-27 16:11:37 +00:00
Dincer Celik
b7728ea890 Adds Docker image pruning command
This change introduces prune-images command.

Uses docker_prune module of Ansible that comes with version 2.8.

Depends-On: https://review.opendev.org/#/c/699333/

Implements: blueprint docker-image-pruning

Change-Id: Icbf374dd50e1cc1f1604bb4fa779b34279efd50c
2020-01-27 13:44:01 +03:00
Zuul
b103989642 Merge "CI: Add Ceph-Ansible jobs" 2020-01-27 09:09:13 +00:00
Zuul
94ec78eccc Merge "Use include_tasks in the storm role" 2020-01-27 08:47:57 +00:00
Christian Berendt
3e11c18232 Rename main.yaml to main.yml in modules-load role
Change-Id: Ib9c13b69b46cdc3e28be127ccd86df9b59bd60e9
2020-01-25 21:47:04 +01:00
Christian Berendt
483565aa0f Use include_tasks in the storm role
Change-Id: I2cf87b67c4dd46fd5003bf8a330abff83477f9f9
2020-01-25 21:45:38 +01:00
Zuul
bcc09ed2b4 Merge "doc: move to train in quickstart" 2020-01-25 10:30:18 +00:00
Michal Nasiadka
d8c15ad4e8 CI: Add Ceph-Ansible jobs
* Adding zuul centos-source/ubuntu-source ceph-ansible jobs
* Jobs will deploy all Ceph integrated OpenStack components, i.e.
  cinder, glance, nova
* Will utilize core openstack testing script

Depends-On: https://review.opendev.org/685032
Depends-On: https://review.opendev.org/698301

Implements: blueprint ceph-ansible
Change-Id: I233082b46785f74014177f579aeac887a25b2ae2
2020-01-24 22:37:03 +01:00
Christian Berendt
130614ab73 Add serial to haproxy in site.yml
Change-Id: I2ddc8ce114ebc9754f53866cefbff50e63ed7c7d
2020-01-24 21:29:15 +01:00
Zuul
bd6157cf42 Merge "CI: Add timestamps to Docker container logs" 2020-01-24 13:38:44 +00:00
Marcin Juszkiewicz
01bc852844 doc: move to train in quickstart
Change-Id: I03ee4020cfb277fd3d6c5f5c70a3a6eeee2cac9e
2020-01-24 12:57:53 +01:00
Pierre Riteau
b3facae5ff Update link to Gnocchi website
Change-Id: Idcdf6e3a4c5a751c848eb240b1896605843f8154
2020-01-24 12:39:31 +01:00
Michal Nasiadka
d597cece85 CI: Add timestamps to Docker container logs
Change-Id: Ie5111b898da980d63e9d90003f823172e7a78bc2
2020-01-24 09:59:01 +01:00
Zuul
13dea3f931 Merge "External Ceph: keys as variables" 2020-01-23 12:43:43 +00:00
Michal Nasiadka
1f929336e3 External Ceph: keys as variables
Introduce user modifiable variables instead of fixed-names
of Ceph keyring files for external Ceph functionality.

Change-Id: I1a33b3f9d6eca5babf53b91187461e43aef865ce
2020-01-22 18:16:38 +00:00
Zuul
aed2c052e2 Merge "Start using docker_image_info" 2020-01-22 14:07:42 +00:00
Zuul
39c09d0b60 Merge "Adds maximum supported version check for Ansible" 2020-01-22 13:36:34 +00:00
Zuul
67a9d289b4 Merge "Fix multiple issues with MariaDB handling" 2020-01-21 09:29:59 +00:00
Zuul
5126087af5 Merge "CentOS 8: Support variable image tag suffix" 2020-01-21 09:29:58 +00:00
Zuul
91c3dfe91c Merge "Ansible lint: disable some checks" 2020-01-18 08:30:57 +00:00
Marcin Juszkiewicz
934fea1aac Ansible lint: disable some checks
204 for very long url which is hard to break safely
306 for "echo | docker" as echo should not fall

Change-Id: I14df39d611d39ad1f6184ab92d628cb010881fbb
2020-01-17 13:51:43 +00:00
Marcin Juszkiewicz
1453474c65 Ansible lint: Variables should have spaces before and after
Change-Id: I70f692f125739b5119c71a554a37b5c21d4164f6
2020-01-16 16:37:20 +01:00
Zuul
2c2eeb8159 Merge "Configure services to use Certificate Authority" 2020-01-15 22:16:30 +00:00
Radosław Piliszek
9f14ad651a Fix multiple issues with MariaDB handling
These affected both deploy (and reconfigure) and upgrade
resulting in WSREP issues, failed deploys or need to
recover the cluster.

This patch makes sure k-a does not abruptly terminate
nodes to break cluster.
This is achieved by cleaner separation between stages
(bootstrap, restart current, deploy new) and 3 phases
for restarts (to keep the quorum).

Upgrade actions, which operate on a healthy cluster,
went to its section.

Service restart was refactored.

We no longer rely on the master/slave distinction as
all nodes are masters in Galera.

Closes-bug: #1857908
Closes-bug: #1859145
Change-Id: I83600c69141714fc412df0976f49019a857655f5
2020-01-15 20:15:09 +01:00
chenxing
fa49b2692d Enable Glance to use Cinder iSCSI backend
To use an iSCSI Cinder backend as its store, glance_api must run
privileged and have /dev and /etc/iscsi properly mounted

Co-authored-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Change-Id: I988d3c9d0564483440ae17203ad88a8049abbea4
Closes-Bug: #1855695
2020-01-15 17:57:40 +00:00
Zuul
7671384919 Merge "Ansible lint: task names - horizon" 2020-01-15 15:04:53 +00:00
Zuul
e5ba7adc5f Merge "External Ceph: copy also cinder keyring to nova services" 2020-01-15 13:22:05 +00:00
Dincer Celik
99fd67b0d8 Start using docker_image_info
docker_image_facts has been deprecated.

[1] https://docs.ansible.com/ansible/2.8/modules/docker_image_facts_module.html

Depends-On: https://review.opendev.org/#/c/699333/
Change-Id: I4556e603ec501f9bdaab5f20cee754467129c4e9
2020-01-15 00:09:22 +03:00
Michal Nasiadka
71d4c697cd External Ceph: copy also cinder keyring to nova services
Since [1] nova-compute uses rbd python library instead of libvirt to cleanup
volumes and get pool info - so it requires cinder keyring on filesystem.

In external ceph case it is often that nova key does not exist (is simply a copied
cinder key) and the rbd user is set to cinder - therefore the earlier mentioned
operations will fail due to a missing keyring on the filesystem.

[1]: https://review.opendev.org/#/c/668564/

Change-Id: Idef21dc5f7e9ff512bc8920630a3de61a1e69eee
Backport: train
Closes-Bug: #1859408
2020-01-14 15:59:07 +00:00
Michal Nasiadka
9385911398 Ansible lint: task names - horizon
Change-Id: I1f8d80d2c655f15b8591aea95af81263581ebaaf
2020-01-14 14:08:15 +01:00
Zuul
a4e7a13ac7 Merge "Ansible lint: use command module instead of shell" 2020-01-14 10:31:30 +00:00
Zuul
4afb1841cd Merge "Ansible lint: version constraints for pip and docker" 2020-01-14 10:31:29 +00:00
Zuul
b26ddaad17 Merge "Ansible lint: set -o pipefail when shell pipes used" 2020-01-14 10:31:27 +00:00
Zuul
3d40661630 Merge "Ansible lint: task names" 2020-01-14 10:31:13 +00:00
Zuul
2cc4f8325e Merge "Ansible lint: whitespace" 2020-01-14 10:31:12 +00:00
Zuul
3751dce25a Merge "Ansible lint: remove comparison with true or false" 2020-01-14 10:31:11 +00:00
Zuul
61266a63e3 Merge "Fix fernet-node-sync error catching" 2020-01-14 10:31:09 +00:00
James Kirsch
c15dc20341 Configure services to use Certificate Authority
Include a reference to the globally configured Certificate Authority to
all services. Services use the CA to verify HTTPs connections.

Change-Id: I38da931cdd7ff46cce1994763b5c713652b096cc
Partially-Implements: blueprint support-trusted-ca-certificate-file
2020-01-13 11:00:11 -08:00
Zuul
13d668d22c Merge "Fix Zun Docker runtime selection" 2020-01-13 14:14:33 +00:00
Michal Nasiadka
72afbcec4e Fix fernet-node-sync error catching
Backport: train stein rocky
Depends-On: https://review.opendev.org/701779
Related-Bug: #1859047
Change-Id: I09844e0807a93d9edd8d014276b0174d77a993a0
2020-01-13 12:42:56 +00:00
Zuul
734892ea45 Merge "Use distro_python_version in fernet-node-sync" 2020-01-13 11:36:02 +00:00
Mark Goddard
5fb10e08fe Ansible lint: use command module instead of shell
Change-Id: Ibf40216b847f103e383f19fe1ef608a75fcfd452
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2020-01-13 10:45:10 +00:00
Mark Goddard
b0b0bd59cb Ansible lint: version constraints for pip and docker
Change-Id: Iede314c1a93b91bf14f0f8b9b8135f88a44e130c
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2020-01-13 10:43:18 +00:00
Mark Goddard
10c1669364 Ansible lint: set -o pipefail when shell pipes used
Change-Id: I3d0047d24b6daf35f30bd3429428e83b448e6414
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2020-01-13 10:43:18 +00:00
Mark Goddard
a6cb008c54 Ansible lint: task names
Change-Id: Iecbc2fe5fa3391dca5a3cc7e575314b95942114b
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2020-01-13 10:38:12 +00:00