Bug 1436999
| Summary: | Repeatable double free when undefining storage pool | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Ján Tomko <jtomko> |
| Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
| Status: | CLOSED ERRATA | QA Contact: | yisun |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | CC: | dyuan, jtomko, lmen, rbalakri, xuzhang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-3.2.0-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1436400 | Environment: | |
| Last Closed: | 2017-08-01 17:24:15 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: | |||
| Bug Depends On: | 1436400 | ||
| Bug Blocks: | |||
|
Description
Ján Tomko
2017-03-29 08:52:43 UTC
reproduce steps as follow on libvirt-3.1.0-2.el7.x86_64:
root@localhost ~ ## cat logical.pool
<pool type='logical'>
<source>
<name>vg_luks</name>
<format type='lvm2'/>
</source>
<target>
<path>/dev/vg_luks</path>
</target>
</pool>
root@localhost ~ ## virsh pool-create logical.pool
Pool vg_luks created from logical.pool
root@localhost ~ ## virsh pool-destroy vg_luks
error: Disconnected from qemu:///system due to I/O error
error: Failed to destroy pool vg_luks
error: End of file while reading data: Input/output error
root@localhost ~ ## service libvirtd restart
Redirecting to /bin/systemctl restart libvirtd.service
root@localhost ~ ## virsh pool-define logical.pool
Pool vg_luks defined from logical.pool
root@localhost ~ ## virsh pool-start vg_luks
Pool vg_luks started
root@localhost ~ ## virsh pool-destroy vg_luks
Pool vg_luks destroyed
root@localhost ~ ## virsh pool-undefine vg_luks
error: Disconnected from qemu:///system due to I/O error
error: Failed to undefine pool vg_luks
error: End of file while reading data: Input/output error
Verified with libvirt-3.2.0-1.el7.x86_64
Steps:
1. pool-create and pool-destroy
## cat logical.pool
<pool type='logical'>
<source>
<name>vg_luks</name>
<format type='lvm2'/>
</source>
<target>
<path>/dev/vg_luks</path>
</target>
</pool>
## virsh pool-create logical.pool
Pool vg_luks created from logical.pool
## virsh pool-destroy vg_luks
Pool vg_luks destroyed
## virsh pool-list --all
Name State Autostart
-------------------------------------------
default active no
2. pool-define, pool-start, pool-destroy and pool-undefine
## virsh pool-define logical.pool
Pool vg_luks defined from logical.pool
## virsh pool-start vg_luks
Pool vg_luks started
## virsh pool-destroy vg_luks
Pool vg_luks destroyed
## virsh pool-undefine vg_luks
Pool vg_luks has been undefined
## virsh pool-list --all
Name State Autostart
-------------------------------------------
default active no
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://access.redhat.com/errata/RHEA-2017:1846 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://access.redhat.com/errata/RHEA-2017:1846 |