Bug 1738502 - LVM cache feature not possible with ansible-2.8
Summary: LVM cache feature not possible with ansible-2.8
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: cockpit-ovirt
Classification: oVirt
Component: gluster-ansible
Version: 0.13.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.3.6
: 0.13.6
Assignee: Gobinda Das
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1734778
TreeView+ depends on / blocked
 
Reported: 2019-08-07 10:50 UTC by Gobinda Das
Modified: 2019-09-26 19:43 UTC (History)
5 users (show)

Fixed In Version: cockpit-ovirt-0.13.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1734778
Environment:
Last Closed: 2019-09-26 19:43:10 UTC
oVirt Team: Gluster
Embargoed:
sbonazzo: ovirt-4.3?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 101771 0 master MERGED Added thinpool device option in lvm cache 2019-08-09 07:13:45 UTC
oVirt gerrit 102550 0 ovirt-4.3 MERGED Added thinpool device option in lvm cache 2019-08-12 07:32:37 UTC

Description Gobinda Das 2019-08-07 10:50:17 UTC
Description of problem:
-----------------------
With Ansible-2.8, LV cache feature is not working.

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHV 4.3.5
Ansible-2.8.3

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. During deployment enable LV cache. with cache data disk as value


Actual results:
---------------
Failed to setup LV cache

Expected results:
-----------------
LV cache should be setup successfully


Additional info:
----------------
This issue is also reported by oVirt community user using Ansible-2.8
https://bugzilla.redhat.com/show_bug.cgi?id=1720261

Sachi is aware of this issue and has upstream issue - https://github.com/ansible/ansible/issues/56501 - opened for the same

--- Additional comment from SATHEESARAN on 2019-07-31 12:18:13 UTC ---

As a workaround for this issue, Sachi has suggested to have the disk in the VG also as input along with cache disk

<snip>
Now since version 2.8 the behavior has changed, where all the existing pvs which which were part of volume group has to be provided. Like:

- name: Extend volume group
  lvg:
     state: present
     vg: foo_vg
     pvs: "/dev/sdb,/dev/sdc"
     pv_options: "--dataalignment 256K"
</snip>

--- Additional comment from SATHEESARAN on 2019-07-31 12:22:03 UTC ---

Gobinda already has a patch that settles the issue[1] where the LV cache will be attached to the
specific thinpool, along with that patch, it will be easily deducible to find the PV of the VG.

With that information, ansible vars file could be having both the disks PV of that VG, and also the cache disk

[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1721451

Comment 1 SATHEESARAN 2019-09-03 05:13:36 UTC
Verified with cockpit-ovirt-dashboard-0.13.6
LVM cache code takes care of the problem now.

When the cache is created on 'sdc' to cache the contents of thinpool on 'sdb',
then the cache value in the generated vars file becomes - '/dev/sdb,/dev/sdc' as per expectation

Comment 2 Sandro Bonazzola 2019-09-26 19:43:10 UTC
This bugzilla is included in oVirt 4.3.6 release, published on September 26th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.6 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.