Bug 821867
Summary: | vdsm munges libvirtd sysconfig file | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Berrangé <berrange> |
Component: | vdsm | Assignee: | Douglas Schilling Landgraf <dougsland> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 17 | CC: | danken, danken, dougsland, fsimonce, oschreib, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-28 12:01:45 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: | |||
Bug Blocks: | 822145 |
Description
Daniel Berrangé
2012-05-15 15:43:18 UTC
BTW, if you go down the route of using augeas to update this file, I'd also recommend using augeas to update /etc/libvirt/qemu.conf and /etc/libvirt/libvirtd.conf Daniel, vdsm would like to clean after itself when it is removed. That's easy with `sed d//` and even easier with `grep -v #byvdsm`. How would you suggest to do this with augtool? Personally I wouldn't bother with cleaning up config file changes after uninstall of VDSM. If the admin wishes to reconfigure use of libvirt to avoid VDSM they'll know what they want to do. Hi Daniel, I have tried augeas. However, looks like I have found a problem in augeas reading the current libvirt.aug and qemu.aug. Which updated files are you referring from comment #1 ? # rpm -qf /etc/libvirt/libvirtd.conf libvirt-daemon-0.9.11.3-1.fc17.x86_64 # rpm -qf /etc/libvirt/qemu.conf libvirt-daemon-0.9.11.3-1.fc17.x86_64 # rpm -qf /usr/share/augeas/lenses/libvirtd.aug libvirt-daemon-0.9.11.3-1.fc17.x86_64 # rpm -qf /usr/share/augeas/lenses/libvirtd_qemu.aug libvirt-daemon-0.9.11.3-1.fc17.x86_64 # rpm -qa | grep libvirt libvirt-docs-0.9.11.3-1.fc17.x86_64 libvirt-daemon-0.9.11.3-1.fc17.x86_64 libvirt-daemon-config-nwfilter-0.9.11.3-1.fc17.x86_64 libvirt-0.9.11.3-1.fc17.x86_64 libvirt-client-0.9.11.3-1.fc17.x86_64 libvirt-daemon-config-network-0.9.11.3-1.fc17.x86_64 libvirt-python-0.9.11.3-1.fc17.x86_64 libvirt-devel-0.9.11.3-1.fc17.x86_64 # rpm -qa | grep augeas augeas-libs-0.10.0-3.fc17.x86_64 augeas-0.10.0-3.fc17.x86_64 augtool> ls /files/etc/libvirt/ lxc.conf/ = (none) augtool> print /augeas/files/etc/libvirt/libvirtd.conf/error/ /augeas/files/etc/libvirt/libvirtd.conf/error = "parse_failed" /augeas/files/etc/libvirt/libvirtd.conf/error/pos = "12788" /augeas/files/etc/libvirt/libvirtd.conf/error/line = "394" /augeas/files/etc/libvirt/libvirtd.conf/error/char = "0" /augeas/files/etc/libvirt/libvirtd.conf/error/lens = "/usr/share/augeas/lenses/libvirtd.aug:88.13-.43:" /augeas/files/etc/libvirt/libvirtd.conf/error/message = "Iterated lens matched less than it should " augtool> print /augeas/files/etc/libvirt/qemu.conf/ /augeas/files/etc/libvirt/qemu.conf /augeas/files/etc/libvirt/qemu.conf/path = "/files/etc/libvirt/qemu.conf" /augeas/files/etc/libvirt/qemu.conf/mtime = "1336165311" /augeas/files/etc/libvirt/qemu.conf/lens = "@Libvirtd_qemu" /augeas/files/etc/libvirt/qemu.conf/lens/info = "/usr/share/augeas/lenses/libvirtd_qemu.aug:68.13-.43:" /augeas/files/etc/libvirt/qemu.conf/error = "parse_failed" /augeas/files/etc/libvirt/qemu.conf/error/pos = "12982" /augeas/files/etc/libvirt/qemu.conf/error/line = "354" /augeas/files/etc/libvirt/qemu.conf/error/char = "0" /augeas/files/etc/libvirt/qemu.conf/error/lens = "/usr/share/augeas/lenses/libvirtd_qemu.aug:68.13-.43:" /augeas/files/etc/libvirt/qemu.conf/error/message = "Iterated lens matched less than it should" Thanks! Hmm, damn. That loooks like a flaw in the libvirt augeas lens. Can you file a bug against libvirt providing a copy of the libvirtd.conf and qemu.conf files that illustrate this flaw. Patch to vdsm: http://gerrit.ovirt.org/#change,4716 Daniel: > Can you file a bug against libvirt providing a copy of the libvirtd.conf > and qemu.conf files that illustrate this flaw. Sure. First, I will double check if it's not caused by vdsm changes. Thanks! |