Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux 73287f91bc mgr: fix mgr keyring error on rolling_update
when upgrading from RHCS 2.5 to 3.2, it fails because the task `create
ceph mgr keyring(s) when mon is containerized` has a when condition
`inventory_hostname == groups[mon_group_name]|last`.
First, this is incorrect because `inventory_hostname` is referring to a
mgr node, it means this condition would have never been satisfied.
Then, this condition + `serial: 1` makes the mgr keyring creating skipped on
the first node. Further, the `ceph-mgr` role tries to copy the mgr
keyring (it's not aware we are running `serial: 1`) this leads to a
failure like the following:

```
TASK [ceph-mgr : copy ceph keyring(s) if needed] ***************************************************************************************************************************************************************************************************************************************************************************
task path: /usr/share/ceph-ansible/roles/ceph-mgr/tasks/common.yml:10
Tuesday 27 November 2018  12:03:34 +0000 (0:00:00.296)       0:11:01.290 ******
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AnsibleFileNotFound: Could not find or access '~/ceph-ansible-keys/48d78ac1-e0d6-4e35-ab3e-772aea7828fc//etc/ceph/local.mgr.magna021.keyring'
failed: [magna021] (item={u'dest': u'/var/lib/ceph/mgr/local-magna021/keyring', u'name': u'/etc/ceph/local.mgr.magna021.keyring', u'copy_key': True}) => {"changed": false, "item": {"copy_key": true, "dest": "/var/lib/ceph/mgr/local-magna021/keyring", "name": "/etc/ceph/local.mgr.magna021.keyring"}, "msg": "Could not find or access '~/ceph-ansible-keys/48d78ac1-e0d6-4e35-ab3e-772aea7828fc//etc/ceph/local.mgr.magna021.keyring'"}
```

The ceph_key module is idempotent, so there is no need to have such a
condition.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1649957

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2018-11-27 18:19:56 +01:00
.github/ISSUE_TEMPLATE Update issue templates 2018-07-12 14:10:15 +02:00
contrib docker-common: rename role 2018-11-12 10:51:48 +01:00
docs doc: update doc to add stable-3.2 information 2018-11-19 09:00:17 +00:00
group_vars defaults: declare container_binary 2018-11-27 16:47:40 +00:00
infrastructure-playbooks mgr: fix mgr keyring error on rolling_update 2018-11-27 18:19:56 +01:00
library ceph_key: fix after rebase 2018-11-27 16:47:40 +00:00
plugins validate: add nautilus release 2018-11-27 08:26:43 +00:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles ceph-osd fix batch with container binary 2018-11-27 16:47:40 +00:00
tests testinfra: linting 2018-11-27 16:47:40 +00:00
.gitignore remove restapi role 2018-10-30 14:19:13 +01:00
.mergify.yml Mergify: fix regexp operator 2018-10-15 15:56:04 +02:00
.travis.yml lint: don't lint 204 2018-11-08 10:22:02 +00:00
CONTRIBUTING.md docker-common: rename role 2018-11-12 10:51:48 +01:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile Makefile: followup on #2585 2018-06-01 12:50:03 +02:00
README-MULTISITE.md rgw: add ceph-validate tasks for multisite, other fixes 2018-10-30 14:00:28 +01:00
README.rst Update Documentation example link to 3.0 2018-02-07 16:34:45 +01:00
Vagrantfile remove restapi role 2018-10-30 14:19:13 +01:00
ansible.cfg tests: increase ssh timeout and retries in ansible.cfg 2018-06-07 18:00:52 +02:00
ceph-ansible.spec.in tests: test master against ansible 2.7 2018-10-30 17:07:05 +01:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
generate_group_vars_sample.sh docker-common: rename role 2018-11-12 10:51:48 +01:00
requirements.txt tests: test master against ansible 2.7 2018-10-30 17:07:05 +01:00
rhcs_edits.txt rhcs: add helpers for the containerized deployment 2018-10-08 09:50:49 -04:00
site-container.yml.sample defaults: declare container_binary 2018-11-27 16:47:40 +00:00
site-docker.yml.sample site: symlink site-docker to site-container 2018-11-27 16:47:40 +00:00
site.yml.sample lint: Don't compare to literal True/False 2018-11-08 10:22:02 +00:00
test.yml don't use "role" or "roles" to include roles 2018-10-31 09:38:59 +01:00
tox.ini Add new container scenario 2018-11-27 16:47:40 +00:00
vagrant_variables.yml.sample remove restapi role 2018-10-30 14:19:13 +01:00

README.rst

ceph-ansible
============
Ansible playbooks for Ceph, the distributed filesystem.

Please refer to our hosted documentation here: http://docs.ceph.com/ceph-ansible/master/

You can view documentation for our ``stable-*`` branches by substituting ``master`` in the link
above for the name of the branch. For example: http://docs.ceph.com/ceph-ansible/stable-3.0/