gluster-ansible-infra icon indicating copy to clipboard operation
gluster-ansible-infra copied to clipboard

gluster.infra fails because lvm2 package is not installed

Open outdooracorn opened this issue 5 years ago • 1 comments
trafficstars

Getting the following error message when using gluster.infra:

TASK [gluster.infra/roles/backend_setup : Create volume groups] ********************************************************************************************************************************
failed: [hc2-02] (item={'key': 'vg.gluster', 'value': [{'vgname': 'vg.gluster', 'pvname': '/dev/sda'}]}) => {"ansible_loop_var": "item", "changed": false, "item": {"key": "vg.gluster", "value": [{"pvname": "/dev/sda", "vgname": "vg.gluster"}]}, "msg": "Failed to find required executable pvs in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}   

Running sudo apt install lvm2 -y on the remote machine fixes the problem.

Shouldn't this package be installed (if not already installed) by gluster.infra like the thin-provisioning-tools package is?

outdooracorn avatar May 23 '20 12:05 outdooracorn

On a similar note, xfsprogs isn't installed either:

TASK [gluster.infra/roles/backend_setup : Create filesystem on thin logical vols] **************************************************************************************************************
failed: [hc2-02] (item={'vgname': 'vg.gluster', 'thinpool': 'thinpool', 'lvname': 'lv.thin', 'lvsize': '2T'}) => {"ansible_index_var": "index", "ansible_loop_var": "item", "changed": false, "index": 0, "item": {"lvname": "lv.thin", "lvsize": "2T", "thinpool": "thinpool", "vgname": "vg.gluster"}, "msg": "Failed to find required executable mkfs.xfs in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}

outdooracorn avatar May 23 '20 13:05 outdooracorn