Bug 1167145
Summary: | networkMigrateStateFiles function does not work on xfs file system due to using unsupported t_type field | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Hu Jianwei <jiahu> |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | dyuan, honzhang, jiahu, mzhan, rbalakri, zhwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.8-10.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 07:47:42 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
Hu Jianwei
2014-11-24 01:54:22 UTC
Fixed upstream by v1.2.10-209-gdabb23e: commit dabb23e6d95dc7d81e7fb2a3f6c942167f4c45af Author: Jiri Denemark <jdenemar> Date: Wed Nov 26 16:24:27 2014 +0100 network: Fix upgrade from libvirt older than 1.2.4 Starting from libvirt-1.2.4, network state XML files moved to another directory (see commit b9e95491) and libvirt automatically migrates the network state files to a new location. However, the code used dirent.d_type which is not supported by all filesystems. Thus, when libvirt was upgraded on a host which used such filesystem, network state XMLs were not properly moved and running networks disappeared from libvirt. This patch falls back to lstat() whenever dirent.d_type is DT_UNKNOWN to fix this issue. https://bugzilla.redhat.com/show_bug.cgi?id=1167145 Signed-off-by: Jiri Denemark <jdenemar> Verify as below: [root@ibm-x3850x5-06 ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Tue Sep 16 08:16:36 2014 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=04c33841-7f7e-479b-b7f2-41855520d345 / xfs defaults 1 1 UUID=e9ce0f57-651a-43fb-ac35-4e660926184f /tmp xfs defaults 1 2 UUID=3679443b-b4b5-4f84-9079-bce34cac58fa swap swap defaults 0 0 [root@ibm-x3850x5-06 ~]# rpm -q libvirt libvirt-1.1.1-29.el7.x86_64 [root@ibm-x3850x5-06 ~]# ll /var/lib/libvirt/network/ total 12 -rw-------. 1 root root 501 Dec 4 09:55 bridge-net.xml -rw-------. 1 root root 860 Dec 4 09:55 default.xml -rw-------. 1 root root 741 Dec 4 09:55 route-net.xml [root@ibm-x3850x5-06 ~]# ll /var/run/libvirt/network/ total 8 -rw-r--r--. 1 root root 5 Dec 4 09:55 default.pid -rw-r--r--. 1 root root 5 Dec 4 09:55 route-net.pid [root@ibm-x3850x5-06 ~]# rpm -q libvirt libvirt-1.2.8-10.el7.x86_64 [root@ibm-x3850x5-06 ~]# [root@ibm-x3850x5-06 ~]# virsh net-list Name State Autostart Persistent ---------------------------------------------------------- bridge-net active no yes default active yes yes route-net active no yes [root@ibm-x3850x5-06 ~]# ll /var/lib/libvirt/network/ total 0 [root@ibm-x3850x5-06 ~]# ll /var/run/libvirt/network/ total 20 -rw-------. 1 root root 501 Dec 4 09:56 bridge-net.xml -rw-r--r--. 1 root root 5 Dec 4 09:55 default.pid -rw-------. 1 root root 860 Dec 4 09:56 default.xml -rw-r--r--. 1 root root 0 Dec 4 09:56 nwfilter.leases -rw-r--r--. 1 root root 5 Dec 4 09:55 route-net.pid -rw-------. 1 root root 741 Dec 4 09:56 route-net.xml We can get a right result on xfs file system, move to Verified. 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/RHSA-2015-0323.html |