ceph-ansible - msg: 'AnsibleUndefinedVariable: ''dict object'' has no attribute ''split'' on TASK ==> generate ceph osd docker run script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Won't Fix
|
Wishlist
|
John Fulton |
Bug Description
Description
===========
I have an AnsibleUndefine
I just passed these two environments to in order to deploty ceph via ceph-ansible:
-e ~/custom-
-e ~/custom-
However, I got the errors for some of my nodes (not all) below,
```
2020-01-21 23:01:03,543 p=890833 u=root | TASK [ceph-osd : generate ceph osd docker run script] *******
2020-01-21 23:01:03,543 p=890833 u=root | Tuesday 21 January 2020 23:01:03 +0300 (0:00:01.415) 0:24:14.961 *******
2020-01-21 23:01:03,749 p=890833 u=root | fatal: [computehci-6]: FAILED! => changed=false
msg: 'AnsibleUndefin
2020-01-21 23:01:03,840 p=890833 u=root | fatal: [computehci-7]: FAILED! => changed=false
msg: 'AnsibleUndefin
2020-01-21 23:01:03,936 p=890833 u=root | fatal: [computehci-4]: FAILED! => changed=false
msg: 'AnsibleUndefin
2020-01-21 23:01:04,039 p=890833 u=root | fatal: [computehci-5]: FAILED! => changed=false
msg: 'AnsibleUndefin
2020-01-21 23:01:04,131 p=890833 u=root | fatal: [computehci-2]: FAILED! => changed=false
msg: 'AnsibleUndefin
2020-01-21 23:01:04,232 p=890833 u=root | fatal: [computehci-3]: FAILED! => changed=false
msg: 'AnsibleUndefin
2020-01-21 23:01:04,238 p=890833 u=root | fatal: [computehci-0]: FAILED! => changed=false
msg: 'AnsibleUndefin
2020-01-21 23:01:04,340 p=890833 u=root | fatal: [computehci-1]: FAILED! => changed=false
msg: 'AnsibleUndefin
```
Steps to reproduce
==================
Install undercloud (stein)
Prepare environment files (ceph custom config:)
```
parameter_defaults:
CephConfigOve
mon_
journal_size: 5120
osd_
osd_
osd_
osd_
CephAnsibleDi
osd_scenario: lvm
osd_
devices:
- /dev/disk/
- /dev/disk/
- /dev/disk/
- /dev/disk/
- /dev/disk/
- /dev/disk/
CephPools:
- {"name": .rgw.root, "pg_num": 16, "pgp_num": 16, "application": rados}
- {"name": default.
- {"name": default.rgw.meta, "pg_num": 16, "pgp_num": 16, "application": rados}
- {"name": default.rgw.log, "pg_num": 16, "pgp_num": 16, "application": rados}
- {"name": images, "pg_num": 128, "pgp_num": 128, "application": rbd}
- {"name": metrics, "pg_num": 16, "pgp_num": 16, "application"
- {"name": backups, "pg_num": 512, "pgp_num": 512, "application": rbd}
- {"name": vms, "pg_num": 256, "pgp_num": 256, "application": rbd}
- {"name": volumes, "pg_num": 1024, "pgp_num": 1024, "application": rbd}
CephPoolDefau
```
and deploy overcloud via:
```
openstack overcloud deploy \
--timeout 120 \
--templates \
-r ~/templates/
-n ~/templates/
-e ~/custom-
-e ~/custom-
-e ~/custom-
-e ~/custom-
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/custom-
-e ~/custom-
-e ~/custom-
-e ~/custom-
-e ~/templates/
-e ~/templates/
```
Expected result
===============
ceph-ansible should deploy the ceph cluster
Actual result
=============
Fails with the error above
Environment
===========
1. Stein
2 ceph-ansible version: ceph-ansible-
Ceph version: v4.0.8-
Ansible version: 2.8.6
3. OVN
tags: | added: ceph-ansible |
tags: | added: hyperconverged |
tags: | added: hci |
** UPDATE **
I have also opened a issue on ceph-ansible project's github page and I got a reasonable answer. It seems this related to TripleO. If you make a HCI deployment then, this issue will occure.
Please check the issue[1] to get the point. /github. com/ceph/ ceph-ansible/ issues/ 4970#issuecomme nt-577334186
[1] https:/