1214 Commits

Author SHA1 Message Date
Zuul
2bce627040 Merge "Bump version of stackhpc.dell-powerconnect-switch" 2019-08-02 11:51:40 +00:00
Zuul
d1b51adb3d Merge "Ignore --limit for localhost plays" 2019-07-26 09:55:23 +00:00
Stig Telfer
a3f105c215 Bump version of stackhpc.dell-powerconnect-switch
Version v1.1.0 includes useful updates needed for supporting the
PowerConnect 6248, such as support for 'enable' and quirky differences
in the CLI.

Change-Id: I1a9e0471f34183c85002de30c395b82baa5f3ef4
2019-07-26 09:57:08 +01:00
Pierre Riteau
57d7d276a3 Fix typo
Change-Id: I058d75af0236b8589667229a78b46b42aa3579b5
2019-07-23 16:20:18 +02:00
Zuul
473df9b811 Merge "Updating Jinja filters to conform to Ansible 2.5+" 2019-07-17 18:47:19 +00:00
Mark Goddard
0b4b6cb79d Ignore --limit for localhost plays
If using the kayobe --limit <hosts> argument, only those hosts matching
the limit will have an inventory generated for Kolla Ansible. This can
cause problems for Kolla Ansible, even when using a similar limit via
--kolla-limit <hosts>, since it gathers facts for all hosts, and expects
all host variables to be defined.

This change adds a new 'ignore_limit' argument to the playbook running
methods, which allows us to override and ignore the --limit argument
provided by the user, ensuring that we always run these plays.

Change-Id: I104d6af48ddd916460ee454e17a50a2475de6bff
Story: 2004805
Task: 28960
2019-07-16 10:34:53 +01:00
Mark Goddard
650919f527 Disable chrony container by default
Fixes an issue where multiple NTP daemons could be running on the
overcloud hosts, due to Kolla Ansible deploying a chrony container by
default starting with the Rocky release.

Kayobe now overrides this default, to ensure that chrony does not conflict
with the NTP daemon deployed on the host. To use the containerised chrony
daemon instead, set ``kolla_enable_chrony`` to ``true`` in
``${KAYOBE_CONFIG_PATH}/kolla.yml``. This will also disable the host NTP
daemon.

To ensure that chrony is not running, Kayobe removes the chrony container
if ``kolla_enable_chrony`` is ``false`` in the following commands:

* ``kayobe overcloud service deploy``
* ``kayobe overcloud service reconfigure``
* ``kayobe overcloud service upgrade``

The play in Kayobe is tagged with ``stop-chrony``.

Change-Id: I89a973c0b600abece79bddcba5a46cc28a4f1df9
Story: 2005272
Task: 30122
2019-07-15 09:29:25 +01:00
Zuul
abc1791623 Merge "Change examples to apply all security-related package updates" 2019-07-15 08:10:20 +00:00
Zuul
590f5ca885 Merge "Add command to update packages on the seed hypervisor host" 2019-07-12 21:28:44 +00:00
Zuul
85330b9166 Merge "Add support for custom Ceilometer configuration" 2019-07-12 21:28:40 +00:00
Zuul
8076acdb74 Merge "Adds support for Ansible 2.7, bump mimimum to 2.5" 2019-07-12 21:28:37 +00:00
Zuul
02efc0b4ce Merge "Move paramiko cap to test-requirements.txt" 2019-07-12 21:28:36 +00:00
Zuul
c31f5b152e Merge "Add support for overriding OpenStack configuration globally" 2019-07-12 21:15:32 +00:00
Pierre Riteau
460c6751f4 Change examples to apply all security-related package updates
This is more representative of the typical use case of applying all
security-related package updates rather than just specific ones.

Also escape `*`, since most people will need to do so in their shell.

Change-Id: Ibd602b7fe30d7c6eb7c81b5f028ab6b5852da988
2019-07-12 19:05:47 +02:00
Zuul
31cb4ff37e Merge "Improve diagnostics for seed jobs" 2019-07-11 20:46:40 +00:00
Pierre Riteau
4667fd4e54 Add support for overriding OpenStack configuration globally
This commit allows Kayobe to generate a global.conf file for use by
Kolla Ansible to override configuration across all OpenStack services.

Change-Id: I6d144a945e1cde06fa9fdd03c30102458c0c9f8d
Story: 2005904
Task: 34153
2019-07-11 16:29:14 +00:00
Mark Goddard
0707e2c53d CI: Don't create an external network in init-runonce
This network conflicts with the ironic provision-net since both are flat
networks on physnet1. We don't need the external network in our CI, so
don't create it.

Change-Id: Id17d4ea00ceb684b34bf12e911758d504c520de0
Depends-On: https://review.opendev.org/#/c/670129/
2019-07-11 06:58:35 +00:00
Zuul
7e83b264e0 Merge "Fix custom ironic python agent environmental variables" 2019-07-08 16:24:54 +00:00
Zuul
2002cf6019 Merge "Support customising refactored HAProxy config" 2019-07-08 16:17:11 +00:00
Zuul
7bb8c80de5 Merge "Support customising Prometheus config" 2019-07-08 16:14:15 +00:00
Pierre Riteau
2863c73861 Move paramiko cap to test-requirements.txt
Change-Id: Ia7d069bc49037c9961bce2a7814fae5745ae8a91
2019-07-08 14:15:19 +00:00
Zuul
b1f54eabe1 Merge "Add retries to ansible galaxy install for all envs" 2019-07-04 16:46:09 +00:00
Mark Goddard
7ed7b27bc4 Add retries to ansible galaxy install for all envs
Galaxy install often fails in CI, scuppering an otherwise good run.

Change-Id: I3d02afe33cdf32b1d285bd4bdc4a8074883113ca
2019-07-04 13:02:04 +00:00
Zuul
3e99fa2f31 Merge "Add support for custom Gnocchi configuration" 2019-07-03 19:13:07 +00:00
Zuul
7115972232 Merge "Add config tags to kolla-openstack play" 2019-07-03 14:45:08 +00:00
Zuul
ca31ab619d Merge "Remove mentions of UUID Keystone token provider" 2019-07-03 14:19:43 +00:00
Zuul
84712dd314 Merge "Provide keystone.conf to kolla-ansible by default" 2019-07-03 14:19:13 +00:00
Mark Goddard
77e8044a40 Workaround: stop bifrost services before seed upgrade
This avoids mariadb being ungracefully shut down, which prevents it from
being started again.

This should be reverted once bug 1834332 has been fixed in kolla ansible
stein.

Change-Id: Ic3932d4af5c0a7639dfeb6cda7e1cd3f61d287c6
Story: 2006050
Task: 34743
2019-07-02 12:06:47 +01:00
Mark Goddard
405ccdada2 Adds support for Ansible 2.7, bump mimimum to 2.5
Updates the minimum version of Ansible from 2.4 to 2.5, and the maximum
supported version from 2.6 to 2.7.

Change-Id: If8071a9b5c85e5e69fbb333e91c84d10c20d80f3
Story: 2006143
Task: 35639
2019-07-02 10:38:54 +01:00
Pierre Riteau
77170a8547 Support customising refactored HAProxy config
Change-Id: I435ab9f88f73a73d7dc02f604f05e6f6def02eb5
2019-07-01 19:51:28 +01:00
Will Szumski
96a946fee1 Fix custom ironic python agent environmental variables
See: e796b3bc18/diskimage_builder/elements/ironic-agent/environment.d/01-ironic-agent.sh (L5)

Story: 2006146
Task: 35642
Change-Id: Ice620746e3ab0e9aac05f085e8f43b432679f221
2019-07-01 15:46:01 +00:00
Raimund Hook
6df6277096 Updating Jinja filters to conform to Ansible 2.5+
Since Ansible 2.5, the use of jinja tests as filters has been deprecated.

I've run the script provided by the ansible team to 'fix' the jinja filters
to conform to the newer syntax.

This fixes the deprecation warnings.

Change-Id: I775c849c944f82bdfc779c8c530346e7ebedbd2a
2019-06-28 16:34:24 +01:00
Pierre Riteau
58f856fd00 Add support for custom Ceilometer configuration
Change-Id: I0a9e1a3b878231f9ce7bf295b5526c9cfabbbf9e
Story: 2005811
Task: 33551
2019-06-25 10:44:57 +01:00
jacky06
67a4d50288 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest
3. Remove unncessary "=="

Change-Id: Idcb616fd3add4d58f22b91865cec8a54fe492092
2019-06-25 02:24:45 +00:00
Zuul
ab1e5321a9 Merge "Fix overcloud introspection data save" 2019-06-24 20:08:47 +00:00
Zuul
60c7a219cb Merge "Use BatchMode to check whether host is accessible via SSH" 2019-06-24 19:05:26 +00:00
Zuul
794566e23d Merge "Add ceph_disks and mdadm_arrays to service placement docs" 2019-06-24 16:16:37 +00:00
Zuul
6098e51c45 Merge "List Xtrabackup configuration file in documentation" 2019-06-24 16:16:34 +00:00
Zuul
eb0882a12c Merge "Add support for custom Blazar configuration" 2019-06-24 16:16:31 +00:00
Pierre Riteau
ec9b482651 Provide keystone.conf to kolla-ansible by default
Commit d8ee0fa027140fb8a7504bd6685b6dcdfe3ac8fe introduced the variable
kolla_enable_keystone without setting a default value and used it to
check whether to template and provide keystone.conf to kolla-ansible,
unlike the extended keystone configuration which was always copied. This
resulted in non-intuitive behaviour if kolla_enable_keystone wasn't
explicitly set by the operator.

This commit sets kolla_enable_keystone to true by default, which matches
the default in kolla-ansible, and uses it instead of hardcoded true
values.

Change-Id: Id090348a6f22f251555fa286a7d24923087122a9
Story: 2005930
Task: 34273
2019-06-21 15:55:46 +01:00
Zuul
6baad19b0b Merge "Restrict cliff to <2.15.0" 2019-06-19 17:45:15 +00:00
Mark Goddard
a3a71b919c Restrict cliff to <2.15.0
Using Kayobe with cliff 2.15.0 fails with the following error:

kayobe playbook run playbook.yml
invalid conflict_resolution value: 'ignore'

This change restricts cliff to <2.15.0.

Also, fix git cloning previous release repos in CI to allow this patch
to merge.

Zuul provides repositories with all branches containing all prospective
changes, not just the current branch. We can use this in the upgrade
jobs to include changes to the previous release branch when a patch
depends on them.

Change-Id: I7966cf33f6133090d83232504b8c1da4c7817e0c
Depends-On: https://review.opendev.org/665703/
Story: 2005891
Task: 33748
2019-06-17 19:29:26 +01:00
Pierre Riteau
5d82c788a8 Remove mentions of UUID Keystone token provider
Keystone removed the UUID token provider in Rocky and Kolla Ansible
removed support for configuring it. This commit reflects these changes
in Kayobe.

Change-Id: I5a2c71e7e65f99687437f6a26a0c4a942022f4e9
2019-06-12 13:22:44 +01:00
Zuul
4a45d75560 Merge "Build logstash when monasca is enabled" 2019-06-11 23:33:52 +00:00
Pierre Riteau
0e6703a322 Use BatchMode to check whether host is accessible via SSH
If password authentication is not disabled on the server, we may be
prompted for a password if the Kayobe Ansible user doesn't exist or
isn't configured for passwordless authentication.

By using BatchMode, the ssh command can fail quickly and proceed to
create the Kayobe Ansible user using the bootstrap user.

Change-Id: If22ed34dc4b6e87f8cf76c302948c955bddf2bc5
2019-06-11 16:01:03 +01:00
Pierre Riteau
686cf8d541 Cap paramiko to releases below 2.5.0
This new version makes the kayobe-tox-molecule job fail with:

    ImportError: cannot import name py31compat

Change-Id: Ieddf039483649cc7b575019409257b6ce5b3fb99
2019-06-11 14:48:11 +01:00
Doug Szumski
13350e3f56 Support customising Prometheus config
Kolla Ansible supports customising Prometheus config files.
This commit allows Kayobe to take advantage of that.

Story: 2005508
Task: 30617
Change-Id: I9fe28a658dc35adb5358d9a3a96bda9245404257
2019-06-10 15:31:15 +01:00
Pierre Riteau
8e69fb0ae8 Add command to update packages on the seed hypervisor host
Change-Id: I6edda0527a892c55261cc6fc48a0feb899b348d6
2019-06-07 16:36:28 +01:00
Mark Goddard
e884faab61 Docs: improve package update admin docs
Add information on updating package repos and rebooting after a kernel
update.

Change-Id: If6b637a0fac58ac7564c051e15b86a483b040a34
2019-06-06 19:22:47 +01:00
Mark Goddard
70556c8e37 Improve diagnostics for seed jobs
Change-Id: I4336cb50c37c9e72bdcc0a7c0424d0f7f158b79b
2019-06-06 10:28:55 +00:00