creating mirrored lvm volume in CentOS 7.4 fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Antony Cleave |
Bug Description
setting lvm_mirrors to anything apart from 0 causes this in /var/log/
2017-11-03 18:50:44.630 18988 ERROR cinder.
', u' File "/usr/lib/
result = task.execute(
', u' File "/usr/lib/
model_update = self._create_
', u' File "/usr/lib/
ret = self.driver.
', u' File "/usr/lib/
mirror_count)
', u' File "/usr/lib/
vg_
', u' File "/usr/lib/
run_
', u' File "/usr/lib/
result = self.__
', u' File "/usr/lib/
return processutils.
', u' File "/usr/lib/
cmd=
', u'ProcessExecut
Command: sudo cinder-rootwrap /etc/cinder/
Exit code: 3
Stdout: u\'\'
Stderr: u"File descriptor 20 (/dev/urandom) leaked on lvcreate invocation. Parent PID 19254: /usr/bin/python2\
--mirrorlog is supported only with mirrors.\
Run `lvcreate --help\' for more information.\
"
']
to reproduce on any Centos 7.4 node with the following backend (assuming you have a "cinder-volumes" volume group
[lvm-mirror]
volume_
volume_
lvm_mirrors=1
lvm_type=default
and create a volume using this backend
to fix add --type=mirror to the lvcreate comandline
tags: | added: drivers lvm |
Changed in cinder: | |
assignee: | nobody → Sean McGinnis (sean-mcginnis) |
status: | New → In Progress |
Changed in cinder: | |
assignee: | Sean McGinnis (sean-mcginnis) → Antony Cleave (antony.cleave) |
importance: | Undecided → Medium |
Reviewed: https:/ /review. openstack. org/517939 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=5643f60b4d4 5feb4e135997c43 dcd8035cd50856
Committed: https:/
Submitter: Zuul
Branch: master
commit 5643f60b4d45feb 4e135997c43dcd8 035cd50856
Author: Antony Cleave <email address hidden>
Date: Mon Nov 6 12:20:17 2017 +0000
Fixes creation of mirrored volumes due to wrong type
new verions of lvcreate change the default mirror format to RAID1
vs the old style (mirror). Cinder expects the old style mirror as
--mirrorlog mirrored is specified and this is only supported on the
mirror type, not raid1.
To fix this add --type=mirror to the lvcreate syntax when
lvm_mirrors is > 0 and -m is specified.
Closes-bug: #1730375
Change-Id: I72e2bd3e780b1d fbc4a3716bfd370 ea8d0e28e96