Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gluster_volumes_by_groupname_pre NoneNoneNone #90

Open
gaima8 opened this issue Mar 28, 2020 · 0 comments
Open

gluster_volumes_by_groupname_pre NoneNoneNone #90

gaima8 opened this issue Mar 28, 2020 · 0 comments

Comments

@gaima8
Copy link

gaima8 commented Mar 28, 2020

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"
            }
        ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant