ceph-ansible: ansible-playbook rolling_update.yml run ignores settings in /etc/anible/hosts

Solution In Progress - Updated -

Issue

  • Due to specific configuration for each node, initial settings for deployment RHCS 2.x with Ansible site.yml were stored in /etc/ansible/hosts
[mons]
cephmon1 monitor_interface=bond0
cephmon2 monitor_interface=eno16780032
cephmon3 monitor_interface=eno16780032

[osds]
cephosd1 devices="[ '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde', '/dev/sdm', '/dev/sdh', '/dev/sdi', '/dev/sdj', '/dev/sdk', '/dev/sdl' ]" raw_journal_devices="[ '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sdg', '/dev/sdg', '/dev/sdg', '/dev/sdg', '/dev/sdg' ]"

 cephosd2 devices="[ '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde', '/dev/sdf', '/dev/sdg', '/dev/sdh', '/dev/sdi', '/dev/sdj', '/dev/sdk' ]" raw_journal_devices="[ '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sdl', '/dev/sdl', '/dev/sdl', '/dev/sdl', '/dev/sdl' ]"

cephosd3 devices="[ '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde', '/dev/sdf', '/dev/sdg', '/dev/sdh', '/dev/sdi', '/dev/sdj', '/dev/sdk' ]" raw_journal_devices="[ '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sda', '/dev/sdl', '/dev/sdl', '/dev/sdl', '/dev/sdl', '/dev/sdl' ]"

cephosd4 devices="[ '/dev/sda', '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde', '/dev/sdi', '/dev/sdj', '/dev/sdk', '/dev/sdl', '/dev/sdm', '/dev/sdn', '/dev/sdo', '/dev/sdp', '/dev/sdq', '/dev/sdr', '/dev/sds', '/dev/sdt' ]" raw_journal_devices="[ '/dev/sdf', '/dev/sdf', '/dev/sdf', '/dev/sdf', '/dev/sdf', '/dev/sdf', '/dev/sdg', '/dev/sdg', '/dev/sdg', '/dev/sdg', '/dev/sdg', '/dev/sdg', '/dev/sdh', '/dev/sdh', '/dev/sdh', '/dev/sdh', '/dev/sdh' ]"
  • running update with Ansible rolling_update.yml is failing with message:
[snip]
TASK: [ceph-common | make sure monitor_interface or monitor_address is 
configured] ***
failed: [cephmon1] => {"failed": true}
msg: monitor_interface or monitor_address must be configured. Interface 
for the monitor to listen on or IP address of that interface

FATAL: all hosts have already failed -- aborting
[/snip]

Environment

  • Red Hat Ceph Storage 2.x
  • ceph-ansible-1.0.5-xx.el7scon.noarch

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