Bug 1479078
| Summary: | rolling upgrade issues with satellite installation | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Vikhyat Umrao <vumrao> |
| Component: | Ceph-Ansible | Assignee: | Guillaume Abrioux <gabrioux> |
| Status: | CLOSED NOTABUG | QA Contact: | ceph-qe-bugs <ceph-qe-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.3 | CC: | adeza, aschoen, ceph-eng-bugs, gmeno, jbautist, nthomas, sankarshan |
| Target Milestone: | rc | ||
| Target Release: | 2.5 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-28 21:41:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Comment 2
Vikhyat Umrao
2017-08-07 21:53:12 UTC
From what I have seen:
The old rolling_update.yml is still used, then it looks for group_vars/all file
76 pre_tasks:
77 - include_vars: roles/ceph-common/defaults/main.yml
78 - include_vars: roles/ceph-mon/defaults/main.yml
79 - include_vars: roles/ceph-restapi/defaults/main.yml
80 - include_vars: group_vars/all
81 failed_when: false
82 - include_vars: group_vars/{{ mon_group_name }}
83 failed_when: false
84 - include_vars: group_vars/{{ restapi_group_name }}
85 failed_when: false
but group_vars/all doesn't exist :
$~/Downloads/debug_bz/usr/share/ceph-ansible$ ls group_vars/all
ls: group_vars/all: No such file or directory
therefore it takes the default value for ceph_origin which is :
roles/ceph-common/defaults/main.yml:83:ceph_origin: 'upstream' # or 'distro' or 'local'
then it end up with the error we can see in the logs because its entering in that condition:
https://github.com/ceph/ceph-ansible/blob/v2.2.11/roles/ceph-common/tasks/checks/check_mandatory_vars.yml#L12-L23
I think playing the new version of rolling_update.yml should fix this error since it will look for group_vars/all.yml (which actually exists) and set ceph_origin to 'distro' as expected.
|