Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEPHSTORA-222 Use Ansible 2.5.7.0 and ceph-ansible 3.1 #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ versions of ``ceph-ansible`` used in RPC deployments.

## Current versions of ceph-ansible & Ansible

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

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

## What is rpc-ceph?

Expand Down
6 changes: 1 addition & 5 deletions ansible-role-requirements.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- name: ceph-ansible
scm: git
src: https://github.com/ceph/ceph-ansible
version: v3.0.39
version: stable-3.1
- name: rsyslog_client
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-rsyslog_client
Expand Down Expand Up @@ -30,7 +30,3 @@
scm: git
src: https://github.com/cloudalchemy/ansible-alertmanager
version: 0.13.1
- name: ../ceph_plugins
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-plugins
version: 17.0.4
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
5 changes: 3 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,8 @@ 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
## Additionally exclude openstack-ansible-plugins and openstack-ansible-hosts due to no support for Ansible 2.5 on a stable branch (until Rocky)
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
## 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
6 changes: 5 additions & 1 deletion tests/ansible-role-test-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@
- name: openstack_hosts
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-openstack_hosts
version: 17.0.4
version: master
- name: memcached_server
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-memcached_server
version: 17.0.4
- name: ../ceph_plugins
scm: git
src: https://git.openstack.org/openstack/openstack-ansible-plugins
version: master