Bug 1123767
Summary: | [Storage] validate 'unknown' type logical volume pool xml failed, however, pool can be created successfully | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Yang Yang <yanyang> |
Component: | libvirt | Assignee: | Erik Skultety <eskultet> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | dyuan, eskultet, rbalakri, shyu, tzheng, xuzhang |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.13-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 05:46:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yang Yang
2014-07-28 08:29:51 UTC
already existing NACK https://www.redhat.com/archives/libvir-list/2014-June/msg00838.html Now fixed upstream: commit 1be67cd31b14172caee9bcc2daec64a908d71e94 Author: Erik Skultety <eskultet> Date: Thu Sep 25 16:26:18 2014 +0200 storage: Fix logical pool fmt type According to our documentation logical pool supports formats 'auto' and 'lvm2'. However, in storage_conf.c we previously defined storage pool formats: unknown, lvm2. Due to backward compatibility reasons we must continue refer to pool format type 'unknown' instead of 'auto'. v1.2.9-rc1-20-g1be67cd Verified on libvirt-1.2.15-1.el7.x86_64 Steps 1. define/build/start a logical pool with 'unknown' format # cat testpool.xml <pool type='logical'> <name>MyVG</name> <source> <name>MyVG</name> <format type='unknown'/> <device path='/dev/sdc'/> </source> <target> <path>/dev/MyVG</path> </target> </pool> # virsh pool-define testpool.xml Pool MyVG defined from testpool.xml # virsh pool-build MyVG Pool MyVG built # virsh pool-start MyVG Pool MyVG started 2. define/build/start a logical pool with 'auto' format # cat testpool.xml <pool type='logical'> <name>MyVG</name> <source> <name>MyVG</name> <format type='auto'/> <device path='/dev/sdc'/> </source> <target> <path>/dev/MyVG</path> </target> </pool> # virsh pool-define testpool.xml error: Failed to define pool from testpool.xml error: unsupported configuration: unknown pool format type auto 3.define/build/start a logical pool without format # cat testpool.xml <pool type='logical'> <name>MyVG</name> <source> <name>MyVG</name> <device path='/dev/sdc'/> </source> <target> <path>/dev/MyVG</path> </target> </pool> # virsh pool-define testpool.xml Pool MyVG defined from testpool.xml # virsh pool-build MyVG Pool MyVG built # virsh pool-start MyVG Pool MyVG started # virsh pool-dumpxml MyVG <pool type='logical'> <name>MyVG</name> <uuid>1297bd2c-c6aa-445e-9c41-0a009ed865d2</uuid> <capacity unit='bytes'>1044381696</capacity> <allocation unit='bytes'>0</allocation> <available unit='bytes'>1044381696</available> <source> <device path='/dev/sdc'/> <name>MyVG</name> <format type='lvm2'/> </source> <target> <path>/dev/MyVG</path> <permissions> <mode>0755</mode> <owner>-1</owner> <group>-1</group> </permissions> </target> </pool> Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2202.html |