04c0657
# Packages names
04c0657
%global vdsm_name vdsm
04c0657
%global vdsm_bootstrap vdsm-bootstrap
04c0657
%global vdsm_reg vdsm-reg
04c0657
04c0657
# Upstream release
Dan Kenigsberg ef89a24
%global vdsm_release 1d7b929
04c0657
04c0657
# Required users and groups
04c0657
%global vdsm_user vdsm
04c0657
%global vdsm_group kvm
04c0657
%global qemu_group qemu
04c0657
04c0657
# Required paths
04c0657
%global _polkitdir %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d
04c0657
04c0657
Name:           %{vdsm_name}
6239658
Version:        4.9.2
Dan Kenigsberg ef89a24
Release:        1.git%{vdsm_release}%{?dist}%{?extra_release}
04c0657
Summary:        Virtual Desktop Server Manager
04c0657
04c0657
Group:          Applications/System
04c0657
License:        GPLv2+
6239658
Url:            http://www.ovirt.org/wiki/Vdsm
04c0657
# The source for this package was pulled from upstream's vcs.
04c0657
# Use the following commands to generate the tarball:
04c0657
#  git clone http://gerrit.ovirt.org/p/vdsm
04c0657
#  cd vdsm
04c0657
#  git reset --hard {vdsm_release}
04c0657
#  ./autogen.sh --system
6239658
#  make VERSION={version}-{vdsm_release} dist
04c0657
Source0:        %{vdsm_name}-%{version}-%{vdsm_release}.tar.gz
04c0657
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
04c0657
04c0657
BuildRequires: python
04c0657
BuildRequires: pyflakes
04c0657
04c0657
%if !0%{?rhel}
04c0657
BuildRequires: systemd-units
04c0657
%endif
04c0657
04c0657
Requires: python which
04c0657
Requires: sudo >= 1.7.3
6239658
Requires: logrotate >= 3.8.0
04c0657
Requires: xz
04c0657
Requires: python-ethtool
04c0657
Requires: nfs-utils dmidecode
04c0657
Requires: lvm2 >= 2.02.72-8
04c0657
04c0657
%if 0%{?rhel}
04c0657
Requires: qemu-kvm >= 2:0.12.1.2-2.189
04c0657
Requires: qemu-img >= 2:0.12.1.2-2.189
04c0657
Requires: libvirt >= 0.9.4-13
04c0657
Requires: libvirt-python >= 0.9.4-13
04c0657
Requires: iscsi-initiator-utils >= 6.2.0.872-15
04c0657
Requires: device-mapper-multipath >= 0.4.9-31
04c0657
Requires: e2fsprogs >= 1.41.12-11
04c0657
%else
04c0657
Requires: qemu-kvm >= 2:0.15.0-4
04c0657
Requires: qemu-img >= 2:0.15.0-4
04c0657
Requires: libvirt >= 0.9.6-2
04c0657
Requires: libvirt-python >= 0.9.6-2
04c0657
Requires: iscsi-initiator-utils >= 6.2.0.872-14
04c0657
Requires: device-mapper-multipath >= 0.4.9-18
04c0657
Requires: e2fsprogs >= 1.41.14
04c0657
%endif
04c0657
04c0657
Requires: psmisc >= 22.6-15
04c0657
Requires: fence-agents
04c0657
Requires: bridge-utils
04c0657
Requires: sos
6239658
Requires: tree
04c0657
Requires: dosfstools
04c0657
Requires: policycoreutils-python
04c0657
Requires: libselinux-python
04c0657
Requires: kernel >= 2.6.32-198
04c0657
Requires: selinux-policy-targeted >= 3.7.19-80.el6
04c0657
Requires(post): /usr/sbin/saslpasswd2
04c0657
04c0657
%description
04c0657
The VDSM service is required by a Virtualization Manager to manage the
04c0657
Linux hosts. VDSM manages and monitors the host's storage, memory and
04c0657
networks as well as virtual machine creation, other host administration
04c0657
tasks, statistics gathering, and log collection.
04c0657
04c0657
%package hook-vhostmd
04c0657
Summary:        VDSM hook set for interaction with vhostmd
04c0657
Requires:       vhostmd
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-vhostmd
04c0657
VDSM hook to use vhostmd per VM according to Virtualization Manager requests.
04c0657
04c0657
%package hook-faqemu
04c0657
Summary:        Fake qemu process for VDSM quality assurance
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-faqemu
04c0657
VDSM hook used for testing VDSM with multiple fake virtual machines without
04c0657
running real guests.
04c0657
04c0657
%package hook-directlun
04c0657
Summary:        Direct LUN support for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-directlun
04c0657
VDSM hook enable user to add storage LUN for VDSM
04c0657
without the sharing and storage handling of VDSM.
04c0657
04c0657
%package hook-fileinject
04c0657
Summary:        Allow uploading file to VMs disk
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-fileinject
04c0657
Hook is getting target file name and its content and
04c0657
create that file in target machine.
04c0657
04c0657
%package hook-floppy
04c0657
Summary:        Allow adding floppy to VM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-floppy
04c0657
Allow adding floppy to VM
04c0657
04c0657
%package hook-hostusb
04c0657
Summary:        Allow attaching USB device from host
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-hostusb
04c0657
Hook is getting vendor and product id of USB device
04c0657
disconnect it from host and attach it to VM
04c0657
04c0657
%package hook-hugepages
04c0657
Summary:        Huge pages enable user to handle VM with 2048KB page files.
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-hugepages
04c0657
Hook is getting number of huge pages reserve them for the VM,
04c0657
and enable user to handle VM with 2048KB page files.
04c0657
04c0657
%package hook-isolatedprivatevlan
04c0657
Summary:        Isolated network environment for VMs
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-isolatedprivatevlan
04c0657
limit VM traffic to a specific gateway by its mac address,
04c0657
hook prevent VM from spoofing its mac or  ip address
04c0657
by using <filterref filter='clean-traffic'/> libvirt filter
04c0657
and by adding custom filter: isolatedprivatevlan-vdsm.xml
04c0657
04c0657
%package hook-numa
04c0657
Summary:        numa sopport for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-numa
04c0657
Hooks is getting number/rage of numa nodes and numa mode,
04c0657
and update the VM xml.
04c0657
04c0657
%package hook-pincpu
04c0657
Summary:        Hook pin VM so specific CPUs
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-pincpu
04c0657
pincpu is hook for VDSM.
04c0657
pincpu enable to pin virtual machine to a specific CPUs.
04c0657
04c0657
%package hook-promisc
04c0657
Summary:        Network interface promiscuous mode support for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-promisc
04c0657
VDSM promiscuous mode let user define a VM interface that will capture
04c0657
all network traffic.
04c0657
04c0657
%package hook-qos
04c0657
Summary:        QoS network in/out traffic support for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-qos
04c0657
Hook adds QoS in/out traffic to VMs interfaces
04c0657
04c0657
%package hook-scratchpad
04c0657
Summary:        One time disk creation for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-scratchpad
04c0657
scratchpad hook for VDSM
04c0657
Hook creates a disk for a VM onetime usage,
04c0657
the disk will be erased when the VM destroyed.
04c0657
VM cannot be migrated when using scratchpad hook
04c0657
04c0657
%package hook-smartcard
04c0657
Summary:        Smartcard support for Spice protocol in VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-smartcard
04c0657
Smartcard hook add support for spice in VDSM.
04c0657
Smartcard hook enable user to use its smartcard inside virtual machines.
04c0657
04c0657
%package hook-smbios
04c0657
Summary:        Adding custom smbios entries to libvirt domain via VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-smbios
04c0657
Adding custom smbios entries to libvirt domain via VDSM
04c0657
such as: vendor, version, date and release
04c0657
04c0657
%package hook-sriov
04c0657
Summary:        sr-iov support for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-sriov
04c0657
sr-iov hook enable to add virtual functions exposed by the device
04c0657
directly to a virtual machine.
04c0657
04c0657
%package hook-vmdisk
04c0657
Summary:        External disk support for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-vmdisk
04c0657
Hook adds additional disk image for a VM (raw or qcow2)
04c0657
04c0657
%package debug-plugin
04c0657
Summary:        VDSM Debug Plugin
04c0657
Requires:       vdsm
04c0657
BuildArch:      noarch
04c0657
04c0657
%description debug-plugin
04c0657
Used by the trained monkeys at Red Hat to insert chaos and mayhem in to VDSM.
04c0657
04c0657
%package cli
04c0657
Summary:        VDSM command line interface
04c0657
BuildArch:      noarch
04c0657
04c0657
%description cli
04c0657
Call VDSM commands from the command line. Used for testing and debugging.
04c0657
04c0657
%package bootstrap
04c0657
Summary:        VDSM bootstrapping package
04c0657
BuildArch:      noarch
04c0657
04c0657
%description bootstrap
04c0657
VDSM bootstrapping package. Used for delivering the bootstrap code onto the
04c0657
Virtualization Manager.
04c0657
04c0657
%package reg
04c0657
Summary:        VDSM registration package
04c0657
BuildArch:      noarch
04c0657
04c0657
Requires: %{name} = %{version}-%{release}
04c0657
Requires: traceroute
04c0657
04c0657
%description reg
04c0657
VDSM registration package. Used to register a Linux host to a Virtualization
04c0657
Manager.
04c0657
04c0657
%prep
04c0657
%setup -q -n %{vdsm_name}-%{version}-%{vdsm_release}
04c0657
04c0657
%build
04c0657
%configure %{?with_hooks:--enable-hooks}
04c0657
make
04c0657
04c0657
%install
04c0657
rm -rf %{buildroot}
04c0657
make DESTDIR=%{buildroot} install
04c0657
04c0657
# Install the respawn utility
04c0657
install -Dm 0755 vdsm/respawn \
04c0657
                 %{buildroot}%{_datadir}/%{vdsm_name}/respawn
04c0657
04c0657
# Install the lvm rules
04c0657
install -Dm 0644 vdsm/storage/12-vdsm-lvm.rules \
04c0657
                 %{buildroot}/lib/udev/rules.d/12-vdsm-lvm.rules
04c0657
04c0657
%if 0%{?rhel}
04c0657
# Install the SysV init scripts
04c0657
install -Dm 0755 vdsm/vdsmd.init %{buildroot}%{_initrddir}/vdsmd
04c0657
install -Dm 0755 vdsm_reg/vdsm-reg.init %{buildroot}%{_initrddir}/vdsm-reg
04c0657
04c0657
# This is not commonplace, but we want /var/log/core to be a world-writable
04c0657
# dropbox for core dumps
04c0657
install -dDm 1777 %{buildroot}%{_localstatedir}/log/core
04c0657
%else
04c0657
# Install the configuration sample
04c0657
install -Dm 0644 vdsm/vdsm.conf.sample \
04c0657
                 %{buildroot}%{_sysconfdir}/vdsm/vdsm.conf
04c0657
04c0657
# Install the systemd scripts
04c0657
install -Dm 0755 vdsm/vdsmd.init %{buildroot}/lib/systemd/systemd-vdsmd
04c0657
install -Dm 0644 vdsm/vdsmd.service %{buildroot}%{_unitdir}/vdsmd.service
04c0657
install -Dm 0755 vdsm_reg/vdsm-reg.init \
04c0657
                 %{buildroot}/lib/systemd/systemd-vdsm-reg
04c0657
install -Dm 0644 vdsm_reg/vdsm-reg.service \
04c0657
                 %{buildroot}%{_unitdir}/vdsm-reg.service
04c0657
# Install the polkit for libvirt
04c0657
install -Dm 0644 vdsm/vdsm-libvirt-access.pkla \
04c0657
                 %{buildroot}%{_polkitdir}/10-vdsm-libvirt-access.pkla
04c0657
%endif
04c0657
04c0657
%check
04c0657
make check
04c0657
04c0657
%clean
04c0657
rm -rf %{buildroot}
04c0657
04c0657
%pre
04c0657
/usr/bin/getent passwd %{vdsm_user} >/dev/null || \
04c0657
    /usr/sbin/useradd -r -u 36 -g %{vdsm_group} -d /var/lib/vdsm \
04c0657
        -s /sbin/nologin -c "Node Virtualization Manager" %{vdsm_user}
04c0657
/usr/sbin/usermod -a -G %{qemu_group} %{vdsm_user}
04c0657
04c0657
%post
04c0657
# update the vdsm "secret" password for libvirt
04c0657
/usr/sbin/saslpasswd2 -p -a libvirt vdsm@rhevh < \
04c0657
    /etc/pki/vdsm/keys/libvirt_password
04c0657
%if 0%{?rhel}
04c0657
if [ "$1" -eq 1 ] ; then
04c0657
    /sbin/chkconfig --add vdsmd
04c0657
fi
04c0657
%else
04c0657
if [ "$1" -eq 1 ] ; then
04c0657
    /bin/systemctl enable vdsmd.service >/dev/null 2>&1 || :
04c0657
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
04c0657
04c0657
%preun
04c0657
%if 0%{?rhel}
04c0657
if [ "$1" -eq 0 ]
04c0657
then
04c0657
    /sbin/service vdsmd stop > /dev/null 2>&1 || :
04c0657
    /sbin/chkconfig --del vdsmd
04c0657
04c0657
    /bin/sed -i '/# by vdsm$/d' \
04c0657
        /etc/libvirt/libvirtd.conf \
04c0657
        /etc/libvirt/qemu.conf \
04c0657
        /etc/sysconfig/libvirtd \
04c0657
        /etc/sysctl.conf
04c0657
04c0657
    /bin/sed -i '/# VDSM section begin/,/# VDSM section end/d' \
04c0657
        /etc/sysctl.conf
04c0657
04c0657
    /usr/sbin/semanage boolean -m -S targeted -F /dev/stdin  << _EOF
04c0657
virt_use_nfs=0
04c0657
_EOF
04c0657
04c0657
    if selinuxenabled; then
04c0657
        /usr/sbin/setsebool virt_use_nfs off
04c0657
    fi
04c0657
04c0657
    /usr/sbin/saslpasswd2 -p -a libvirt -d vdsm@rhevh
04c0657
04c0657
    if /sbin/initctl status libvirtd >/dev/null 2>/dev/null ; then
04c0657
        /sbin/initctl stop libvirtd  >/dev/null 2>/dev/null
04c0657
        rm -f /etc/init/libvirtd.conf
04c0657
04c0657
        /sbin/chkconfig libvirtd on
04c0657
        /sbin/service libvirtd start >/dev/null
04c0657
    fi
04c0657
fi
04c0657
%else
04c0657
if [ "$1" -eq 0 ]; then
04c0657
    /bin/systemctl --no-reload disable vdsmd.service > /dev/null 2>&1 || :
04c0657
    /bin/systemctl stop vdsmd.service > /dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
04c0657
04c0657
%postun
04c0657
%if 0%{?rhel}
04c0657
if [ "$1" -ge 1 ]; then
04c0657
    /sbin/service vdsmd condrestart > /dev/null 2>&1
04c0657
fi
04c0657
exit 0
04c0657
%else
04c0657
if [ "$1" -ge 1 ] ; then
04c0657
    /bin/systemctl try-restart vdsmd.service >/dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
04c0657
04c0657
%if 0%{?rhel}
04c0657
%triggerun -- libvirt
04c0657
if [ "$2" -eq "0" ]; then
04c0657
    /sbin/initctl stop libvirtd > /dev/null 2>&1 || :
04c0657
fi
04c0657
04c0657
%triggerpostun -- libvirt
04c0657
if [ "$2" -ge "1" ]; then
04c0657
    /sbin/initctl restart libvirtd > /dev/null 2>&1 || :
04c0657
fi
04c0657
%endif
04c0657
04c0657
%post reg
04c0657
%if 0%{?rhel}
04c0657
if [ "$1" -eq 1 ] ; then
04c0657
    /sbin/chkconfig --add vdsm-reg
04c0657
fi
04c0657
%else
04c0657
if [ "$1" -eq 1 ] ; then
04c0657
    /bin/systemctl enable vdsmd-reg.service >/dev/null 2>&1 || :
04c0657
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
04c0657
04c0657
%preun reg
04c0657
%if 0%{?rhel}
04c0657
if [ "$1" -eq 0 ]
04c0657
then
04c0657
    /sbin/service vdsm-reg stop > /dev/null 2>&1 || :
04c0657
    /sbin/chkconfig --del vdsm-reg
04c0657
fi
04c0657
%else
04c0657
if [ "$1" -eq 0 ]; then
04c0657
    /bin/systemctl --no-reload disable vdsmd-reg.service > /dev/null 2>&1 || :
04c0657
    /bin/systemctl stop vdsmd-reg.service > /dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
04c0657
04c0657
%files
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING README vdsm/vdsm.conf.sample
04c0657
%if 0%{?rhel}
04c0657
%{_initrddir}/vdsmd
04c0657
%else
04c0657
/lib/systemd/systemd-vdsmd
04c0657
%{_unitdir}/vdsmd.service
04c0657
%config(noreplace) %{_sysconfdir}/%{vdsm_name}/vdsm.conf
04c0657
%endif
6239658
%dir %attr(0775, root, root) /rhev/data-center
04c0657
%dir %{_libexecdir}/%{vdsm_name}
04c0657
%dir %{_datadir}/%{vdsm_name}
04c0657
%dir %{_datadir}/%{vdsm_name}/storage
04c0657
%{_datadir}/%{vdsm_name}/define.py*
04c0657
%{_datadir}/%{vdsm_name}/clientIF.py*
04c0657
%{_datadir}/%{vdsm_name}/caps.py*
04c0657
%{_datadir}/%{vdsm_name}/utils.py*
04c0657
%{_datadir}/%{vdsm_name}/constants.py*
04c0657
%{_datadir}/%{vdsm_name}/vm.py*
04c0657
%{_datadir}/%{vdsm_name}/vdscli.py*
04c0657
%{_datadir}/%{vdsm_name}/supervdsm.py*
04c0657
%{_datadir}/%{vdsm_name}/supervdsmServer.py*
04c0657
%{_datadir}/%{vdsm_name}/libvirtvm.py*
04c0657
%{_datadir}/%{vdsm_name}/libvirtconnection.py*
04c0657
%{_datadir}/%{vdsm_name}/hooks.py*
04c0657
%{_datadir}/%{vdsm_name}/hooking.py*
04c0657
%{_datadir}/%{vdsm_name}/libvirtev.py*
04c0657
%{_datadir}/%{vdsm_name}/vdsm
04c0657
%{_datadir}/%{vdsm_name}/vdsm-restore-net-config
04c0657
%{_datadir}/%{vdsm_name}/vdsm-store-net-config
04c0657
%{_datadir}/%{vdsm_name}/write-net-config
04c0657
%{_datadir}/%{vdsm_name}/mk_sysprep_floppy
04c0657
%{_datadir}/%{vdsm_name}/get-vm-pid
04c0657
%{_datadir}/%{vdsm_name}/prepare-vmchannel
04c0657
%config(noreplace) %{_sysconfdir}/%{vdsm_name}/logger.conf
04c0657
%config(noreplace) %{_sysconfdir}/logrotate.d/vdsm
04c0657
%config(noreplace) %{_sysconfdir}/rwtab.d/vdsm
04c0657
%{_sysconfdir}/sudoers.d/50_vdsm
04c0657
%{_sysconfdir}/cron.hourly/vdsm-logrotate
04c0657
%{_sysconfdir}/cron.d/vdsm-libvirt-logrotate
04c0657
%{_datadir}/%{vdsm_name}/guestIF.py*
04c0657
%{_datadir}/%{vdsm_name}/logUtils.py*
04c0657
%{_datadir}/%{vdsm_name}/dsaversion.py*
04c0657
%{_datadir}/%{vdsm_name}/pthread.py*
04c0657
%{_datadir}/%{vdsm_name}/betterThreading.py*
04c0657
%{_libexecdir}/%{vdsm_name}/persist-vdsm-hooks
04c0657
%{_libexecdir}/%{vdsm_name}/unpersist-vdsm-hook
6239658
%{_libexecdir}/%{vdsm_name}/ovirt_functions.sh
04c0657
%{_datadir}/%{vdsm_name}/storage/__init__.py*
6239658
%{_datadir}/%{vdsm_name}/storage/blockSD.py*
6239658
%{_datadir}/%{vdsm_name}/storage/blockVolume.py*
6239658
%{_datadir}/%{vdsm_name}/storage/devicemapper.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/dispatcher.py*
6239658
%{_datadir}/%{vdsm_name}/storage/domainMonitor.py*
6239658
%{_datadir}/%{vdsm_name}/storage/fileSD.py*
6239658
%{_datadir}/%{vdsm_name}/storage/fileUtils.py*
6239658
%{_datadir}/%{vdsm_name}/storage/fileVolume.py*
6239658
%{_datadir}/%{vdsm_name}/storage/fuser.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/hba.py*
6239658
%{_datadir}/%{vdsm_name}/storage/hsm.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/image.py*
6239658
%{_datadir}/%{vdsm_name}/storage/iscsi.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/localFsSD.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/lvm.py*
6239658
%{_datadir}/%{vdsm_name}/storage/misc.py*
6239658
%{_datadir}/%{vdsm_name}/storage/mount.py*
6239658
%{_datadir}/%{vdsm_name}/storage/multipath.py*
6239658
%{_datadir}/%{vdsm_name}/storage/nfsSD.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/outOfProcess.py*
6239658
%{_datadir}/%{vdsm_name}/storage/persistentDict.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/processPool.py*
6239658
%{_datadir}/%{vdsm_name}/storage/resourceFactories.py*
6239658
%{_datadir}/%{vdsm_name}/storage/resourceManager.py*
6239658
%{_datadir}/%{vdsm_name}/storage/safelease.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/sdc.py*
6239658
%{_datadir}/%{vdsm_name}/storage/sd.py*
6239658
%{_datadir}/%{vdsm_name}/storage/securable.py*
6239658
%{_datadir}/%{vdsm_name}/storage/sp.py*
6239658
%{_datadir}/%{vdsm_name}/storage/storage_connection.py*
6239658
%{_datadir}/%{vdsm_name}/storage/storageConstants.py*
6239658
%{_datadir}/%{vdsm_name}/storage/storage_exception.py*
6239658
%{_datadir}/%{vdsm_name}/storage/storage_mailbox.py*
6239658
%{_datadir}/%{vdsm_name}/storage/taskManager.py*
6239658
%{_datadir}/%{vdsm_name}/storage/task.py*
6239658
%{_datadir}/%{vdsm_name}/storage/threadLocal.py*
6239658
%{_datadir}/%{vdsm_name}/storage/threadPool.py*
6239658
%{_datadir}/%{vdsm_name}/storage/volume.py*
04c0657
%{_libexecdir}/%{vdsm_name}/safelease
04c0657
%{_libexecdir}/%{vdsm_name}/spmprotect.sh
04c0657
%{_libexecdir}/%{vdsm_name}/spmstop.sh
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_start
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_cont
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_cont
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_pause
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_pause
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_hibernate
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_hibernate
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_dehibernate
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_dehibernate
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_migrate_source
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_migrate_destination
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vdsm_start
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vdsm_stop
04c0657
%{_datadir}/%{vdsm_name}/configNetwork.py*
04c0657
%{_datadir}/%{vdsm_name}/addNetwork
04c0657
%{_datadir}/%{vdsm_name}/delNetwork
04c0657
%{_datadir}/%{vdsm_name}/respawn
04c0657
%{_datadir}/%{vdsm_name}/SecureXMLRPCServer.py*
04c0657
%{_datadir}/%{vdsm_name}/get-conf-item
04c0657
%{_datadir}/%{vdsm_name}/set-conf-item
04c0657
%{_datadir}/%{vdsm_name}/kaxmlrpclib.py*
04c0657
%{_datadir}/%{vdsm_name}/config.py*
04c0657
%{_datadir}/%{vdsm_name}/ksm.py*
04c0657
%{_datadir}/%{vdsm_name}/netinfo.py*
04c0657
%{_datadir}/%{vdsm_name}/neterrors.py*
04c0657
/lib/udev/rules.d/12-vdsm-lvm.rules
04c0657
%{python_sitelib}/sos/plugins/vdsm.py*
04c0657
%{_mandir}/man8/vdsmd.8*
04c0657
%if 0%{?rhel}
04c0657
%dir %{_localstatedir}/log/core
04c0657
%else
04c0657
%{_polkitdir}/10-vdsm-libvirt-access.pkla
04c0657
%endif
04c0657
04c0657
%defattr(-, %{vdsm_user}, %{qemu_group}, -)
04c0657
%dir %{_localstatedir}/lib/libvirt/qemu/channels
04c0657
04c0657
%defattr(-, %{vdsm_user}, %{vdsm_group}, -)
04c0657
%dir %{_sysconfdir}/pki/%{vdsm_name}
04c0657
%dir %{_sysconfdir}/pki/%{vdsm_name}/keys
04c0657
%dir %{_sysconfdir}/pki/%{vdsm_name}/certs
04c0657
%config(noreplace) %{_sysconfdir}/pki/%{vdsm_name}/keys/libvirt_password
04c0657
%dir %{_localstatedir}/lib/%{vdsm_name}
04c0657
%dir %{_localstatedir}/lib/%{vdsm_name}/netconfback
04c0657
%ghost %dir %{_localstatedir}/run/%{vdsm_name}
04c0657
%ghost %dir %{_localstatedir}/run/%{vdsm_name}/pools
04c0657
%dir %{_localstatedir}/log/%{vdsm_name}
04c0657
%dir %{_localstatedir}/log/%{vdsm_name}/backup
04c0657
04c0657
%files hook-vhostmd
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING
04c0657
%{_sysconfdir}/sudoers.d/50_vdsm_hook_vhostmd
04c0657
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_vhostmd
04c0657
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_vhostmd
04c0657
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_dehibernate/50_vhostmd
04c0657
%{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_vhostmd
04c0657
04c0657
%if 0%{?with_hooks}
04c0657
%files hook-directlun
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (440,root,root) %{_sysconfdir}/sudoers.d/50_vdsm_hook_directlun
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_directlun
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_directlun
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_directlun
04c0657
04c0657
%files hook-fileinject
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_fileinject
04c0657
04c0657
%files hook-floppy
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_floppy
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_floppy
04c0657
04c0657
%files hook-hostusb
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (440,root,root) %{_sysconfdir}/sudoers.d/50_vdsm_hook_hostusb
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_hostusb
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_hostusb
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_hostusb
04c0657
04c0657
%files hook-hugepages
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (440,root,root) %{_sysconfdir}/sudoers.d/50_vdsm_hook_hugepages
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_hugepages
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_hugepages
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_hugepages
04c0657
04c0657
%files hook-isolatedprivatevlan
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_isolatedprivatevlan
04c0657
%config(noreplace) %{_sysconfdir}/libvirt/nwfilter/isolatedprivatevlan-vdsm.xml
04c0657
04c0657
%files hook-numa
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_numa
04c0657
04c0657
%files hook-pincpu
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_pincpu
04c0657
04c0657
%files hook-promisc
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (440,root,root) %{_sysconfdir}/sudoers.d/50_vdsm_hook_promisc
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/after_vm_start/50_promisc
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_promisc
04c0657
04c0657
%files hook-qos
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_qos
04c0657
04c0657
%files hook-scratchpad
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_scratchpad
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_scratchpad
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_scratchpad
04c0657
04c0657
%files hook-smartcard
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_smartcard
04c0657
04c0657
%files hook-smbios
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_smbios
04c0657
04c0657
%files hook-sriov
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (440,root,root) %{_sysconfdir}/sudoers.d/50_vdsm_hook_sriov
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_sriov
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_sriov
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_sriov
04c0657
04c0657
%files hook-vmdisk
04c0657
%defattr(-, vdsm, kvm, -)
04c0657
%attr (755,vdsm,kvm) %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_vmdisk
04c0657
%endif
04c0657
04c0657
%files debug-plugin
04c0657
%defattr(-, root, root, -)
04c0657
%{_datadir}/%{vdsm_name}/vdsmDebugPlugin.py*
04c0657
04c0657
%files cli
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING
04c0657
%{_bindir}/vdsClient
04c0657
%{_datadir}/%{vdsm_name}/vdsClient.py*
04c0657
%{_sysconfdir}/bash_completion.d/vdsClient
04c0657
%{_datadir}/%{vdsm_name}/vdscli.py*
04c0657
%{_datadir}/%{vdsm_name}/dumpStorageTable.py*
04c0657
%{_datadir}/%{vdsm_name}/SecureXMLRPCServer.py*
04c0657
%{_mandir}/man1/vdsClient.1*
04c0657
04c0657
%files bootstrap
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING
6239658
%attr (755, root, root) %{_datadir}/%{vdsm_bootstrap}/vds_bootstrap.py*
04c0657
%{_datadir}/%{vdsm_bootstrap}/deployUtil.py*
6239658
%attr (755, root, root) %{_datadir}/%{vdsm_bootstrap}/vds_bootstrap_complete.py*
04c0657
04c0657
%files reg
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING
04c0657
%dir %{_sysconfdir}/%{vdsm_reg}
04c0657
%dir %{_datadir}/%{vdsm_reg}
04c0657
%config(noreplace) %{_sysconfdir}/logrotate.d/vdsm-reg
04c0657
%config(noreplace) %{_sysconfdir}/%{vdsm_reg}/vdsm-reg.conf
04c0657
%config(noreplace) %{_sysconfdir}/%{vdsm_reg}/logger.conf
04c0657
%if 0%{?rhel}
04c0657
%{_initrddir}/vdsm-reg
04c0657
%else
04c0657
/lib/systemd/systemd-vdsm-reg
04c0657
%{_unitdir}/vdsm-reg.service
04c0657
%endif
04c0657
%{_datadir}/%{vdsm_reg}/vdsm-reg-setup
04c0657
%{_datadir}/%{vdsm_reg}/define.py*
04c0657
%{_datadir}/%{vdsm_reg}/vdsm-complete
04c0657
%{_datadir}/%{vdsm_reg}/vdsm-gen-cert
04c0657
%{_datadir}/%{vdsm_reg}/vdsm-upgrade
04c0657
%{_datadir}/%{vdsm_reg}/config.py*
04c0657
%{_datadir}/%{vdsm_reg}/deployUtil.py*
04c0657
%{_datadir}/%{vdsm_reg}/createDaemon.py*
6239658
%{python_sitelib}/ovirt_config_setup/engine.py*
04c0657
%{_datadir}/%{vdsm_reg}/save-config
04c0657
%{_sysconfdir}/ovirt-config-boot.d/vdsm-config
04c0657
%{_sysconfdir}/ovirt-commandline.d/vdsm-reg
04c0657
%{_sysconfdir}/cron.hourly/vdsm-reg-logrotate
04c0657
%{_mandir}/man8/vdsm-reg.8*
04c0657
04c0657
%defattr(-, %{vdsm_user}, %{vdsm_group},-)
04c0657
%dir %{_var}/log/%{vdsm_reg}
04c0657
04c0657
%files hook-faqemu
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING
04c0657
%{_libexecdir}/%{vdsm_name}/vdsm-faqemu
04c0657
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/10_faqemu
04c0657
04c0657
%changelog
Dan Kenigsberg ef89a24
* Fri Jan 13 2012 Dan Kenigsberg <danken@redhat.com> - 4.9.2-1.git1d7b929.fc16
Dan Kenigsberg ef89a24
- vdsm-4.9.2-g1d7b929
Dan Kenigsberg ef89a24
6239658
* Tue Jan 10 2012 Federico Simoncelli <fsimonce@redhat.com> - 4.9.2-0.git951b41d.fc16
6239658
- vdsm-4.9.2-g951b41d
6239658
04c0657
* Fri Dec 02 2011 Federico Simoncelli <fsimonce@redhat.com> - 4.9.1-2.git931a43e.fc16
04c0657
- add the revision control comments to the specfile
04c0657
04c0657
* Wed Nov 30 2011 Federico Simoncelli <fsimonce@redhat.com> - 4.9.1-1.git6ee166c.fc16
04c0657
- require iscsi-initiator-utils >= 6.2.0.872-14 bz442980
04c0657
- fix the rpmlint errors
04c0657
04c0657
* Wed Oct 12 2011 Federico Simoncelli <fsimonce@redhat.com> - 4.9.0-0
04c0657
- Initial upstream release
04c0657
04c0657
* Thu Nov 02 2006 Simon Grinberg <simong@qumranet.com> -  0.0-1
04c0657
- Initial build