working ansible based crush map?
I'm trying to follow the directions in ceph-ansible for having it automatically set up the crush map. I've also looked at https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/html/in... But.. my setup isnt working. ansible complains about: [WARNING]: While constructing a mapping from /etc/ansible/hosts.yml, line 5, column 9, found a duplicate dict key (hostA2). Using last defined value only. Could anyone explain what I'm doing wrong, please? Here's the relevant hosts.yml snippets all: children: osds: hosts: hostA1: osd_crush_location: host: 'hostA1' chassis: 'hostA' root: 'default' hostA2: osd_crush_location: host: 'hostA2' chassis: 'hostA' root: 'default' -- Philip Brown| Sr. Linux System Administrator | Medata, Inc. 5 Peters Canyon Rd Suite 250 Irvine CA 92606 Office 714.918.1310| Fax 714.918.1325 pbrown@medata.com| www.medata.com
Ooops. I found the problem with duplicates.. .. there were actually duplicates elsewhere, that were presenting as if they were in this section. So on the one hand, i got rid of the runtime errors. But on the other hand... this isnt actually modding the crush map for me? the "chassis: hostA" doesnt get created as a bucket all: children: osds: hosts: hostA1: osd_crush_location: host: 'hostA1' chassis: 'hostA' root: 'default' hostA2: osd_crush_location: host: 'hostA2' chassis: 'hostA' root: 'default' -- Philip Brown| Sr. Linux System Administrator | Medata, Inc. 5 Peters Canyon Rd Suite 250 Irvine CA 92606 Office 714.918.1310| Fax 714.918.1325 pbrown@medata.com| www.medata.com
AAAND final update: problem fixed. I had enabled create_crush_tree: true in group_vars/osd.yml but I had neglected to ALSO set crush_rule_config: true So now it's all happy
participants (1)
-
Philip Brown