<div dir="ltr">To run lvm commands inside the mock env, we need this configuration:<div><br></div><div># cat /etc/lvm/lvmlocal.conf</div><div>activation {</div><div>    udev_sync = 0</div><div>    udev_rules = 0</div><div>}</div><div><br></div><div>We can use these options from the command line, using --config &#39;...&#39; - but having</div><div>it in the local lvm conf, we can test also vdsm lvm commands running in mock.</div><div><br></div><div>This enables very interesting unit tests that we cannot write today, using real</div><div>lvs on top of loop device, instead of our complicated and fragile fake lvm.</div><div><br></div><div>Here is an example of such test:</div><div><a href="https://gerrit.ovirt.org/#/c/74991/11/tests/virttests/dmstats_test.py">https://gerrit.ovirt.org/#/c/74991/11/tests/virttests/dmstats_test.py</a><br></div><div>This runs now successfully on travis and jenkins!</div><div><br></div><div>It would be nice if we can include this conf file in the automation/ dir, and have</div><div>it installed inside the chroot, or we can install it manually from check-patch.sh.</div><div><br></div><div>For travis we will write this file when building the container.</div><div dir="ltr"><div><br></div><div>Nir</div></div></div>