Run ceph-ansible infrastructure-playbooks/playbook.yml failed with error "_monitor_addresses is undefined"

Solution Verified - Updated -

Issue

Run ceph ansible infrastructure-playbooks/<playbook.yml> failed with error "_monitor_addresses is undefined"

[admin@admin ceph-ansible]$ ansible-playbook infrastructure-playbooks/shrink-osd.yml -e osd_to_kill=0

TASK [ceph-facts : set_fact _monitor_address to monitor_interface - ipv6] ********************************************
task path: /usr/share/ceph-ansible/roles/ceph-facts/tasks/set_monitor_address.yml:42
Tuesday 26 May 2020  14:32:55 +0800 (0:00:00.162)       0:00:23.621 ***********
skipping: [localhost] => (item=cephnode)  => changed=false
  ansible_loop_var: item
  item: cephnode
  skip_reason: Conditional result was False

TASK [ceph-facts : set_fact _current_monitor_address] ****************************************************************
task path: /usr/share/ceph-ansible/roles/ceph-facts/tasks/set_monitor_address.yml:53
Tuesday 26 May 2020  14:32:55 +0800 (0:00:00.065)       0:00:23.686 ***********
fatal: [localhost]: FAILED! =>
  msg: '''_monitor_addresses'' is undefined'  

PLAY RECAP ***********************************************************************************************************
cephnode            : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
localhost                  : ok=24   changed=1    unreachable=0    failed=1    skipped=29   rescued=0    ignored=0

Environment

  • Red Hat Ceph Storage 4
  • Red Hat Ceph Storage 3
  • Red Hat Ceph Storage 2.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content