gluster / gluster-ansible-infra

Ansible role to enable and deploy the backend of a Gluster cluster.
GNU General Public License v3.0
28 stars 36 forks source link

gluster_volumes_by_groupname_pre NoneNoneNone #90

Open gaima8 opened 4 years ago

gaima8 commented 4 years ago

Hi,

I'm getting some behaviour that I don't understand and am an unable to debug. gluster_volumes_by_groupname_pre is being set incorrectly.

TASK [gluster.infra/roles/backend_setup : Check if vg block device exists] ***********************************************************************************************************************************
fatal: [host1]: FAILED! => {"msg": "dict2items requires a dictionary, got <class 'str'> instead."}

Group devices by volume group name, including existing devices is setting gluster_volumes_by_groupname_pre to the following

    "gluster_volumes_by_groupname_pre": "NoneNoneNone{\"vg_sda\": [{\"vgname\": \"vg_sda\", \"pvname\": \"/dev/sda\"}]}"

I do have jinja2_native = True in ansible.cfg, if I take that away gluster_volumes_by_groupname_pre is set correctly.

    "gluster_volumes_by_groupname_pre": {
        "vg_sda": [
            {
                "pvname": "/dev/sda",
                "vgname": "vg_sda"
            }
        ]
    }