Skip to content

Commit

Permalink
CEPHSTORA-222 Use Ansible 2.5.7.0 and ceph-ansible 3.1
Browse files Browse the repository at this point in the history
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.

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.
  • Loading branch information
andymcc committed Aug 2, 2018
1 parent 09149f9 commit 2833677
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ versions of ``ceph-ansible`` used in RPC deployments.

### **ceph-ansible version:** v3.0.39

### **Ansible version:** 2.4.4.0
### **Ansible version:** 2.5.7.0

## What is rpc-ceph?

Expand Down
9 changes: 1 addition & 8 deletions ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@

library = /etc/ansible/ceph_roles/ceph-ansible/library:./library:/etc/ansible/ceph_plugins/library
# set plugin path directories here, separate with colons
action_plugins = /etc/ansible/ceph_plugins/action:/etc/ansible/ceph_roles/ceph-ansible/plugins/actions
cache_plugins = /etc/ansible/ceph_plugins/cache
action_plugins = /etc/ansible/ceph_roles/ceph-ansible/plugins/actions:/etc/ansible/ceph_plugins/action:
callback_plugins = /etc/ansible/ceph_roles/ceph-ansible/plugins/callback:/etc/ansible/ceph_plugins/callback
connection_plugins = /etc/ansible/ceph_plugins/connection
lookup_plugins = /etc/ansible/ceph_plugins/lookup
inventory_plugins = /etc/ansible/ceph_plugins/inventory
vars_plugins = /etc/ansible/ceph_plguins/vars_plugins
filter_plugins = /etc/ansible/ceph_plugins/filter
test_plugins = /etc/ansible/ceph_plugins/test
terminal_plugins = /etc/ansible/ceph_plugins/terminal
strategy_plugins = /etc/ansible/ceph_plugins/strategy
roles_path = /etc/ansible/ceph_roles/ceph-ansible/roles:/etc/ansible/ceph_roles:/etc/ansible/roles
4 changes: 2 additions & 2 deletions gating/update_dependencies/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
## For use when updating the versions of upstream projects inside rpc-ceph.
## NB This will NOT upgrade a deployed environment, and should not be used in
## production
CEPH_MAJOR_VERSION="v3\.0"
CEPH_MAJOR_VERSION="v3\.1"
OSA_MAJOR_VERSION="17\."

function update_ceph_ansible {
Expand Down Expand Up @@ -37,7 +37,7 @@ function update_upstream_osa_roles {
## Update both the roles and test-roles
for role_reqs_file in ansible-role-requirements.yml tests/ansible-role-test-requirements.yml; do
## For each of the openstack-ansible repos - exclude openstack-ansible-tests which has no branches
for repo in $(sed -n -e 's/^.*src: //p' ${role_reqs_file} | grep openstack-ansible | grep -v openstack-ansible-tests); do
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); do
## Get the latest tag and save that
LATEST_TAG=$(git ls-remote --tags $repo | grep "${OSA_MAJOR_VERSION}" | grep -v '{}' | cut -d/ -f 3 | sort --version-sort | tail -n 1)
## Update repos
Expand Down
4 changes: 2 additions & 2 deletions phobos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ From the root of the rpc-ceph repo clone:
* Optionally set `rpc_ceph_version` to a specific version of rpc-ceph or a pull request ref you would like to test

```bash
$ pip install -r requirements.txt ansible==2.4.4.0
$ ansible-playbook -e cluster_deploy_version=example-v01 \
$ pip install -r requirements.txt ansible==2.5.7.0
$ ansible-playbook -e cluster_deploy_version=perf-v01 \
-e ssh_keyname=mykey \
-e stor_count=3 \
-e client_count=1 \
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap-ansible.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e -u -x

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

0 comments on commit 2833677

Please sign in to comment.