> >I deployed Ceph 14.2.16 with ceph-ansible stable-4.0 a while back, and >want to test upgrading. So for now I am trying rolling_update.yml for >latest 14.x (before trying stable-5.0 and 15.x) but getting some errors, >which seem to indicate empty or missing variables. > >Initially monitor_interface was unavailable for mons even though I have >it in group_vars/all.yml and it worked when I deployed it. So I put >'monitor_interface=storage' in /etc/ansible/hosts against each mon >entry, and got past that. Now I get this ... > >$ time ansible-playbook infrastructure-playbooks/rolling_update.yml -e >ireallymeanit=yes >... >TASK [ceph-validate : validate ceph_origin] >*********************************************************************************************** >Thursday 19 August 2021 09:57:06 +0000 (0:00:00.148) 0:00:36.032 >******* >fatal: [dev-ceph-mon-01]: FAILED! => changed=false > msg: ceph_origin must be either 'repository', 'distro' or 'local' >... > >... which indicates ceph_origin is unavailable, also from >group_vars/all.yml. The only thing I could find in archives here or the >deprecated ceph-ansible list is this: >http://lists.ceph.com/pipermail/ceph-ansible-ceph.com/2020-April/000342.html > >But that doesn't give me a solution. Can someone suggest what I should >try next? > Hi Greg, Ansible will look for group_vars adjacent to the playbook file (in your case within ceph-ansible/infrastructure-playbooks/), else it will fallback to looking for group_vars adjacent to the inventory file (in your case within /etc/ansible/). Presumably your previous run of site.yml would have succeeded because both that playbook and the group_vars dir are adjacent (in root of ceph-ansible/ ). To resolve your current issue I think you could just copy the rolling_update.yml playbook up one level to the root of the ceph-ansible dir. Alternatively, you could create a symlink to make group_vars adjacent to your inventory file: ln -s /<path-to-ceph-ansible>/group_vars /etc/ansible/group_vars https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#organizing-host-and-group-variables Cheers, Dylan >Thanks, >Greg. >_______________________________________________ >ceph-users mailing list -- ceph-users@xxxxxxx >To unsubscribe send an email to ceph-users-leave@xxxxxxx > _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx