You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the collection/role infra.lvm_snapshots.snapshot_create, it fails when there is lvm thin pool in the managed node. Snashot and rollback works fine with regular LVM but not when thin pool is used.
ANSIBLE IN USE: from RH-SAT 6.15 RH-SATELLITE: ANSIBLE JOB TEMPLATE ANSIBLE VERSION: ansible-core-2.16.3-2.el8.x86_64 ANSIBLE COLLECTIONS :
=> COLLECTIONS FAILS FOR THINPOOL LVM WITH NO SIZE:
TASK [infra.lvm_snapshots.snapshot_create : Create snapshots] ******************
failed: [examplecustomer19.ar.custy] (item={'vg': 'vg00', 'lv': 'lv_root', 'size': '0.0B'}) => {"ansible_loop_var": "item", "changed": false, "err": " --size may not be zero.\n Run `lvcreate --help' for more information.\n", "item": {"lv": "lv_root", "size": "0.0B", "vg": "vg00"}, "msg": "Creating logical volume 'lv_root' failed", "rc": 3}
failed: [examplecustomer19.ar.custy] (item={'vg': 'vg00', 'lv': 'lv_var', 'size': '0.0B'}) => {"ansible_loop_var": "item", "changed": false, "err": " --size may not be zero.\n Run `lvcreate --help' for more information.\n", "item": {"lv": "lv_var", "size": "0.0B", "vg": "vg00"}, "msg": "Creating logical volume 'lv_var' failed", "rc": 3}
failed: [examplecustomer19.ar.custy] (item={'vg': 'vg00', 'lv': 'lv_opt', 'size': '0.0B'}) => {"ansible_loop_var": "item", "changed": false, "err": " --size may not be zero.\n Run `lvcreate --help' for more information.\n", "item": {"lv": "lv_opt", "size": "0.0B", "vg": "vg00"}, "msg": "Creating logical volume 'lv_opt' failed", "rc": 3}
PLAY RECAP *********************************************************************
examplecustomer19.ar.custy : ok=46 changed=8 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
Exit status: 2
StandardError: Job execution failed
ERROR: --size may not be zero.\n Run `lvcreate --help' for more information.\n" From DOCs:https://github.com/redhat-cop/infra.lvm_snapshots/tree/main/roles/snapshot_create#size The size of the logical volume according to the definition of the size parameter of the community.general.lvol module.
To create thin provisioned snapshot of a thin provisioned volume, omit the size parameter or set it to 0
The text was updated successfully, but these errors were encountered:
Not specifying size for the lvol (as in documentation) results in collection error with lvol module that size is required.
Also Not specifying size AND also patching the collection's lvol task to not include the size parameter results in collection creating the snasphots. BUT those snapshots fail to rollback due to lvs not being active.
Hi,
When trying to use the collection/role infra.lvm_snapshots.snapshot_create, it fails when there is lvm thin pool in the managed node. Snashot and rollback works fine with regular LVM but not when thin pool is used.
ANSIBLE IN USE: from RH-SAT 6.15
RH-SATELLITE: ANSIBLE JOB TEMPLATE
ANSIBLE VERSION: ansible-core-2.16.3-2.el8.x86_64
ANSIBLE COLLECTIONS :
=> COLLECTIONS FAILS FOR THINPOOL LVM WITH NO SIZE:
ERROR: --size may not be zero.\n Run `lvcreate --help' for more information.\n"
From DOCs: https://github.com/redhat-cop/infra.lvm_snapshots/tree/main/roles/snapshot_create#size
The size of the logical volume according to the definition of the size parameter of the community.general.lvol module.
To create thin provisioned snapshot of a thin provisioned volume, omit the size parameter or set it to 0
The text was updated successfully, but these errors were encountered: