Red Hat Bugzilla – Bug 1523692
Manual creation of thinpools fail when no size specified.
Last modified: 2018-06-20 23:34:49 EDT
Created attachment 1364945 [details] gdeploy configuration file - gdeploy-no-backed-setup.conf Description of problem: During manual creation of PVs, VGs and thin pools. gdeploy was failing until size was added to the thinpool sections. The docs indicate that the size option should be optional. Version-Release number of selected component (if applicable): OS: RHEL 7.4 Kernel: kernel-3.10.0-693.el7.x86_64 Gluster: glusterfs-server-3.8.4-44.el7rhgs gdeploy: gdeploy-2.0.2-14.el7rhgs.noarch How reproducible: Completely Steps to Reproduce: Using gdeploy-no-backed-setup.conf thinpool section: [lv1] action=create poolname=gluster_thinpool_vg0 ignore_lv_errors=no vgname=gluster_vg0 lvtype=thinpool poolmetadatasize=5GB Actual results: failed: [172.16.3.2] (item={u'lv': u'gluster_thinpool_vg0', u'size': u'', u'extent': u'100%FREE', u'vg': u'gluster_vg0'}) => {"failed": true, "item": {"extent": "100%FREE", "lv": "gluster_thinpool_vg0", "size": "", "vg": "gluster_vg0"}, "msg": " No command with matching syntax recognised. Run 'lvcreate --help' for more information.\n Nearest similar command has syntax:\n", "rc": 3} Expected results: The "size" parameter should be optional according docs. AFAIK it should use all available space by default. Additional info: SOSREPORTS: http://collab-shell.usersys.redhat.com/01973194/
Cal, I tried replicating what you were trying, with your attached config file. I was able to create lvs without mentioning the size. My config file is here[1]. I don't think it's because of the missing size parameter. Using 100% of the disk in case of missing size parameter is the default behaviour. Is there any way we can get access to this setup? [1] https://paste.opensuse.org/41180366
I am encountering exactly the same issue. The config looks like this: [lv1] action=create vgname=vg_gluster poolname=lv_pool lvtype=thinpool poolmetadatasize=14G chunksize=256k This results in this error: TASK [Create LVs with specified size for the VGs] ************************************************************** task path: /tmp/tmpEvupFJ/lvcreate.yml:7 failed: [exglus0003.it.rm.dk] (item={u'lv': u'lv_pool', u'size': u'', u'extent': u'100%FREE', u'vg': u'vg_gluster'}) => {"failed": true, "item": {"extent": "100%FREE", "lv": "lv_pool", "size": "", "vg": "vg_gluster"}, "msg": " No command with matching syntax recognised. Run 'lvcreate --help' for more information.\n Nearest similar command has syntax:\n", "rc": 3} failed: [exglus0001.it.rm.dk] (item={u'lv': u'lv_pool', u'size': u'', u'extent': u'100%FREE', u'vg': u'vg_gluster'}) => {"failed": true, "item": {"extent": "100%FREE", "lv": "lv_pool", "size": "", "vg": "vg_gluster"}, "msg": " No command with matching syntax recognised. Run 'lvcreate --help' for more information.\n Nearest similar command has syntax:\n", "rc": 3} failed: [exglus0002.it.rm.dk] (item={u'lv': u'lv_pool', u'size': u'', u'extent': u'100%FREE', u'vg': u'vg_gluster'}) => {"failed": true, "item": {"extent": "100%FREE", "lv": "lv_pool", "size": "", "vg": "vg_gluster"}, "msg": " No command with matching syntax recognised. Run 'lvcreate --help' for more information.\n Nearest similar command has syntax:\n", "rc": 3} to retry, use: --limit @/tmp/tmpEvupFJ/lvcreate.retry We reran it with "extents" added, and set to the exact number of PE on the PV. Gdeploy then ran.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:1958