04c0657
# Packages names
04c0657
%global vdsm_name vdsm
04c0657
%global vdsm_bootstrap vdsm-bootstrap
04c0657
%global vdsm_reg vdsm-reg
04c0657
04c0657
# Required users and groups
04c0657
%global vdsm_user vdsm
04c0657
%global vdsm_group kvm
04c0657
%global qemu_group qemu
d308462
%global snlk_group sanlock
d308462
%global snlk_user sanlock
04c0657
205ef3f
# Upstream git release
205ef3f
# % global vdsm_release gf2f6683
205ef3f
# % global vdsm_relvtag .git%{vdsm_release}
205ef3f
# % global vdsm_relttag -%{vdsm_release}
205ef3f
205ef3f
# Fedora official build
205ef3f
%global fedora_koji_build 1
cadbf41
%global with_hooks 1
cadbf41
205ef3f
# Default to skipping autoreconf.  Distros can change just this one line
205ef3f
# (or provide a command-line override) if they backport any patches that
205ef3f
# touch configure.ac or Makefile.am.
205ef3f
%{!?enable_autotools:%define enable_autotools 1}
205ef3f
04c0657
# Required paths
3483c14
%if 0%{?fedora} >= 18
3483c14
%global _polkitdir %{_datadir}/polkit-1/rules.d
3483c14
%else
04c0657
%global _polkitdir %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d
3483c14
%endif
04c0657
300cff5
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
205ef3f
%global with_gluster 1
205ef3f
%endif
205ef3f
205ef3f
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
205ef3f
%global with_systemd 1
205ef3f
%endif
205ef3f
205ef3f
%if 0%{?fedora} >= 18
205ef3f
%global with_systemd_macros 1
fe51114
%global with_tmpfiles_macro 1
205ef3f
%endif
439e9e8
04c0657
Name:           %{vdsm_name}
71fb017
Version:        4.12.1
bf7d37c
Release:        4%{?vdsm_relvtag}%{?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
1134cd7
Source0:        %{vdsm_name}-%{version}%{?vdsm_relttag}.tar.gz
63105a2
f49b65b
Patch1:         0001-systemd-init-no-need-to-stop-conflicting-services.patch
878b10b
Patch2:         0002-vdsmd.init-Add-service-is-managed-in-shutdown_confli.patch
878b10b
Patch3:         0003-imageSharing-return-proper-size-in-httpGetSize.patch
878b10b
Patch4:         0004-Require-libvirt-that-allows-vmUpdateDevice.patch
878b10b
Patch5:         0005-vm.Vm._getUnderlyingDriveInfo-extract-path-of-gluste.patch
bf7d37c
Patch6:         0006-remoteFileHandler-Add-create-exclusive-option-for-tr.patch
bf7d37c
Patch7:         0007-oop-improve-safety-for-truncateFile.patch
f49b65b
04c0657
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
04c0657
04c0657
BuildRequires: python
d308462
BuildRequires: python-devel
d308462
BuildRequires: python-nose
fe51114
BuildRequires: python-netaddr
d308462
d308462
# BuildRequires needed by the tests during the build
d308462
BuildRequires: python-ethtool
6791742
BuildRequires: python-pthreading
e18cab9
BuildRequires: libselinux-python
d308462
BuildRequires: libvirt-python
3483c14
BuildRequires: genisoimage
e18cab9
BuildRequires: openssl
e18cab9
BuildRequires: m2crypto
6791742
%ifarch x86_64
6791742
BuildRequires: python-dmidecode
6791742
%endif
6791742
%if 0%{?rhel} == 6
e18cab9
BuildRequires: python-ordereddict
e18cab9
%endif
fe51114
BuildRequires: python-ethtool
04c0657
439e9e8
# Autotools BuildRequires
439e9e8
%if 0%{?enable_autotools}
439e9e8
BuildRequires: autoconf
439e9e8
BuildRequires: automake
439e9e8
BuildRequires: gettext-devel
439e9e8
BuildRequires: libtool
439e9e8
%endif
439e9e8
04c0657
%if !0%{?rhel}
5cdc942
BuildRequires: pyflakes
5cdc942
BuildRequires: python-pep8
205ef3f
%endif
205ef3f
205ef3f
%if 0%{?with_systemd}
04c0657
BuildRequires: systemd-units
04c0657
%endif
04c0657
d308462
Requires: which
04c0657
Requires: sudo >= 1.7.3
e18cab9
Requires: logrotate
fe51114
Requires: rsyslog
04c0657
Requires: xz
d308462
Requires: ntp
3483c14
Requires: iproute
fe51114
Requires: python-netaddr
fe51114
Requires: python-inotify
fe51114
Requires: python-ethtool >= 0.6-3
3483c14
Requires: rpm-python
3483c14
Requires: nfs-utils
e18cab9
Requires: m2crypto
fe51114
Requires: libguestfs-tools-c
e18cab9
Requires: %{name}-xmlrpc = %{version}-%{release}
63105a2
Requires: mom >= 0.3.2-3
3483c14
3483c14
%ifarch x86_64
6791742
Requires: python-dmidecode
3483c14
Requires: dmidecode
3483c14
%endif
04c0657
fe51114
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 18
fe51114
Requires: libvirt-daemon >= 1.0.2-1
fe51114
Requires: libvirt-daemon-config-nwfilter
fe51114
Requires: libvirt-daemon-driver-network
fe51114
Requires: libvirt-daemon-driver-nwfilter
fe51114
Requires: libvirt-daemon-driver-qemu
fe51114
%else
04c0657
%if 0%{?rhel}
fe51114
Requires: libvirt >= 0.10.2-18.el6_4.4
fe51114
%else
fe51114
Requires: libvirt >= 1.0.2-1
fe51114
%endif
fe51114
%endif
fe51114
Requires: libvirt-python, libvirt-lock-sanlock, libvirt-client
fe51114
fe51114
%if 0%{?rhel}
fe51114
Requires: python-ethtool >= 0.6-3
e18cab9
%if 0%{?rhel} >= 7
e18cab9
ExclusiveArch:  x86_64
e18cab9
Requires: device-mapper-multipath
e18cab9
Requires: e2fsprogs
b68c53f
Requires: fence-agents-all
e18cab9
Requires: iscsi-initiator-utils
e18cab9
Requires: lvm2
e18cab9
Requires: python
fe51114
Requires: policycoreutils-python
e8edc30
Requires: python-pthreading >= 0.1.2
e18cab9
Requires: qemu-kvm
e18cab9
Requires: qemu-kvm-img
e18cab9
Requires: sanlock, sanlock-python
e18cab9
Requires: selinux-policy-targeted
e18cab9
%else
d308462
Requires: python
d308462
# Update the qemu-kvm requires when block_stream will be included
3483c14
Requires: qemu-kvm >= 2:0.12.1.2-2.295.el6_3.4
3483c14
Requires: qemu-img >= 2:0.12.1.2-2.295.el6_3.4
04c0657
Requires: iscsi-initiator-utils >= 6.2.0.872-15
d308462
Requires: device-mapper-multipath >= 0.4.9-52
04c0657
Requires: e2fsprogs >= 1.41.12-11
b68c53f
Requires: fence-agents
3483c14
Requires: kernel >= 2.6.32-279.9.1
3483c14
Requires: sanlock >= 2.3-4, sanlock-python
3483c14
Requires: initscripts >= 9.03.31-2.el6_3.1
fe51114
Requires: policycoreutils >= 2.0.83-19.30
fe51114
Requires: policycoreutils-python >= 2.0.83-19.30
e8edc30
Requires: python-pthreading
fe51114
Requires: selinux-policy-targeted >= 3.7.19-155
3483c14
Requires: lvm2 >= 2.02.95-10.el6_3.2
e18cab9
Requires: logrotate < 3.8.0
e18cab9
%endif
04c0657
%else
b68c53f
%if 0%{?fedora} >= 19
e8edc30
Requires: python-pthreading >= 0.1.2
b68c53f
Requires: fence-agents-all
b68c53f
%else
e8edc30
Requires: python-pthreading
b68c53f
Requires: fence-agents
b68c53f
%endif
d308462
# Subprocess and thread bug was found on python 2.7.2
d308462
Requires: python >= 2.7.3
04c0657
Requires: qemu-kvm >= 2:0.15.0-4
04c0657
Requires: qemu-img >= 2:0.15.0-4
fe51114
Requires: python-ethtool >= 0.8-1
fe51114
%if 0%{?fedora} >= 18
fe51114
Requires: initscripts >= 9.42.2-1
fe51114
%endif
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
3483c14
Requires: kernel >= 3.6
3483c14
Requires: sanlock >= 2.4-2, sanlock-python
fe51114
Requires: policycoreutils-python
3483c14
Requires: sed >= 4.2.1-10
3483c14
Requires: selinux-policy-targeted >= 3.10.0-149
3483c14
Requires: lvm2 >= 2.02.95
04c0657
%endif
04c0657
6791742
%if 0%{?fedora} >= 18
63105a2
%if 0%{?fedora} >= 19
63105a2
Requires: selinux-policy-targeted >= 3.12.1-69
63105a2
%else
63105a2
Requires: selinux-policy-targeted >= 3.11.1-100
63105a2
%endif
83d581e
# In order to avoid a policycoreutils bug (rhbz 889698) when selinux is
83d581e
# disabled we now require the version 2.1.13-55 (or newer) of Fedora.
83d581e
Requires: policycoreutils >= 2.1.13-55
83d581e
Requires: systemd >= 197-1.fc18.2
6791742
%endif
6791742
300cff5
# GlusterFS client-side RPMs needed for Gluster SD
300cff5
%if 0%{?with_gluster}
300cff5
Requires: glusterfs >= 3.4.0
300cff5
Requires: glusterfs-cli
300cff5
Requires: glusterfs-api
300cff5
Requires: glusterfs-fuse
300cff5
Requires: glusterfs-rdma
300cff5
%endif
300cff5
04c0657
Requires: psmisc >= 22.6-15
04c0657
Requires: bridge-utils
04c0657
Requires: sos
6239658
Requires: tree
04c0657
Requires: dosfstools
3483c14
Requires: genisoimage
04c0657
Requires: libselinux-python
d308462
Requires: %{name}-python = %{version}-%{release}
d308462
Requires: pyparted
3483c14
04c0657
Requires(post): /usr/sbin/saslpasswd2
3483c14
Requires(post): /bin/hostname
e18cab9
Requires(post): policycoreutils-python
e18cab9
Requires(preun): policycoreutils-python
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
d308462
%package cli
d308462
Summary:        VDSM command line interface
d308462
BuildArch:      noarch
d308462
d308462
Requires: %{name}-python = %{version}-%{release}
d308462
Requires: %{name}-xmlrpc = %{version}-%{release}
fe51114
Requires: %{name}-python-cpopen
d308462
d308462
%description cli
d308462
Call VDSM commands from the command line. Used for testing and debugging.
d308462
d308462
%package xmlrpc
d308462
Summary:        VDSM xmlrpc API
d308462
BuildArch:      noarch
d308462
d308462
Requires: %{name}-python = %{version}-%{release}
fe51114
Requires: %{name}-python-cpopen
fe51114
d308462
d308462
%description xmlrpc
d308462
An XMLRPC interface for interacting with vdsmd. Primary control interface for
d308462
ovirt-engine and vdsClient.
d308462
fe51114
%package api
fe51114
Summary:        VDSM API definition
fe51114
BuildArch:      noarch
fe51114
fe51114
%description api
fe51114
Provides the VDSM API schema and documentation.
fe51114
e18cab9
%package jsonrpc
e18cab9
Summary:        VDSM API Server
d308462
BuildArch:      noarch
d308462
d308462
Requires: %{name}-python = %{version}-%{release}
fe51114
Requires: %{name}-api = %{version}-%{release}
6791742
%if 0%{?rhel} == 6
e18cab9
Requires: python-ordereddict
e18cab9
%endif
d308462
e18cab9
%description jsonrpc
e18cab9
A Json-based RPC interface that serves as the protocol for libvdsm.
d308462
fe51114
%package yajsonrpc
fe51114
Summary:        JSON RPC server and client implementation
fe51114
BuildArch:      noarch
fe51114
fe51114
Requires:       python >= 2.6
fe51114
fe51114
%description yajsonrpc
fe51114
A JSON RPC server and client implementation.
fe51114
d308462
%package bootstrap
d308462
Summary:        VDSM bootstrapping package
d308462
BuildArch:      noarch
d308462
d308462
%description bootstrap
d308462
VDSM bootstrapping package. Used for delivering the bootstrap code onto the
d308462
Virtualization Manager.
d308462
d308462
%package reg
d308462
Summary:        VDSM registration package
d308462
BuildArch:      noarch
d308462
d308462
Requires: %{name} = %{version}-%{release}
3483c14
Requires: m2crypto
83d581e
Requires: openssl
d308462
d308462
%description reg
d308462
VDSM registration package. Used to register a Linux host to a Virtualization
d308462
Manager.
d308462
fe51114
%package python-cpopen
fe51114
Summary: Creates a sub-process in simpler safer manner.
fe51114
fe51114
BuildRequires: python2-devel
fe51114
fe51114
%description python-cpopen
fe51114
Python package for creating sub-process in simpler and safer manner by using C
fe51114
code.
fe51114
d308462
%package python
d308462
Summary:        VDSM python libraries
d308462
d308462
%description python
e18cab9
Shared libraries between the various VDSM packages.
d308462
d308462
%package debug-plugin
d308462
Summary:        VDSM Debug Plugin
d308462
Requires:       vdsm
d308462
Requires:       %{name}-xmlrpc = %{version}-%{release}
d308462
BuildArch:      noarch
d308462
d308462
%description debug-plugin
d308462
Used by the trained monkeys at Red Hat to insert chaos and mayhem in to VDSM.
d308462
d308462
%package tests
d308462
Summary:        VDSM Test Suite
d308462
Requires:       vdsm = %{version}-%{release}
3483c14
Requires:       dracut
3483c14
Requires:       python-nose
d308462
BuildArch:      noarch
d308462
d308462
%description tests
d308462
A test suite for verifying the functionality of a running vdsm instance
d308462
fe51114
%package hook-checkimages
fe51114
Summary:        Qcow2 disk image format check hook for VDSM
fe51114
BuildArch:      noarch
fe51114
Requires:       vdsm
fe51114
fe51114
%description hook-checkimages
fe51114
VDSM hook used to perform consistency check on a qcow2 format disk image
fe51114
using the QEMU disk image utility.
fe51114
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
3483c14
Requires:       vdsm
04c0657
04c0657
%description hook-faqemu
04c0657
VDSM hook used for testing VDSM with multiple fake virtual machines without
04c0657
running real guests.
3483c14
To enable this hook on your host, set vars.fake_kvm_support=True in your
3483c14
/etc/vdsm/vdsm.conf before adding the host to ovirt-Engine.
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
fe51114
%package hook-macspoof
fe51114
Summary:        Disables MAC spoofing filtering
fe51114
BuildArch:      noarch
fe51114
fe51114
%description hook-macspoof
fe51114
VDSM hook that disables mac spoof filtering on all the of the VM's interfaces.
fe51114
04c0657
%package hook-fileinject
04c0657
Summary:        Allow uploading file to VMs disk
04c0657
BuildArch:      noarch
3483c14
Requires:       python-libguestfs
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
fe51114
Requires:       usbutils
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
e18cab9
%package hook-nestedvt
e18cab9
Summary:        Nested Virtualization support for VDSM
e18cab9
BuildArch:      noarch
e18cab9
e18cab9
%description hook-nestedvt
e18cab9
If the nested virtualization is enabled in your kvm module
e18cab9
this hook will expose it to the guests.
e18cab9
04c0657
%package hook-numa
fe51114
Summary:        NUMA support for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
%description hook-numa
fe51114
Hooks is getting number/rage of NUMA nodes and NUMA mode,
04c0657
and update the VM xml.
04c0657
fe51114
%package hook-openstacknet
fe51114
Summary:        OpenStack Network vNICs support for VDSM
fe51114
BuildArch:      noarch
fe51114
fe51114
%description hook-openstacknet
fe51114
Hook for OpenStack Network vNICs.
fe51114
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
3483c14
%package hook-qemucmdline
3483c14
Summary:        QEMU cmdline hook for VDSM
3483c14
BuildArch:      noarch
3483c14
Requires:       vdsm
3483c14
3483c14
%description hook-qemucmdline
3483c14
Provides support for injecting QEMU cmdline via VDSM hook.
3483c14
It exploits libvirt's qemu:commandline facility available in the
3483c14
qemu xml namespace.
3483c14
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-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
63105a2
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 18
fe51114
Requires:       libvirt-daemon-driver-nodedev
63105a2
%endif
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
e18cab9
%package hook-vmfex
e18cab9
Summary:        vmfex support for VDSM
e18cab9
BuildArch:      noarch
e18cab9
e18cab9
%description hook-vmfex
e18cab9
Hook for vmfex.
e18cab9
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
fe637cd
%if 0%{?with_gluster}
d308462
%package gluster
d308462
Summary:        Gluster Plugin for VDSM
04c0657
BuildArch:      noarch
04c0657
04c0657
Requires: %{name} = %{version}-%{release}
83d581e
Requires: glusterfs >= 3.4.0
83d581e
Requires: glusterfs-server
83d581e
Requires: glusterfs-fuse
83d581e
Requires: glusterfs-rdma
fe51114
Requires: python-magic
04c0657
d308462
%description gluster
d308462
Gluster plugin enables VDSM to serve Gluster functionalities.
fe637cd
%endif
04c0657
04c0657
%prep
3483c14
%setup -q
f49b65b
%patch1 -p1
878b10b
%patch2 -p1
878b10b
%patch3 -p1
878b10b
%patch4 -p1
878b10b
%patch5 -p1
bf7d37c
%patch6 -p1
bf7d37c
%patch7 -p1
bf7d37c
e18cab9
%if 0%{?rhel} == 6
e18cab9
sed -i '/ su /d' vdsm/vdsm-logrotate.conf.in
e18cab9
%endif
2901aaa
04c0657
%build
439e9e8
%if 0%{?enable_autotools}
439e9e8
autoreconf -if
439e9e8
%endif
04c0657
%configure %{?with_hooks:--enable-hooks}
04c0657
make
2f81350
# Setting software_version and software_revision in dsaversion.py
2f81350
baserelease=`echo "%{release}" | sed 's/\([0-9]\+\(\.[0-9]\+\)\?\).*/\1/'`
2f81350
baseversion=`echo "%{version}" | sed 's/\([0-9]\+\(\.[0-9]\+\)\?\).*/\1/'`
fe51114
rawversion=%{version}-%{release}
2f81350
sed -i -e 's/^software_version =.*/software_version = "'"${baseversion}"'"/' \
fe51114
       -e 's/^raw_version_revision =.*/raw_version_revision = "'"${rawversion}"'"/' \
2f81350
       -e 's/^software_revision =.*/software_revision = "'"${baserelease}"'"/' vdsm/dsaversion.py
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
d308462
install -Dm 0644 vdsm/limits.conf \
d308462
                 %{buildroot}/etc/security/limits.d/99-vdsm.conf
d308462
205ef3f
%if 0%{?with_systemd}
205ef3f
# Install the systemd scripts
205ef3f
install -Dm 0755 vdsm/vdsmd.init %{buildroot}/lib/systemd/systemd-vdsmd
205ef3f
install -Dm 0644 vdsm/vdsmd.service %{buildroot}%{_unitdir}/vdsmd.service
fe51114
install -Dm 0644 vdsm/supervdsmd.service %{buildroot}%{_unitdir}/supervdsmd.service
fe51114
fe51114
install -Dm 0644 vdsm/vdsm-restore-net-config.service \
fe51114
                 %{buildroot}%{_unitdir}/vdsm-restore-net-config.service
205ef3f
install -Dm 0755 vdsm_reg/vdsm-reg.init \
205ef3f
                 %{buildroot}/lib/systemd/systemd-vdsm-reg
205ef3f
install -Dm 0644 vdsm_reg/vdsm-reg.service \
205ef3f
                 %{buildroot}%{_unitdir}/vdsm-reg.service
fe51114
install -Dm 0644 vdsm/vdsm-modules-load.d.conf \
fe51114
                 %{buildroot}%{_sysconfdir}/modules-load.d/vdsm.conf
205ef3f
%else
04c0657
# Install the SysV init scripts
04c0657
install -Dm 0755 vdsm/vdsmd.init %{buildroot}%{_initrddir}/vdsmd
fe51114
install -Dm 0755 vdsm/supervdsmd.init %{buildroot}%{_initrddir}/supervdsmd
fe51114
04c0657
install -Dm 0755 vdsm_reg/vdsm-reg.init %{buildroot}%{_initrddir}/vdsm-reg
fe51114
install -Dm 0755 vdsm/vdsm-restore-net-config.init \
fe51114
    %{buildroot}%{_initrddir}/vdsm-restore-net-config
fe51114
%endif
fe51114
fe51114
%if 0%{?with_tmpfiles_macro}
fe51114
install -Dm 0644 vdsm/vdsm-tmpfiles.d.conf \
fe51114
                 %{buildroot}%{_tmpfilesdir}/%{vdsm_name}.conf
205ef3f
%endif
04c0657
205ef3f
%if 0%{?rhel}
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
fe51114
install -Dm 0644 lib/vdsm/vdsm.conf.sample \
04c0657
                 %{buildroot}%{_sysconfdir}/vdsm/vdsm.conf
04c0657
04c0657
# Install the polkit for libvirt
3483c14
%if 0%{?fedora} >= 18
3483c14
install -Dm 0644 vdsm/vdsm-libvirt-access.rules \
3483c14
                 %{buildroot}%{_polkitdir}/10-vdsm-libvirt-access.rules
3483c14
%else
04c0657
install -Dm 0644 vdsm/vdsm-libvirt-access.pkla \
04c0657
                 %{buildroot}%{_polkitdir}/10-vdsm-libvirt-access.pkla
04c0657
%endif
3483c14
%endif
04c0657
04c0657
%check
d308462
# Disabling the nose tests until they'll all succeed in koji.
2ca4079
# make check is failing on F-18+ due to pep8 issues. See RHBZ # 837014
2ca4079
# make check NOSE_EXCLUDE=".*"
04c0657
04c0657
%clean
04c0657
rm -rf %{buildroot}
04c0657
04c0657
%pre
3483c14
# Force standard locale behavior (English)
3483c14
export LC_ALL=C
3483c14
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}
d308462
/usr/sbin/usermod -a -G %{qemu_group},%{snlk_group} %{vdsm_user}
d308462
/usr/sbin/usermod -a -G %{qemu_group},%{vdsm_group} %{snlk_user}
04c0657
04c0657
%post
6791742
%{_bindir}/vdsm-tool sebool-config || :
3483c14
# set the vdsm "secret" password for libvirt
3483c14
%{_bindir}/vdsm-tool set-saslpasswd
3483c14
3483c14
# Have moved vdsm section in /etc/sysctl.conf to /etc/sysctl.d/vdsm.
3483c14
# So Remove them if it is played with /etc/sysctl.conf.
3483c14
if grep -q "# VDSM section begin" /etc/sysctl.conf; then
3483c14
    /bin/sed -i '/# VDSM section begin/,/# VDSM section end/d' \
3483c14
        /etc/sysctl.conf
d308462
fi
d308462
04c0657
%if 0%{?rhel}
04c0657
if [ "$1" -eq 1 ] ; then
04c0657
    /sbin/chkconfig --add vdsmd
fe51114
    /sbin/chkconfig --add supervdsmd
fe51114
    /sbin/chkconfig --add vdsm-restore-net-config
04c0657
fi
04c0657
%else
fe51114
%if 0%{?with_systemd}
fe51114
/bin/systemctl restart systemd-modules-load.service >/dev/null 2>&1 || :
04c0657
if [ "$1" -eq 1 ] ; then
04c0657
    /bin/systemctl enable vdsmd.service >/dev/null 2>&1 || :
fe51114
    /bin/systemctl enable supervdsmd.service >/dev/null 2>&1 || :
fe51114
    /bin/systemctl enable vdsm-restore-net-config.service >/dev/null 2>&1 || :
04c0657
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
205ef3f
%endif
04c0657
04c0657
%preun
205ef3f
if [ "$1" -eq 0 ]; then
205ef3f
        start_conf_section="## beginning of configuration section by vdsm"
205ef3f
        end_conf_section="## end of configuration section by vdsm"
205ef3f
        by_vdsm="by vdsm"
205ef3f
205ef3f
        /bin/sed -i -e "/${start_conf_section}/,/${end_conf_section}/d" \
205ef3f
                    -e "/${by_vdsm}/d" \
205ef3f
               %{_sysconfdir}/libvirt/libvirtd.conf \
fe51114
               %{_sysconfdir}/logrotate.d/libvirtd \
205ef3f
               %{_sysconfdir}/libvirt/qemu.conf \
205ef3f
               %{_sysconfdir}/sysconfig/libvirtd \
205ef3f
               %{_sysconfdir}/sysctl.conf \
205ef3f
               %{_sysconfdir}/libvirt/qemu-sanlock.conf
fe51114
fe51114
        # Restoring backuped logrotate.d/libvirtd
fe51114
        /bin/sed -i -e 's/# VDSM backup//' %{_sysconfdir}/logrotate.d/libvirtd
205ef3f
fi
205ef3f
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
fe51114
    /sbin/service supervdsmd stop > /dev/null 2>&1 || :
fe51114
    /sbin/chkconfig --del supervdsmd
fe51114
    /sbin/chkconfig --del vdsm-restore-net-config
04c0657
04c0657
    /bin/sed -i '/# VDSM section begin/,/# VDSM section end/d' \
04c0657
        /etc/sysctl.conf
04c0657
6791742
    %{_bindir}/vdsm-tool sebool-unconfig || :
04c0657
3483c14
    /usr/sbin/saslpasswd2 -p -a libvirt -d vdsm@ovirt
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
205ef3f
%if 0%{?with_systemd_macros}
205ef3f
%systemd_preun vdsmd.service
fe51114
%systemd_preun supervdsmd.service
fe51114
%systemd_preun vdsm-restore-net-config.service
205ef3f
%else
04c0657
if [ "$1" -eq 0 ]; then
04c0657
    /bin/systemctl --no-reload disable vdsmd.service > /dev/null 2>&1 || :
fe51114
    /bin/systemctl --no-reload disable supervdsmd.service > /dev/null 2>&1 || :
fe51114
    /bin/systemctl --no-reload disable vdsm-restore-net-config.service > /dev/null 2>&1 || :
04c0657
    /bin/systemctl stop vdsmd.service > /dev/null 2>&1 || :
fe51114
    /bin/systemctl stop supervdsmd.service > /dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
205ef3f
%endif
04c0657
04c0657
%postun
04c0657
%if 0%{?rhel}
04c0657
if [ "$1" -ge 1 ]; then
04c0657
    /sbin/service vdsmd condrestart > /dev/null 2>&1
fe51114
    /sbin/service supervdsmd condrestart > /dev/null 2>&1
04c0657
fi
04c0657
exit 0
04c0657
%else
205ef3f
%if 0%{?with_systemd_macros}
205ef3f
%systemd_postun_with_restart vdsmd.service
fe51114
%systemd_postun_with_restart supervdsmd.service
205ef3f
%else
04c0657
if [ "$1" -ge 1 ] ; then
04c0657
    /bin/systemctl try-restart vdsmd.service >/dev/null 2>&1 || :
fe51114
    /bin/systemctl try-restart supervdsmd.service >/dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
205ef3f
%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
205ef3f
%if 0%{?with_systemd_macros}
205ef3f
%systemd_post vdsm-reg.service
205ef3f
%else
04c0657
if [ "$1" -eq 1 ] ; then
3483c14
    /bin/systemctl enable vdsm-reg.service >/dev/null 2>&1 || :
04c0657
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
205ef3f
%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
205ef3f
%if 0%{?with_systemd_macros}
205ef3f
%systemd_preun vdsm-reg.service
205ef3f
%else
04c0657
if [ "$1" -eq 0 ]; then
3483c14
    /bin/systemctl --no-reload disable vdsm-reg.service > /dev/null 2>&1 || :
3483c14
    /bin/systemctl stop vdsm-reg.service > /dev/null 2>&1 || :
04c0657
fi
04c0657
exit 0
04c0657
%endif
205ef3f
%endif
04c0657
04c0657
%files
04c0657
%defattr(-, root, root, -)
fe51114
%doc COPYING README lib/vdsm/vdsm.conf.sample
205ef3f
%if 0%{?with_systemd}
04c0657
/lib/systemd/systemd-vdsmd
04c0657
%{_unitdir}/vdsmd.service
fe51114
%{_unitdir}/supervdsmd.service
fe51114
%{_unitdir}/vdsm-restore-net-config.service
205ef3f
%else
205ef3f
%{_initrddir}/vdsmd
fe51114
%{_initrddir}/supervdsmd
fe51114
%{_initrddir}/vdsm-restore-net-config
04c0657
%endif
205ef3f
83b9f8f
%dir %attr(-, %{vdsm_user}, %{vdsm_group}) /rhev/data-center
d308462
%ghost %dir %attr(-, %{vdsm_user}, %{vdsm_group}) /rhev/data-center/hsm-tasks
d308462
%ghost %dir %attr(-, %{vdsm_user}, %{vdsm_group}) /rhev/data-center/mnt
04c0657
%dir %{_libexecdir}/%{vdsm_name}
fe51114
%dir %{_sysconfdir}/%{vdsm_name}
fe51114
%dir %{_sysconfdir}/%{vdsm_name}/mom.d
04c0657
%dir %{_datadir}/%{vdsm_name}
04c0657
%dir %{_datadir}/%{vdsm_name}/storage
3483c14
%dir %{_datadir}/%{vdsm_name}/storage/imageRepository
d308462
%{_datadir}/%{vdsm_name}/alignmentScan.py*
d308462
%{_datadir}/%{vdsm_name}/blkid.py*
04c0657
%{_datadir}/%{vdsm_name}/caps.py*
1134cd7
%{_datadir}/%{vdsm_name}/clientIF.py*
6791742
%{_datadir}/%{vdsm_name}/dmidecodeUtil.py*
d308462
%{_datadir}/%{vdsm_name}/API.py*
04c0657
%{_datadir}/%{vdsm_name}/hooking.py*
1134cd7
%{_datadir}/%{vdsm_name}/hooks.py*
d308462
%{_datadir}/%{vdsm_name}/lsblk.py*
d308462
%{_datadir}/%{vdsm_name}/md_utils.py*
1134cd7
%{_datadir}/%{vdsm_name}/mk_sysprep_floppy
d308462
%{_datadir}/%{vdsm_name}/parted_utils.py*
d308462
%{_datadir}/%{vdsm_name}/mkimage.py*
fe51114
%{_datadir}/%{vdsm_name}/sourceRoute.py*
fe51114
%{_datadir}/%{vdsm_name}/sourceRouteThread.py*
1134cd7
%{_datadir}/%{vdsm_name}/supervdsm.py*
1134cd7
%{_datadir}/%{vdsm_name}/supervdsmServer.py*
d308462
%{_datadir}/%{vdsm_name}/vmChannels.py*
d308462
%{_datadir}/%{vdsm_name}/tc.py*
04c0657
%{_datadir}/%{vdsm_name}/vdsm
04c0657
%{_datadir}/%{vdsm_name}/vdsm-restore-net-config
04c0657
%{_datadir}/%{vdsm_name}/vdsm-store-net-config
1134cd7
%{_datadir}/%{vdsm_name}/vm.py*
e18cab9
%{_datadir}/%{vdsm_name}/zombieReaper.py*
04c0657
%config(noreplace) %{_sysconfdir}/%{vdsm_name}/logger.conf
205ef3f
%config(noreplace) %{_sysconfdir}/%{vdsm_name}/svdsm.logger.conf
3483c14
%config(noreplace) %{_sysconfdir}/%{vdsm_name}/mom.conf
fe51114
%config(noreplace) %{_sysconfdir}/%{vdsm_name}/mom.d/*.policy
04c0657
%config(noreplace) %{_sysconfdir}/logrotate.d/vdsm
04c0657
%config(noreplace) %{_sysconfdir}/rwtab.d/vdsm
3483c14
%config(noreplace) %{_sysconfdir}/sysctl.d/vdsm
fe51114
%if 0%{?with_systemd}
fe51114
%config(noreplace) %{_sysconfdir}/modules-load.d/vdsm.conf
fe51114
%endif
fe51114
%if 0%{?with_tmpfiles_macro}
fe51114
%config(noreplace) %{_tmpfilesdir}/%{vdsm_name}.conf
fe51114
%endif
fe51114
%{_sysconfdir}/dhcp/dhclient.d/sourceRoute.sh
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*
fe51114
%{_libexecdir}/%{vdsm_name}/curl-img-wrap
04c0657
%{_libexecdir}/%{vdsm_name}/persist-vdsm-hooks
04c0657
%{_libexecdir}/%{vdsm_name}/unpersist-vdsm-hook
6239658
%{_libexecdir}/%{vdsm_name}/ovirt_functions.sh
d308462
%{_libexecdir}/%{vdsm_name}/vdsm-gencerts.sh
04c0657
%{_datadir}/%{vdsm_name}/storage/__init__.py*
6239658
%{_datadir}/%{vdsm_name}/storage/blockSD.py*
6239658
%{_datadir}/%{vdsm_name}/storage/blockVolume.py*
fe51114
%{_datadir}/%{vdsm_name}/storage/curlImgWrap.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*
fe51114
%if 0%{?with_gluster}
fe51114
%{_datadir}/%{vdsm_name}/storage/glusterSD.py*
fe51114
%{_datadir}/%{vdsm_name}/storage/glusterVolume.py*
fe51114
%else
fe51114
%exclude %{_datadir}/%{vdsm_name}/storage/gluster*
fe51114
%endif
04c0657
%{_datadir}/%{vdsm_name}/storage/hba.py*
6239658
%{_datadir}/%{vdsm_name}/storage/hsm.py*
04c0657
%{_datadir}/%{vdsm_name}/storage/image.py*
fe51114
%{_datadir}/%{vdsm_name}/storage/imageSharing.py*
d308462
%{_datadir}/%{vdsm_name}/storage/iscsiadm.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*
6239658
%{_datadir}/%{vdsm_name}/storage/resourceFactories.py*
3483c14
%{_datadir}/%{vdsm_name}/storage/remoteFileHandler.py*
6239658
%{_datadir}/%{vdsm_name}/storage/resourceManager.py*
83d581e
%{_datadir}/%{vdsm_name}/storage/clusterlock.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/storageConstants.py*
6239658
%{_datadir}/%{vdsm_name}/storage/storage_exception.py*
6239658
%{_datadir}/%{vdsm_name}/storage/storage_mailbox.py*
d308462
%{_datadir}/%{vdsm_name}/storage/storageServer.py*
d308462
%{_datadir}/%{vdsm_name}/storage/sync.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*
3483c14
%{_datadir}/%{vdsm_name}/storage/imageRepository/__init__.py*
3483c14
%{_datadir}/%{vdsm_name}/storage/imageRepository/formatConverter.py*
04c0657
%{_libexecdir}/%{vdsm_name}/safelease
04c0657
%{_libexecdir}/%{vdsm_name}/spmprotect.sh
04c0657
%{_libexecdir}/%{vdsm_name}/spmstop.sh
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_device_create
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_device_create
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_device_destroy
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_device_destroy
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
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_device_migrate_source
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_device_migrate_source
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_device_migrate_destination
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_device_migrate_destination
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
d308462
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_destroy
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy
d308462
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vm_set_ticket
d308462
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vm_set_ticket
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_update_device
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_update_device
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_update_device_fail
e18cab9
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_nic_hotplug
e18cab9
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_nic_hotplug
e18cab9
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_nic_hotunplug
e18cab9
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_nic_hotunplug
e18cab9
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_nic_hotplug_fail
e18cab9
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_nic_hotunplug_fail
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_disk_hotplug
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_disk_hotplug
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_disk_hotunplug
fe51114
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_disk_hotunplug
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/before_vdsm_start
04c0657
%dir %{_libexecdir}/%{vdsm_name}/hooks/after_vdsm_stop
04c0657
%{_datadir}/%{vdsm_name}/addNetwork
3483c14
%{_datadir}/%{vdsm_name}/configNetwork.py*
04c0657
%{_datadir}/%{vdsm_name}/delNetwork
3483c14
%{_datadir}/%{vdsm_name}/dumpStorageTable.py*
04c0657
%{_datadir}/%{vdsm_name}/get-conf-item
04c0657
%{_datadir}/%{vdsm_name}/kaxmlrpclib.py*
04c0657
%{_datadir}/%{vdsm_name}/ksm.py*
3483c14
%{_datadir}/%{vdsm_name}/momIF.py*
fe51114
%{_datadir}/%{vdsm_name}/netconf/__init__.py*
fe51114
%{_datadir}/%{vdsm_name}/netconf/ifcfg.py*
fe51114
%{_datadir}/%{vdsm_name}/netconf/libvirtCfg.py*
fe51114
%{_datadir}/%{vdsm_name}/netconf/iproute2.py*
04c0657
%{_datadir}/%{vdsm_name}/neterrors.py*
fe51114
%{_datadir}/%{vdsm_name}/netmodels.py*
3483c14
%{_datadir}/%{vdsm_name}/respawn
fe51114
%{_datadir}/%{vdsm_name}/sampling.py*
3483c14
%{_datadir}/%{vdsm_name}/set-conf-item
fe51114
%if 0%{?with_gluster}
fe51114
%dir %{_datadir}/%{vdsm_name}/gluster
fe51114
%{_datadir}/%{vdsm_name}/gluster/__init__.py*
fe51114
%{_datadir}/%{vdsm_name}/gluster/cli.py*
fe51114
%{_datadir}/%{vdsm_name}/gluster/exception.py*
fe51114
%{_datadir}/%{vdsm_name}/gluster/hostname.py*
fe51114
%else
fe51114
%exclude %{_datadir}/%{vdsm_name}/gluster/*
fe51114
%endif
04c0657
%{python_sitelib}/sos/plugins/vdsm.py*
d308462
/lib/udev/rules.d/12-vdsm-lvm.rules
d308462
/etc/security/limits.d/99-vdsm.conf
04c0657
%{_mandir}/man8/vdsmd.8*
04c0657
%if 0%{?rhel}
04c0657
%dir %{_localstatedir}/log/core
04c0657
%else
3483c14
%if 0%{?fedora} >= 18
3483c14
%{_polkitdir}/10-vdsm-libvirt-access.rules
3483c14
%else
04c0657
%{_polkitdir}/10-vdsm-libvirt-access.pkla
04c0657
%endif
3483c14
%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
fe51114
%dir %{_localstatedir}/run/%{vdsm_name}
fe51114
%dir %{_localstatedir}/run/%{vdsm_name}/sourceRoutes
fe51114
%dir %{_localstatedir}/run/%{vdsm_name}/trackedInterfaces
04c0657
%ghost %dir %{_localstatedir}/run/%{vdsm_name}/pools
d308462
%ghost %dir %{_localstatedir}/run/%{vdsm_name}/payload
04c0657
%dir %{_localstatedir}/log/%{vdsm_name}
04c0657
%dir %{_localstatedir}/log/%{vdsm_name}/backup
04c0657
d308462
%files python
d308462
%defattr(-, root, root, -)
d308462
%{_bindir}/vdsm-tool
d308462
%if !0%{?rhel}
d308462
%config(noreplace) %{_sysconfdir}/%{vdsm_name}/vdsm.conf
d308462
%endif
3483c14
%{python_sitearch}/%{vdsm_name}/__init__.py*
3483c14
%{python_sitearch}/%{vdsm_name}/config.py*
3483c14
%{python_sitearch}/%{vdsm_name}/constants.py*
3483c14
%{python_sitearch}/%{vdsm_name}/define.py*
3483c14
%{python_sitearch}/%{vdsm_name}/exception.py*
fe51114
%{python_sitearch}/%{vdsm_name}/ipwrapper.py*
3483c14
%{python_sitearch}/%{vdsm_name}/libvirtconnection.py*
3483c14
%{python_sitearch}/%{vdsm_name}/netinfo.py*
3483c14
%{python_sitearch}/%{vdsm_name}/qemuImg.py*
3483c14
%{python_sitearch}/%{vdsm_name}/SecureXMLRPCServer.py*
3483c14
%{python_sitearch}/%{vdsm_name}/utils.py*
3483c14
%{python_sitearch}/%{vdsm_name}/vdscli.py*
3483c14
%{python_sitearch}/%{vdsm_name}/tool/__init__.py*
fe51114
%if 0%{?with_systemd}
fe51114
%exclude %{python_sitearch}/%{vdsm_name}/tool/load_needed_modules.py*
fe51114
%else
e18cab9
%{python_sitearch}/%{vdsm_name}/tool/load_needed_modules.py*
fe51114
%endif
fe51114
%{python_sitearch}/%{vdsm_name}/tool/dummybr.py*
fe51114
%{python_sitearch}/%{vdsm_name}/tool/nwfilter.py*
fe51114
%{python_sitearch}/%{vdsm_name}/tool/libvirt_configure.py*
fe51114
%{_libexecdir}/%{vdsm_name}/libvirt_configure.sh
3483c14
%{python_sitearch}/%{vdsm_name}/tool/passwd.py*
fe51114
%{python_sitearch}/%{vdsm_name}/tool/sanlock.py*
e18cab9
%{python_sitearch}/%{vdsm_name}/tool/seboolsetup.py*
fe51114
%{python_sitearch}/%{vdsm_name}/tool/service.py*
3483c14
%{python_sitearch}/%{vdsm_name}/tool/validate_ovirt_certs.py*
fe51114
%{python_sitearch}/%{vdsm_name}/tool/vdsm-id.py*
d308462
d308462
%files tests
d308462
%doc %{_datadir}/%{vdsm_name}/tests/README
d308462
%defattr(-, root, root, -)
d308462
%{_datadir}/%{vdsm_name}/tests/*.py*
d308462
%{_datadir}/%{vdsm_name}/tests/cpu_info.out
fe51114
%{_datadir}/%{vdsm_name}/tests/caps_libvirt_intel_E5649.out
fe51114
%{_datadir}/%{vdsm_name}/tests/caps_libvirt_amd_6274.out
fe51114
%{_datadir}/%{vdsm_name}/tests/caps_libvirt_intel_E31220.out
3483c14
%{_datadir}/%{vdsm_name}/tests/glob_1c60971a-8647-44ac-ae33-6520887f8843.out
3483c14
%{_datadir}/%{vdsm_name}/tests/lvs_3386c6f2-926f-42c4-839c-38287fac8998.out
d308462
%{_datadir}/%{vdsm_name}/tests/netmaskconversions
3483c14
%{_datadir}/%{vdsm_name}/tests/run_tests.sh
3483c14
%{_datadir}/%{vdsm_name}/tests/tc_filter_show.out
fe637cd
%if 0%{?with_gluster}
e18cab9
%{_datadir}/%{vdsm_name}/tests/glusterVolumeProfileInfo.xml
e18cab9
%{_datadir}/%{vdsm_name}/tests/glusterVolumeProfileInfoNfs.xml
fe637cd
%else
fe637cd
%exclude %{_datadir}/%{vdsm_name}/tests/gluster*
fe637cd
%endif
d308462
%{_datadir}/%{vdsm_name}/tests/functional/*.py*
d308462
fe51114
%files hook-openstacknet
fe51114
%defattr(-, root, root, -)
fe51114
%{_sysconfdir}/sudoers.d/50_vdsm_hook_openstacknet
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/after_device_create/50_openstacknet
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/after_device_create/openstacknet_consts.py*
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/after_device_migrate_destination/50_openstacknet
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/after_device_migrate_destination/openstacknet_consts.py*
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/after_nic_hotplug/50_openstacknet
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/after_nic_hotplug/openstacknet_consts.py*
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/before_device_create/50_openstacknet
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/before_device_create/openstacknet_consts.py*
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/before_nic_hotplug/50_openstacknet
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/before_nic_hotplug/openstacknet_consts.py*
fe51114
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
3483c14
%files hook-qemucmdline
3483c14
%defattr(-, root, root, -)
3483c14
%doc COPYING
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_qemucmdline
3483c14
04c0657
%if 0%{?with_hooks}
fe51114
%files hook-checkimages
fe51114
%defattr(-, root, root, -)
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/60_checkimages
fe51114
04c0657
%files hook-directlun
3483c14
%defattr(-, root, root, -)
3483c14
%{_sysconfdir}/sudoers.d/50_vdsm_hook_directlun
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_directlun
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_directlun
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_directlun
04c0657
04c0657
%files hook-fileinject
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_fileinject
04c0657
04c0657
%files hook-floppy
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_floppy
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_floppy
04c0657
04c0657
%files hook-hostusb
3483c14
%defattr(-, root, root, -)
3483c14
%{_sysconfdir}/sudoers.d/50_vdsm_hook_hostusb
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_hostusb
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_hostusb
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_hostusb
04c0657
04c0657
%files hook-hugepages
3483c14
%defattr(-, root, root, -)
3483c14
%{_sysconfdir}/sudoers.d/50_vdsm_hook_hugepages
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_hugepages
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_hugepages
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_hugepages
04c0657
04c0657
%files hook-isolatedprivatevlan
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_isolatedprivatevlan
04c0657
%config(noreplace) %{_sysconfdir}/libvirt/nwfilter/isolatedprivatevlan-vdsm.xml
04c0657
fe51114
%files hook-macspoof
fe51114
%defattr(-, root, root, -)
fe51114
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_macspoof
fe51114
e18cab9
%files hook-nestedvt
e18cab9
%defattr(-, root, root, -)
e18cab9
%{_sysconfdir}/modprobe.d/vdsm-nestedvt.conf
e18cab9
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_nestedvt
e18cab9
04c0657
%files hook-numa
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_numa
04c0657
04c0657
%files hook-pincpu
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_pincpu
04c0657
04c0657
%files hook-promisc
3483c14
%defattr(-, root, root, -)
3483c14
%{_sysconfdir}/sudoers.d/50_vdsm_hook_promisc
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/after_vm_start/50_promisc
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_destroy/50_promisc
04c0657
04c0657
%files hook-qos
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_qos
04c0657
04c0657
%files hook-scratchpad
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_scratchpad
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_scratchpad
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_scratchpad
04c0657
04c0657
%files hook-smbios
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_smbios
04c0657
04c0657
%files hook-sriov
3483c14
%defattr(-, root, root, -)
3483c14
%{_sysconfdir}/sudoers.d/50_vdsm_hook_sriov
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_sriov
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_sriov
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_source/50_sriov
04c0657
04c0657
%files hook-vmdisk
3483c14
%defattr(-, root, root, -)
3483c14
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_vmdisk
e18cab9
e18cab9
%files hook-vmfex
e18cab9
%defattr(-, root, root, -)
e18cab9
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_vmfex
e18cab9
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_vmfex
04c0657
%endif
04c0657
04c0657
%files debug-plugin
04c0657
%defattr(-, root, root, -)
04c0657
%{_datadir}/%{vdsm_name}/vdsmDebugPlugin.py*
d308462
%{_datadir}/%{vdsm_name}/debugPluginClient.py*
04c0657
04c0657
%files cli
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING
04c0657
%{_bindir}/vdsClient
04c0657
%{_datadir}/%{vdsm_name}/vdsClient.py*
d308462
%{_datadir}/%{vdsm_name}/vdsClientGluster.py*
04c0657
%{_sysconfdir}/bash_completion.d/vdsClient
04c0657
%{_mandir}/man1/vdsClient.1*
04c0657
d308462
%files xmlrpc
d308462
%defattr(-, root, root, -)
d308462
%{_datadir}/%{vdsm_name}/BindingXMLRPC.py*
d308462
fe51114
%files api
fe51114
%doc vdsm_api/vdsm-api.html
fe51114
%{_datadir}/%{vdsm_name}/vdsmapi-schema.json
fe51114
%{python_sitelib}/vdsmapi.py*
fe51114
e18cab9
%files jsonrpc
e18cab9
%{_datadir}/%{vdsm_name}/BindingJsonRpc.py*
e18cab9
%{_datadir}/%{vdsm_name}/Bridge.py*
fe51114
fe51114
%files yajsonrpc
fe51114
%{python_sitelib}/yajsonrpc/__init__.py*
fe51114
%{python_sitelib}/yajsonrpc/asyncoreReactor.py*
fe51114
%{python_sitelib}/yajsonrpc/protonReactor.py*
fe51114
%{python_sitelib}/yajsonrpc/client.py*
d308462
04c0657
%files bootstrap
04c0657
%defattr(-, root, root, -)
04c0657
%doc COPYING
3483c14
%{_datadir}/%{vdsm_bootstrap}
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
d308462
%ghost %dir /data
d308462
%ghost %dir %attr(0775, root, root) /data/updates
205ef3f
%if 0%{?with_systemd}
04c0657
/lib/systemd/systemd-vdsm-reg
04c0657
%{_unitdir}/vdsm-reg.service
205ef3f
%else
205ef3f
%{_initrddir}/vdsm-reg
04c0657
%endif
04c0657
%{_datadir}/%{vdsm_reg}/vdsm-reg-setup
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*
d308462
%attr(0755, -, -) %{_datadir}/%{vdsm_reg}/register-to-engine.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}/hooks/before_vm_start/10_faqemu
04c0657
fe637cd
%if 0%{?with_gluster}
d308462
%files gluster
d308462
%defattr(-, root, root, -)
d308462
%dir %{_datadir}/%{vdsm_name}/gluster
d308462
%doc COPYING
d308462
%{_datadir}/%{vdsm_name}/gluster/api.py*
fe51114
%{_datadir}/%{vdsm_name}/gluster/vdsmapi-gluster-schema.json
fe51114
%{_datadir}/%{vdsm_name}/gluster/hooks.py*
fe51114
%{_datadir}/%{vdsm_name}/gluster/services.py*
fe637cd
%endif
d308462
fe51114
%files python-cpopen
fe51114
%{python_sitearch}/cpopen/__init__.py*
fe51114
%attr(755, root, root) %{python_sitearch}/cpopen/cpopen.so*
fe51114
04c0657
%changelog
bf7d37c
* Thu Oct 10 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.12.1-4
bf7d37c
- remoteFileHandler: Add create exclusive option for truncateFile (BZ#979193)
bf7d37c
- oop: improve safety for truncateFile
bf7d37c
878b10b
* Tue Oct 08 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.12.1-3
878b10b
- vm.Vm._getUnderlyingDriveInfo: extract path of gluster disks (BZ#1007980)
878b10b
- Require libvirt that allows vmUpdateDevice (BZ#1001001)
878b10b
- imageSharing: return proper size in httpGetSize
878b10b
- vdsmd.init: Add service-is-managed in shutdown_conflicting_srv (BZ#1006842)
878b10b
f49b65b
* Tue Sep 10 2013 Federico Simoncelli <fsimonce@redhat.com> 4.12.1-2
f49b65b
- systemd init: no need to stop conflicting services (BZ#999664)
f49b65b
71fb017
* Tue Aug 27 2013 Federico Simoncelli <fsimonce@redhat.com> 4.12.1-1
71fb017
- update to 4.12.1
71fb017
300cff5
* Thu Aug 22 2013 Federico Simoncelli <fsimonce@redhat.com> 4.12.0-2
300cff5
- Fix GlusterFS RPM dep to support GlusterFS SD (BZ#988299)
300cff5
63105a2
* Tue Aug 13 2013 Federico Simoncelli <fsimonce@redhat.com> 4.12.0-1
63105a2
- update to 4.12.0 final release
63105a2
- mom: Require latest mom
63105a2
- Mark ksmtuned as conflicting service in the init file
63105a2
- spec: vdsm-hook-sriov on el6 should not require
63105a2
- Crash fix for migrations that involve devices with no aliases (BZ#988065)
63105a2
- vdsm: Always retrieve alias for Balloon and Console (BZ#988065)
63105a2
- vdsm: Fix regression introduced by refactoring (BZ#985735)
63105a2
- VDSM now writes its version number in VDSM-generated
63105a2
- Bump requires version of selinux-policy-targeted
63105a2
- vdsm_reg: fix ovirt_node without default bridge (BZ#988990)
63105a2
- Source Route script now checks that the DHCP response (BZ#994600)
63105a2
- Management network is now kept in main routing table (BZ#984028)
63105a2
- Only remove dhcp source routing if the removal reason (BZ#995142)
63105a2
- image: use successor volume size when merging
63105a2
f708719
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.12.0-0.2.rc3
f708719
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f708719
fe51114
* Tue Jul 23 2013 Federico Simoncelli <fsimonce@redhat.com> 4.12.0-0.1.rc3
fe51114
- update to vdsm-4.12.0-rc3
fe51114
e8edc30
* Wed Jul 10 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.3-18
e8edc30
- vdsm.spec: update python-pthreading 
e8edc30
- service: make iscsid a systemd dependency
e8edc30
7932a53
* Tue Jun 4 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.3-17
7932a53
- Makefile.am: ignore false positive pyflakes lvm.py
7932a53
- Deactivate libvirtVM.Drives()
7932a53
- vdsm: fix Vm cleanup routine
7932a53
- Support teardownVolumePath(None)
7932a53
205ef3f
* Tue Apr 23 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-16
205ef3f
- Don't user sudo in fuser
205ef3f
- svdsm: fix fuser import in supervdsmServer
205ef3f
- Removing vdsm configuration when removing vdsm service
205ef3f
- Seperating supervdsm log to supervdsm.log file
205ef3f
- vdsm.spec: Adding with_systemd macro
205ef3f
- spec: use the fedora systemd macros
205ef3f
- spec: enable gluster upstream and on fedora 19
205ef3f
e80a7f2
* Tue Apr  9 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-15
e80a7f2
- fix the patches backported to ovirt-3.2
e80a7f2
- resync the fedora spec file with the upstream one
e80a7f2
7fe9c50
* Mon Apr  8 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-14
7fe9c50
- fix storage.fuser
7fe9c50
- Bump up libvirt version to fix network linking.
7fe9c50
fe637cd
* Wed Apr 3 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.3-13
fe637cd
- Temporarily deactivate Gluster sub-package.
fe637cd
e8edc30
* Tue Mar 26 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.3-12
b68c53f
- Applying direct to spec the fence-agents changes and removing the patch.
b68c53f
83d581e
* Mon Mar 25 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.3-11
83d581e
- adapt vdsm.spec to new fence-agents package name.
83d581e
83d581e
* Thu Mar 14 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-10
83d581e
- gluster: Handling Attribute error in Python 2.6
83d581e
- bootstrap: remove glusterfs packages
83d581e
- gluster: set glusterfs dependency version
83d581e
- Do not delete the template when zeroing a dependant
83d581e
83d581e
* Wed Feb 27 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-9
83d581e
- packaging: add load_needed_modules.py.in
83d581e
- tool: _enable_bond_dev: reopen bonding_masters per bond
83d581e
83d581e
* Tue Feb 19 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-8
83d581e
- configNet: allow delete/update of devices with no ifcfg (#906383)
83d581e
- Requires policycoreutils-2.1.13-55 to avoid another
83d581e
- After fail to connect to supervdsm more than 3 time
83d581e
83d581e
* Thu Feb 14 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-7
83d581e
- Fedora 18: require a newer udev (applied properly to the fedora specfile)
83d581e
83d581e
* Wed Jan 30 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-6
83d581e
- Explicitly shutdown  m2crypto socket
83d581e
- spec: require policycoreutils and skip sebool errors
83d581e
- spec: requires selinux-policy to avoid selinux failure
83d581e
- vdsmd.service: require either ntpd or chronyd
83d581e
- isRunning didn't check local variable before reading
83d581e
- udev: Race fix- load and trigger dev rule (#891300)
83d581e
- Change scsi_id command path to be configured at runtime (#886087)
83d581e
- upgrade: force upgrade to v2 before upgrading to v3 (#893184)
83d581e
- misc: rename safelease to clusterlock
83d581e
- domain: select the cluster lock using makeClusterLock
83d581e
- clusterlock: add the local locking implementation (#877715)
83d581e
- upgrade: catch MetaDataKeyNotFoundError when preparing
83d581e
- vdsm.spec: Require openssl (#905728)
83d581e
- Fedora 18: require a newer udev
83d581e
- fix sloppy backport of safelease rename
83d581e
- removing the use of zombie reaper from supervdsm
83d581e
83d581e
* Fri Jan 18 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.3-5
83d581e
- Searching for both py and pyc file to start super vdsm
83d581e
- adding getHardwareInfo API to vdsm
83d581e
83d581e
* Tue Jan 15 2013 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.3-4
83d581e
- python-ordereddict only for rhel more then 7
83d581e
- dont require python ordereddict on fedora
83d581e
- BuildRequires python-pthreading
6791742
c702136
* Wed Jan 02 2013 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-3
c702136
- caps.py: osversion() validate OVIRT
c702136
- restarting libvirtd didn't work over allinone setup
c702136
- Integrate Smartcard support
c702136
c702136
* Thu Dec 27 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-2
c702136
- api: Report CPU thread info in getVdsCapabilities
c702136
- schema: Missing comment for new VmDeviceType
c702136
- schema: Fix schema for VM.updateDevice
c702136
e18cab9
* Wed Dec 12 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.3-1
e18cab9
- vdsm-4.10.3
e18cab9
5cdc942
* Mon Nov 5 2012 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.1-100.gf2f6683
5cdc942
- vdsm-4.10.1-100-gf2f6683
5cdc942
3483c14
* Wed Oct 31 2012 Douglas Schilling Landgraf <dougsland@redhat.com> 4.10.1-1
3483c14
- vdsm-4.10.1
3483c14
- merged vdsm.spec from f17 with last upstream vdsm.spec
3483c14
3483c14
* Wed Oct 24 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-12
3483c14
- configure selinux for sanlock on nfs
3483c14
2ca4079
* Sat Oct 20 2012 Peter Robinson <pbrobinson@fedoraproject.org> 4.10.0-11
2ca4079
- Merge F17 changes into F18+ and disable make check due to pep8 issues
2ca4079
- Add pyparted dependency
2ca4079
2ca4079
* Thu Oct  4 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-10
53d7f88
- BZ#845660 Use buffer size in multiplies of the recommended transfer size
53d7f88
2ca4079
* Mon Sep 24 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-9
6368f7b
- BZ#845660 Use the recommended alignment instead of using pagesize
6368f7b
2ca4079
* Tue Sep 11 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-8
439e9e8
- add the autotools support
439e9e8
2ca4079
* Fri Aug 17 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-7
439e9e8
- enable all the vdsm hooks
439e9e8
2ca4079
* Wed Aug  1 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-6
9240b56
- BZ#842948: deployUtil - safely remove bridge
9240b56
2ca4079
* Tue Jul 17 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-5
6581ca8
- configNet: atomicBackup: remove new files upon restore
6581ca8
- configNet: clear up atomicBackup arg
6581ca8
- Remove redundant 'explicitBonding' parameter from setupNetworks
6581ca8
- BZ#837054 - Do not detach network from the bond during bond resize
6581ca8
- BZ#836954 - Allow to break bond and create a new network on its interface in single action.
6581ca8
- BZ#837443: remove bridge before add VDSM bridge
6581ca8
- BZ#837443: removeVlan() drop/remove interface
6581ca8
- configNetwork: fix NetInfo call
6581ca8
- BZ#837443: replace the netinfo import
6581ca8
- BZ#837443: removeBridge() drop/remove interface
6581ca8
- ovirt_functions: fix elif statement
6581ca8
- BZ#838097 _addNetworkValidation: do not explode if STP/DNS1 option passed
6581ca8
- BZ#832199: move selinux from init to spec
6581ca8
- bump libvirt version to fix readonly lease unsupported issue
6581ca8
2ca4079
* Fri Jun 29 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-4
2728a14
- deployUtil: use os.uname instead of /bin/uname
2728a14
- deployUtil: slightly saner kernel version comparison
2728a14
- BZ#835784 - Allow to create a network on top of existing bond in additional
2728a14
  to create a new bond and network
2728a14
- BZ#833119 - Allow to create VLANed network on top of existing bond
2728a14
- BZ#833803 - Avoid bond breaking after network detach
2728a14
- Handle bond properly if connectivity check fail.
2728a14
- BZ#806555 having /etc/ovirt-node-* means it is a node
2728a14
2ca4079
* Tue Jun 26 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-3
83b9f8f
- BZ#832577: node can't be approved
83b9f8f
- BZ#824298 fix typo in keyword argument exc_info
83b9f8f
2ca4079
* Wed Jun 20 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-2
2901aaa
- deployUtil.yumFind: rename and simplify semantics
2901aaa
- drop deployUtil.yumSearch
2901aaa
- deployUtil.yumSearchVersion: compare versions sanely
2901aaa
- Iterates over delete candidates networks only once
2901aaa
- 'options' translation in setupNetworks is not relevant
2901aaa
- Minor optimization for delNetwork
2901aaa
- Don't ignore bridgeless networks in ifaceUsers
2901aaa
- Minor optimization for addNetwork
2901aaa
- Use already known iface in addNetwork
2901aaa
- Use proper MTU on bonding when add network
2901aaa
- Add bridge on top of VLAN if exists
2901aaa
- BZ#830485 - Add netConfigDirty bit to getVdsCaps report
2901aaa
- remove flag skipLibvirt
2901aaa
- BZ#826873 - Allow to change bond without network attached to it
2901aaa
- BZ#830486 - Allow to change network according the diffs from previous state
2901aaa
- BZ#826467 - Allow to remove bond and attach network to NIC
2901aaa
- Related to BZ#826873 - Allow to create bond without network
2901aaa
2ca4079
* Mon Jun 11 2012 Federico Simoncelli <fsimonce@redhat.com> 4.10.0-1
f91fe8c
- vdsm-4.10.0
f91fe8c
2ca4079
* Mon Jun  4 2012 Federico Simoncelli <fsimonce@redhat.com> 4.9.6-2.gite952471
2f81350
- BZ#822158 Report version-release in a short format
2f81350
2ca4079
* Mon Jun  4 2012 Federico Simoncelli <fsimonce@redhat.com> 4.9.6-1.gite952471
6f40b18
- vdsm-4.9.6-ge952471
6f40b18
2ca4079
* Mon May 28 2012 Federico Simoncelli <fsimonce@redhat.com> 4.9.6-0.git1b07249
d308462
- vdsm-4.9.6-g1b07249
d308462
2ca4079
* Tue Feb 28 2012 Dan Kenigsberg <danken@redhat.com> - 4.9.4-0.gb3642e5
Dan Kenigsberg 1fdb6bc
- vdsm-4.9.4-0.gb3642e5
Dan Kenigsberg 1fdb6bc
2ca4079
* Wed Jan 25 2012 Dan Kenigsberg <danken@redhat.com> - 4.9.3.2-0
Dan Kenigsberg c9230ef
- vdsm-4.9.3.2
Dan Kenigsberg c9230ef
- Reverts "BZ#773666 - Fix HSM flows should not change rw permissions."
Dan Kenigsberg c9230ef
2ca4079
* Mon Jan 16 2012 Federico Simoncelli <fsimonce@redhat.com> - 4.9.3.1-0
1134cd7
- vdsm-4.9.3.1
1134cd7
2ca4079
* Fri Jan 13 2012 Dan Kenigsberg <danken@redhat.com> - 4.9.2-1.git1d7b929
Dan Kenigsberg ef89a24
- vdsm-4.9.2-g1d7b929
Dan Kenigsberg ef89a24
2ca4079
* Tue Jan 10 2012 Federico Simoncelli <fsimonce@redhat.com> - 4.9.2-0.git951b41d
6239658
- vdsm-4.9.2-g951b41d
6239658
2ca4079
* Fri Dec 02 2011 Federico Simoncelli <fsimonce@redhat.com> - 4.9.1-2.git931a43e
04c0657
- add the revision control comments to the specfile
04c0657
2ca4079
* Wed Nov 30 2011 Federico Simoncelli <fsimonce@redhat.com> - 4.9.1-1.git6ee166c
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