oVirt / vdsm

The Virtual Desktop Server Manager
GNU General Public License v2.0
161 stars 202 forks source link

lvmdevices: create devices directory #346

Closed aesteve-rh closed 1 year ago

aesteve-rh commented 2 years ago

Current implementation assumes /etc/lvm/devices folder exists, which may not be true with a fresh installation (only in an upgrade).

We need to make sure that we create the directory before creating the empty devices file, with exist_ok flag set to True. This will ensure that it works in both scenarios.

Fixes: b8692e93f38abaed973c528fe457a767cc1245ea Signed-off-by: Albert Esteve aesteve@redhat.com

aesteve-rh commented 2 years ago

@didib fyi

aesteve-rh commented 2 years ago

/ost

aesteve-rh commented 2 years ago

/ost

aesteve-rh commented 2 years ago

/ost