mirror of https://github.com/ceph/ceph-ansible.git
52ff9ce5d1
sometimes it can happen the following task fails:
```
TASK [ceph-facts : get current fsid] *******************************************
task path: /home/jenkins-build/build/workspace/ceph-ansible-prs-dev-centos-container-update/roles/ceph-facts/tasks/facts.yml:78
Wednesday 19 June 2019 18:12:49 +0000 (0:00:00.203) 0:02:39.995 ********
fatal: [mon2 -> mon1]: FAILED! => changed=true
cmd:
- timeout
- --foreground
- -s
- KILL
- 600s
- docker
- exec
- ceph-mon-mon1
- ceph
- --cluster
- ceph
- daemon
- mon.mon1
- config
- get
- fsid
delta: '0:00:00.239339'
end: '2019-06-19 18:12:49.812099'
msg: non-zero return code
rc: 22
start: '2019-06-19 18:12:49.572760'
stderr: 'admin_socket: exception getting command descriptions: [Errno 2] No such file or directory'
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
```
not sure exactly why since just before this task, mon1 seems to be well
UP otherwise it wouldn't have passed the task `waiting for the
containerized monitor to join the quorum`.
As a quick fix/workaround, let's add a retry which allows us to get
around this situation:
```
TASK [ceph-facts : get current fsid] *******************************************
task path: /home/jenkins-build/build/workspace/ceph-ansible-scenario/roles/ceph-facts/tasks/facts.yml:78
Thursday 20 June 2019 15:35:07 +0000 (0:00:00.201) 0:03:47.288 *********
FAILED - RETRYING: get current fsid (3 retries left).
changed: [mon2 -> mon1] => changed=true
attempts: 2
cmd:
- timeout
- --foreground
- -s
- KILL
- 600s
- docker
- exec
- ceph-mon-mon1
- ceph
- --cluster
- ceph
- daemon
- mon.mon1
- config
- get
- fsid
delta: '0:00:00.290252'
end: '2019-06-20 15:35:13.960188'
rc: 0
start: '2019-06-20 15:35:13.669936'
stderr: ''
stderr_lines: <omitted>
stdout: |-
{
"fsid": "153e159d-7ade-42a7-842c-4d04348b901e"
}
stdout_lines: <omitted>
```
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit
|
||
---|---|---|
.github/ISSUE_TEMPLATE | ||
contrib | ||
docs | ||
group_vars | ||
infrastructure-playbooks | ||
library | ||
plugins | ||
profiles | ||
roles | ||
tests | ||
.gitignore | ||
.mergify.yml | ||
.travis.yml | ||
CONTRIBUTING.md | ||
LICENSE | ||
Makefile | ||
README-MULTISITE.md | ||
README.rst | ||
Vagrantfile | ||
ansible.cfg | ||
ceph-ansible.spec.in | ||
dummy-ansible-hosts | ||
generate_group_vars_sample.sh | ||
raw_install_python.yml | ||
requirements.txt | ||
rhcs_edits.txt | ||
site-container.yml.sample | ||
site-docker.yml.sample | ||
site.yml.sample | ||
test.yml | ||
tox-dashboard.ini | ||
tox-podman.ini | ||
tox-update.ini | ||
tox.ini | ||
vagrant_variables.yml.sample |
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/