Skip to content

Commit 709cdf3

Browse files
committed
CEPHSTORA-222 Use Ansible 2.5.7.0 and ceph-ansible 3.1
This PR changes to use Ansible 2.5.7.0 (the latest Ansible 2.5 version) along with ceph-ansible 3.1 To get this working we clean up some unrequired references in ansible.cfg, adjust the bootstrap-ansible.sh file and adjust the plugins and ceph-ansible role versions. The master branch of OSA-plugins includes a connection module that will work with ansible 2.5+, whereas stable/queens does not. Additionally, the config_template module required for ceph-ansible has been updated in ceph-ansible stable-3.1 so we no longer need the plugins directory for prod and should move it to the testing roles to clone. The openstack_hosts role also has some changes that are required for Ansible 2.5 to run in our keystone_rgw scenario test. This is a testing only role so we can bump this to master safely. 8f7114732df71249a907fa738da3c6b40492b50d is required for openstack_hosts to work with Ansible 2.5+ Finally, this PR adjusts the update_dependency job so that v3.1 of ceph-ansible is used as the base, and skips the openstack-ansible-plugins repo.
1 parent 09149f9 commit 709cdf3

File tree

7 files changed

+15
-21
lines changed

7 files changed

+15
-21
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ versions of ``ceph-ansible`` used in RPC deployments.
88

99
## Current versions of ceph-ansible & Ansible
1010

11-
### **ceph-ansible version:** v3.0.39
11+
### **ceph-ansible version:** 3.1.0
1212

13-
### **Ansible version:** 2.4.4.0
13+
### **Ansible version:** 2.5.7.0
1414

1515
## What is rpc-ceph?
1616

ansible-role-requirements.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: ceph-ansible
22
scm: git
33
src: https://github.com/ceph/ceph-ansible
4-
version: v3.0.39
4+
version: stable-3.1
55
- name: rsyslog_client
66
scm: git
77
src: https://git.openstack.org/openstack/openstack-ansible-rsyslog_client
@@ -30,7 +30,3 @@
3030
scm: git
3131
src: https://github.com/cloudalchemy/ansible-alertmanager
3232
version: 0.13.1
33-
- name: ../ceph_plugins
34-
scm: git
35-
src: https://git.openstack.org/openstack/openstack-ansible-plugins
36-
version: 17.0.4

ansible.cfg

+1-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22

33
library = /etc/ansible/ceph_roles/ceph-ansible/library:./library:/etc/ansible/ceph_plugins/library
44
# set plugin path directories here, separate with colons
5-
action_plugins = /etc/ansible/ceph_plugins/action:/etc/ansible/ceph_roles/ceph-ansible/plugins/actions
6-
cache_plugins = /etc/ansible/ceph_plugins/cache
5+
action_plugins = /etc/ansible/ceph_roles/ceph-ansible/plugins/actions:/etc/ansible/ceph_plugins/action
76
callback_plugins = /etc/ansible/ceph_roles/ceph-ansible/plugins/callback:/etc/ansible/ceph_plugins/callback
87
connection_plugins = /etc/ansible/ceph_plugins/connection
9-
lookup_plugins = /etc/ansible/ceph_plugins/lookup
10-
inventory_plugins = /etc/ansible/ceph_plugins/inventory
11-
vars_plugins = /etc/ansible/ceph_plguins/vars_plugins
128
filter_plugins = /etc/ansible/ceph_plugins/filter
13-
test_plugins = /etc/ansible/ceph_plugins/test
14-
terminal_plugins = /etc/ansible/ceph_plugins/terminal
15-
strategy_plugins = /etc/ansible/ceph_plugins/strategy
169
roles_path = /etc/ansible/ceph_roles/ceph-ansible/roles:/etc/ansible/ceph_roles:/etc/ansible/roles

gating/update_dependencies/run

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -x
44
## For use when updating the versions of upstream projects inside rpc-ceph.
55
## NB This will NOT upgrade a deployed environment, and should not be used in
66
## production
7-
CEPH_MAJOR_VERSION="v3\.0"
7+
CEPH_MAJOR_VERSION="v3\.1"
88
OSA_MAJOR_VERSION="17\."
99

1010
function update_ceph_ansible {
@@ -37,7 +37,8 @@ function update_upstream_osa_roles {
3737
## Update both the roles and test-roles
3838
for role_reqs_file in ansible-role-requirements.yml tests/ansible-role-test-requirements.yml; do
3939
## For each of the openstack-ansible repos - exclude openstack-ansible-tests which has no branches
40-
for repo in $(sed -n -e 's/^.*src: //p' ${role_reqs_file} | grep openstack-ansible | grep -v openstack-ansible-tests); do
40+
## Additionally exclude openstack-ansible-plugins and openstack-ansible-hosts due to no support for Ansible 2.5 on a stable branch (until Rocky)
41+
for repo in $(sed -n -e 's/^.*src: //p' ${role_reqs_file} | grep openstack-ansible | grep -v openstack-ansible-tests | grep -v openstack-ansible-plugins | grep -v openstack_hosts); do
4142
## Get the latest tag and save that
4243
LATEST_TAG=$(git ls-remote --tags $repo | grep "${OSA_MAJOR_VERSION}" | grep -v '{}' | cut -d/ -f 3 | sort --version-sort | tail -n 1)
4344
## Update repos

phobos/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ From the root of the rpc-ceph repo clone:
125125
* Optionally set `rpc_ceph_version` to a specific version of rpc-ceph or a pull request ref you would like to test
126126

127127
```bash
128-
$ pip install -r requirements.txt ansible==2.4.4.0
129-
$ ansible-playbook -e cluster_deploy_version=example-v01 \
128+
$ pip install -r requirements.txt ansible==2.5.7.0
129+
$ ansible-playbook -e cluster_deploy_version=perf-v01 \
130130
-e ssh_keyname=mykey \
131131
-e stor_count=3 \
132132
-e client_count=1 \

scripts/bootstrap-ansible.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set -e -u -x
22

3-
export ANSIBLE_PACKAGE=${ANSIBLE_PACKAGE:-"ansible==2.4.4.0"}
3+
export ANSIBLE_PACKAGE=${ANSIBLE_PACKAGE:-"ansible==2.5.7.0"}
44
export SSH_DIR=${SSH_DIR:-"/root/.ssh"}
55
export ANSIBLE_ROLE_FILE=${ANSIBLE_ROLE_FILE:-"ansible-role-requirements.yml"}
66
# Set the role fetch mode to any option [git-clone]

tests/ansible-role-test-requirements.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@
4141
- name: openstack_hosts
4242
scm: git
4343
src: https://git.openstack.org/openstack/openstack-ansible-openstack_hosts
44-
version: 17.0.4
44+
version: master
4545
- name: memcached_server
4646
scm: git
4747
src: https://git.openstack.org/openstack/openstack-ansible-memcached_server
4848
version: 17.0.4
49+
- name: ../ceph_plugins
50+
scm: git
51+
src: https://git.openstack.org/openstack/openstack-ansible-plugins
52+
version: master

0 commit comments

Comments
 (0)