- supportconfig: Adapt plugin to modern supportconfig
- spec: Disable use of libnbd/nbdkit bsc#1216274 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=1007
This commit is contained in:
parent
28a758c687
commit
c6f96a55ad
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:6e540216c5090a1655cc00c71a97ed56ca5667fc437b378444230d6d870ef12c
|
oid sha256:e2d08153645a38aca90b97ef27b9a8e9698ff678054516a8a147a2d70468aa58
|
||||||
size 9653716
|
size 9652952
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
# about libvirt
|
# about libvirt
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
RCFILE="/usr/lib/supportconfig/resources/scplugin.rc"
|
RCFILE="/usr/lib/supportconfig/resources/supportconfig.rc"
|
||||||
|
OF="output-libvirt.txt"
|
||||||
|
|
||||||
# conf files for all daemons reside in /etc/libvirt/. VM conf files
|
# conf files for all daemons reside in /etc/libvirt/. VM conf files
|
||||||
# and log files reside in hypervisor-specific locations.
|
# and log files reside in hypervisor-specific locations.
|
||||||
@ -16,7 +17,7 @@ DAEMON_LOG_FILES=""
|
|||||||
|
|
||||||
if [ -s $RCFILE ]; then
|
if [ -s $RCFILE ]; then
|
||||||
if ! source $RCFILE; then
|
if ! source $RCFILE; then
|
||||||
echo "ERROR: Initializing resource file: $RCFILE" >&2
|
log_write $OF "ERROR: Initializing resource file: $RCFILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -25,33 +26,11 @@ rpm_installed() {
|
|||||||
thisrpm="$1"
|
thisrpm="$1"
|
||||||
|
|
||||||
if rpm -q "$thisrpm" >/dev/null 2>&1; then
|
if rpm -q "$thisrpm" >/dev/null 2>&1; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
rpm_verify() {
|
|
||||||
thisrpm="$1"
|
|
||||||
local ret=0
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "#==[ Validating RPM ]=================================#"
|
|
||||||
if rpm -q "$thisrpm" >/dev/null 2>&1; then
|
|
||||||
echo "# rpm -V $thisrpm"
|
|
||||||
|
|
||||||
if rpm -V "$thisrpm"; then
|
|
||||||
echo "Status: Passed"
|
|
||||||
else
|
|
||||||
echo "Status: WARNING"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "package $thisrpm is not installed"
|
|
||||||
ret=1
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
return $ret
|
|
||||||
}
|
|
||||||
|
|
||||||
if rpm_installed libvirt-daemon-driver-libxl; then
|
if rpm_installed libvirt-daemon-driver-libxl; then
|
||||||
test -d /etc/libvirt/libxl && PERSISTENT_VM_CONF_FILES="$PERSISTENT_VM_CONF_FILES $(find -L /etc/libvirt/libxl/ -type f | sort)"
|
test -d /etc/libvirt/libxl && PERSISTENT_VM_CONF_FILES="$PERSISTENT_VM_CONF_FILES $(find -L /etc/libvirt/libxl/ -type f | sort)"
|
||||||
test -d /run/libvirt/libxl && ACTIVE_VM_CONF_FILES="$ACTIVE_VM_CONF_FILES $(find -L /run/libvirt/libxl/ -type f | sort)"
|
test -d /run/libvirt/libxl && ACTIVE_VM_CONF_FILES="$ACTIVE_VM_CONF_FILES $(find -L /run/libvirt/libxl/ -type f | sort)"
|
||||||
@ -70,52 +49,47 @@ fi
|
|||||||
|
|
||||||
if rpm_installed libvirt-client && virsh capabilities > /dev/null 2>&1; then
|
if rpm_installed libvirt-client && virsh capabilities > /dev/null 2>&1; then
|
||||||
|
|
||||||
plugin_command "virsh version"
|
log_cmd $OF "virsh version"
|
||||||
plugin_command "virsh capabilities"
|
log_cmd $OF "virsh capabilities"
|
||||||
plugin_command "virsh domcapabilities"
|
log_cmd $OF "virsh domcapabilities"
|
||||||
plugin_command "virsh nodeinfo"
|
log_cmd $OF "virsh nodeinfo"
|
||||||
plugin_command "virsh nodedev-list"
|
log_cmd $OF "virsh nodedev-list"
|
||||||
# print all known domains on default URI
|
# print all known domains on default URI
|
||||||
plugin_command "virsh list --all"
|
log_cmd $OF "virsh list --all"
|
||||||
echo
|
|
||||||
# dump configuration info of active domains on default URI
|
# dump configuration info of active domains on default URI
|
||||||
for DOM in $(virsh list --name)
|
for DOM in $(virsh list --name)
|
||||||
do
|
do
|
||||||
plugin_command "virsh dumpxml $DOM"
|
log_cmd $OF "virsh dumpxml $DOM"
|
||||||
plugin_command "virsh vcpuinfo $DOM"
|
log_cmd $OF "virsh vcpuinfo $DOM"
|
||||||
plugin_command "virsh dominfo $DOM"
|
log_cmd $OF "virsh dominfo $DOM"
|
||||||
plugin_command "virsh domjobinfo $DOM"
|
log_cmd $OF "virsh domjobinfo $DOM"
|
||||||
plugin_command "virsh dommemstat $DOM"
|
log_cmd $OF "virsh dommemstat $DOM"
|
||||||
plugin_command "virsh snapshot-list $DOM"
|
log_cmd $OF "virsh snapshot-list $DOM"
|
||||||
echo
|
|
||||||
done
|
done
|
||||||
# dump configuration info of inactive domains on default URI
|
# dump configuration info of inactive domains on default URI
|
||||||
for DOM in $(virsh list --name --inactive)
|
for DOM in $(virsh list --name --inactive)
|
||||||
do
|
do
|
||||||
plugin_command "virsh dumpxml $DOM"
|
log_cmd $OF "virsh dumpxml $DOM"
|
||||||
plugin_command "virsh snapshot-list $DOM"
|
log_cmd $OF "virsh snapshot-list $DOM"
|
||||||
echo
|
|
||||||
done
|
done
|
||||||
# dump active networks, interfaces and storage pools
|
# dump active networks, interfaces and storage pools
|
||||||
plugin_command "virsh net-list"
|
log_cmd $OF "virsh net-list"
|
||||||
plugin_command "virsh iface-list"
|
log_cmd $OF "virsh iface-list"
|
||||||
plugin_command "virsh pool-list"
|
log_cmd $OF "virsh pool-list"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# dump libvirtd-related conf files
|
# dump libvirtd-related conf files
|
||||||
pconf_files "$DAEMON_CONF_FILES"
|
conf_files $OF "$DAEMON_CONF_FILES"
|
||||||
|
|
||||||
# dump persistent VM-related conf files
|
# dump persistent VM-related conf files
|
||||||
pconf_files "$PERSISTENT_VM_CONF_FILES"
|
conf_files $OF "$PERSISTENT_VM_CONF_FILES"
|
||||||
|
|
||||||
# dump active VM-related conf files
|
# dump active VM-related conf files
|
||||||
pconf_files "$ACTIVE_VM_CONF_FILES"
|
conf_files $OF "$ACTIVE_VM_CONF_FILES"
|
||||||
|
|
||||||
# dump hook conf files
|
# dump hook conf files
|
||||||
test -d /etc/libvirt/hooks && FILES="$(find -L /etc/libvirt/hooks/ -type f | sort)"
|
test -d /etc/libvirt/hooks && FILES="$(find -L /etc/libvirt/hooks/ -type f | sort)"
|
||||||
pconf_files "$FILES"
|
conf_files $OF "$FILES"
|
||||||
|
|
||||||
# dump all log files
|
# dump all log files
|
||||||
plog_files 0 "$DAEMON_LOG_FILES"
|
log_files $OF 0 "$DAEMON_LOG_FILES"
|
||||||
|
|
||||||
echo "Done"
|
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 18 22:30:10 UTC 2023 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
- supportconfig: Adapt plugin to modern supportconfig
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 17 22:54:48 UTC 2023 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
- spec: Disable use of libnbd/nbdkit
|
||||||
|
bsc#1216274
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 2 17:10:58 UTC 2023 - James Fehlig <jfehlig@suse.com>
|
Mon Oct 2 17:10:58 UTC 2023 - James Fehlig <jfehlig@suse.com>
|
||||||
|
|
||||||
|
16
libvirt.spec
16
libvirt.spec
@ -52,6 +52,7 @@
|
|||||||
%define with_numad 0%{!?_without_numad:0}
|
%define with_numad 0%{!?_without_numad:0}
|
||||||
%define with_firewalld_zone 0%{!?_without_firewalld_zone:0}
|
%define with_firewalld_zone 0%{!?_without_firewalld_zone:0}
|
||||||
%define with_libssh 0%{!?_without_libssh:0}
|
%define with_libssh 0%{!?_without_libssh:0}
|
||||||
|
%define with_nbdkit 0%{!?_without_nbdkit:0}
|
||||||
|
|
||||||
# Set the OS / architecture specific special cases
|
# Set the OS / architecture specific special cases
|
||||||
|
|
||||||
@ -206,8 +207,10 @@ BuildRequires: libapparmor-devel
|
|||||||
BuildRequires: cyrus-sasl-devel
|
BuildRequires: cyrus-sasl-devel
|
||||||
BuildRequires: ebtables
|
BuildRequires: ebtables
|
||||||
BuildRequires: iptables
|
BuildRequires: iptables
|
||||||
BuildRequires: libnbd-devel
|
|
||||||
BuildRequires: polkit >= 0.112
|
BuildRequires: polkit >= 0.112
|
||||||
|
%if %{with_nbdkit}
|
||||||
|
BuildRequires: libnbd-devel
|
||||||
|
%endif
|
||||||
# For mount/umount in FS driver
|
# For mount/umount in FS driver
|
||||||
BuildRequires: util-linux
|
BuildRequires: util-linux
|
||||||
# For LVM drivers
|
# For LVM drivers
|
||||||
@ -601,9 +604,11 @@ Requires: qemu-uefi-aarch64
|
|||||||
%if %{with_numad}
|
%if %{with_numad}
|
||||||
Suggests: numad
|
Suggests: numad
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with_nbdkit}
|
||||||
Recommends: nbdkit
|
Recommends: nbdkit
|
||||||
Recommends: nbdkit-curl-plugin
|
Recommends: nbdkit-curl-plugin
|
||||||
Recommends: nbdkit-ssh-plugin
|
Recommends: nbdkit-ssh-plugin
|
||||||
|
%endif
|
||||||
|
|
||||||
%description daemon-driver-qemu
|
%description daemon-driver-qemu
|
||||||
The qemu driver plugin for the libvirtd daemon, providing
|
The qemu driver plugin for the libvirtd daemon, providing
|
||||||
@ -816,10 +821,8 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
%build
|
%build
|
||||||
%if %{with_qemu}
|
%if %{with_qemu}
|
||||||
%define arg_qemu -Ddriver_qemu=enabled
|
%define arg_qemu -Ddriver_qemu=enabled
|
||||||
%define arg_libnbd -Dlibnbd=enabled
|
|
||||||
%else
|
%else
|
||||||
%define arg_qemu -Ddriver_qemu=disabled
|
%define arg_qemu -Ddriver_qemu=disabled
|
||||||
%define arg_libnbd -Dlibnbd=disabled
|
|
||||||
%endif
|
%endif
|
||||||
%if %{with_openvz}
|
%if %{with_openvz}
|
||||||
%define arg_openvz -Ddriver_openvz=enabled
|
%define arg_openvz -Ddriver_openvz=enabled
|
||||||
@ -903,6 +906,11 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
%else
|
%else
|
||||||
%define arg_numad -Dnumad=disabled
|
%define arg_numad -Dnumad=disabled
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with_nbdkit}
|
||||||
|
%define arg_nbdkit -Dnbdkit=enabled
|
||||||
|
%else
|
||||||
|
%define arg_nbdkit -Dnbdkit=disabled
|
||||||
|
%endif
|
||||||
%if %{with_apparmor}
|
%if %{with_apparmor}
|
||||||
%define arg_apparmor -Dapparmor=enabled -Dsecdriver_apparmor=enabled
|
%define arg_apparmor -Dapparmor=enabled -Dsecdriver_apparmor=enabled
|
||||||
%define arg_apparmor_profiles -Dapparmor_profiles=enabled
|
%define arg_apparmor_profiles -Dapparmor_profiles=enabled
|
||||||
@ -1013,6 +1021,7 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
-Dstorage_vstorage=disabled \
|
-Dstorage_vstorage=disabled \
|
||||||
%{?arg_numactl} \
|
%{?arg_numactl} \
|
||||||
%{?arg_numad} \
|
%{?arg_numad} \
|
||||||
|
%{?arg_nbdkit} \
|
||||||
-Dcapng=enabled \
|
-Dcapng=enabled \
|
||||||
-Dfuse=enabled \
|
-Dfuse=enabled \
|
||||||
-Dnetcf=disabled \
|
-Dnetcf=disabled \
|
||||||
@ -1025,7 +1034,6 @@ libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
-Dyajl=enabled \
|
-Dyajl=enabled \
|
||||||
%{?arg_sanlock} \
|
%{?arg_sanlock} \
|
||||||
-Dlibpcap=enabled \
|
-Dlibpcap=enabled \
|
||||||
%{?arg_libnbd} \
|
|
||||||
-Dlibnl=enabled \
|
-Dlibnl=enabled \
|
||||||
-Daudit=enabled \
|
-Daudit=enabled \
|
||||||
-Ddtrace=enabled \
|
-Ddtrace=enabled \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user