Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
projects
:
virtualization
>
rhevm-guest-agent
> rhevm-guest-agent.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rhevm-guest-agent.spec of Package rhevm-guest-agent (Revision 8)
Currently displaying revision
8
,
show latest
%global release_version 4 %global _ovirt_version 1.0.9 %global _moduledir /%{_lib}/security %global _kdmrc /etc/kde/kdm/kdmrc %global RHEV_AGENT_RUNNING /tmp/rhev-agent-running Name: rhevm-guest-agent Version: 1.0.9 Release: 1 Summary: RHEV-M Guest Agent Group: Applications/System License: ASL 2.0 URL: http://wiki.ovirt.org/wiki/Category:Ovirt_guest_agent Source0: http://evilissimo.fedorapeople.org/releases/ovirt-guest-agent/%{version}/ovirt-guest-agent-%{_ovirt_version}.tar.bz2 BuildRequires: libtool BuildRequires: pam-devel BuildRequires: python2-devel %package common Summary: RHEV-M Guest Agent BuildArch: noarch Requires: dbus-python Requires: rpm-python Requires: python-ethtool Requires: udev Requires: usermode Requires: tuned >= 0.2.19-10 Requires: qemu-guest-agent Provides: %{name} = %{version}-%{release} Obsoletes: rhev-agent Obsoletes: rhevm-guest-agent Conflicts: selinux-policy < 3.7.19-188 Patch1: 0001-plugins-use-rhev-m-in-authentication-s-dialogs-bz-84.patch Patch2: 0002-agent-updated-conf-file-and-replaced-ini-file-name.patch Patch3: 0000-Adding-missing-unit-test-files.patch Patch9: 0012-agent-Implement-basics-for-API-Versioning.patch Patch10: 0013-agent-Report-number-of-CPU-cores-visible-online-on-t.patch Patch11: 0014-agent-setNumberOfCPUs-support.patch Patch12: 0015-Implement-default-configuration-values.patch Patch13: 0016-Fix-SSO-on-RHEL6.patch %package pam-module Summary: PAM module for the oVirt Guest Agent Requires: %{name} = %{version}-%{release} Requires: pam Obsoletes: rhev-agent-pam-rhev-cred %description This is the oVirt management agent running inside the guest. The agent interfaces with the oVirt manager, supplying heart-beat info as well as run-time data from within the guest itself. The agent also accepts control commands to be run executed within the OS (like: shutdown and restart). %description common This is the oVirt management agent running inside the guest. The agent interfaces with the oVirt manager, supplying heart-beat info as well as run-time data from within the guest itself. The agent also accepts control commands to be run executed within the OS (like: shutdown and restart). %description pam-module The oVirt PAM module provides the functionality necessary to use the oVirt automatic log-in system. %prep %setup -q -n ovirt-guest-agent-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 #sed -i s/AM_PROG_AR/#AM_PROG_AR/ge configure.ac #rpmbuild --define="_topdir %{_topdir}" --recompile %{SOURCE1} #autoreconf -i -f %build %configure \ --enable-securedir=%{_moduledir} \ --includedir=%{_includedir}/security \ --with-simple-greeter-plugins-dir=%{_libdir}/gdm/simple-greeter/plugins \ --with-pam-prefix=%{_sysconfdir} make %{?_smp_mflags} %install # libtool will look for this file when relinking during installation. mkdir -p %{buildroot}%{_libdir} make install DESTDIR=%{buildroot} # Install SystemV init script. install -Dm 0755 ovirt-guest-agent/ovirt-guest-agent %{buildroot}%{_initrddir}/ovirt-guest-agent %pre common if [ "$1" -ge 1 ]; then # Previous version was not stopped on upgrade and it must be stopped # before change the user and group name. /sbin/service rhev-agentd status > /dev/null 2>&1 && \ /sbin/service rhev-agentd stop > /dev/null 2>&1 fi # The agent's user name was renamed from rhevagent to ovirtagent. So we delete # the old user name and it will be created with the new user name. getent passwd rhevagent > /dev/null && userdel rhevagent getent group ovirtagent > /dev/null || groupadd -r -g 175 ovirtagent getent passwd ovirtagent > /dev/null || \ /usr/sbin/useradd -u 175 -g 175 -o -r ovirtagent \ -c "oVirt Guest Agent" -d %{_datadir}/ovirt-guest-agent -s /sbin/nologin exit 0 %post common /sbin/chkconfig --add ovirt-guest-agent TUNED_ADM=/usr/sbin/tuned-adm TUNED_PROFILE=virtual-guest %if 0%{?rhel} == 6 if $TUNED_ADM active | grep -q -e "default$" -e "off$" && $TUNED_ADM list | \ grep -q $TUNED_PROFILE; then $TUNED_ADM profile $TUNED_PROFILE fi %endif %if 0%{?rhel} == 7 if ! /bin/systemctl status tuned.service > /dev/null 2>&1; then /bin/systemctl start tuned.service fi if (! $TUNED_ADM active > /dev/null 2>&1 || $TUNED_ADM active | \ grep -q "balanced$") && $TUNED_ADM list | grep -q $TUNED_PROFILE; then $TUNED_ADM profile $TUNED_PROFILE fi %endif %pretrans common -p <lua> --- If pid file exists local result = posix.stat('/var/run/rhev-agent/rhev-agentd.pid') if result then local file = io.open("%{RHEV_AGENT_RUNNING}", "w") io.close(file) end %posttrans common /sbin/udevadm trigger --subsystem-match="virtio-ports" \ --attr-match="name=com.redhat.rhevm.vdsm" [ -e %{RHEV_AGENT_RUNNING} ] && { /bin/rm %{RHEV_AGENT_RUNNING}; \ /sbin/service ovirt-guest-agent start; } || : %preun common if [ "$1" -eq 0 ] then /sbin/service ovirt-guest-agent stop > /dev/null 2>&1 /sbin/chkconfig --del ovirt-guest-agent # Send an "uninstalled" notification to vdsm. VIRTIO=`grep "^device" %{_sysconfdir}/ovirt-guest-agent.conf | awk '{ print $3; }'` if [ -w $VIRTIO ] then # Non blocking uninstalled notification echo -e '{"__name__": "uninstalled"}\n' | dd of=$VIRTIO \ oflag=nonblock status=noxfer conv=nocreat 1>& /dev/null || : fi fi %postun common if [ "$1" -eq 0 ] then # Let udev clear access rights /sbin/udevadm trigger --subsystem-match="virtio-ports" \ --attr-match="name=com.redhat.rhevm.vdsm" fi if [ "$1" -ge 1 ]; then /sbin/service ovirt-guest-agent condrestart > /dev/null 2>&1 fi %files common %dir %attr (755,ovirtagent,ovirtagent) %{_localstatedir}/log/ovirt-guest-agent %dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent %config(noreplace) %{_sysconfdir}/ovirt-guest-agent.conf %doc AUTHORS COPYING NEWS README %config(noreplace) %{_sysconfdir}/pam.d/ovirt-locksession %config(noreplace) %{_sysconfdir}/pam.d/ovirt-shutdown %config(noreplace) %{_sysconfdir}/pam.d/ovirt-hibernate %config(noreplace) %attr (644,root,root) %{_sysconfdir}/udev/rules.d/55-ovirt-guest-agent.rules %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.ovirt.vdsm.Credentials.conf %config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-locksession %config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-shutdown %config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-hibernate %attr (755,root,root) %{_datadir}/ovirt-guest-agent/ovirt-guest-agent.py* %{_datadir}/ovirt-guest-agent/OVirtAgentLogic.py* %{_datadir}/ovirt-guest-agent/VirtIoChannel.py* %{_datadir}/ovirt-guest-agent/CredServer.py* %{_datadir}/ovirt-guest-agent/GuestAgentLinux2.py* %{_datadir}/ovirt-guest-agent/ovirt-locksession %{_datadir}/ovirt-guest-agent/ovirt-shutdown %{_datadir}/ovirt-guest-agent/ovirt-hibernate %attr (644,root,root) %{_datadir}/ovirt-guest-agent/default.conf %attr (644,root,root) %{_datadir}/ovirt-guest-agent/default-logger.conf %attr (755,root,root) %{_datadir}/ovirt-guest-agent/LockActiveSession.py* %attr (755,root,root) %{_datadir}/ovirt-guest-agent/hibernate %attr (755,root,root) %{_initrddir}/ovirt-guest-agent %files pam-module %{_moduledir}/pam_ovirt_cred.so %exclude %{_moduledir}/pam_ovirt_cred.a %exclude %{_moduledir}/pam_ovirt_cred.la %changelog * Thu May 29 2014 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.9-4 - Fix for Broken SSO to RHEL guest Resolves: BZ#1102095 * Tue May 27 2014 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.9-3 - Fix for 'ovirt-guest-agent does not run with old config' Resolves: BZ#1101129 * Thu May 15 2014 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.9-2 - Added guest CPU reporting Resolves: BZ#1063169 * Thu Apr 03 2014 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.9-1 - Updating to ovirt-guest-agent 1.0.9 sources Resolves: BZ#1072326 * Mon Feb 18 2014 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.8-9 - Do not conflict with the kernel packages Resolves: BZ#1048710 * Thu Feb 6 2014 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.8-8 - Require qemu-guest-agent as dependency Resolves: BZ#1057999 * Mon Jan 6 2014 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.8-7 - No longer requiring the kernel package but conflicting on kernel and kernel-PAE lower than required Resolves: BZ#1048710 * Wed Nov 6 2013 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.8-6 - New: Report swap usage and total swap size Resolves: BZ#1030515 * Wed Oct 23 2013 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.8-5 - Solved: Removal /bin/systemctl call which is for systemd Resolves: BZ#1022046 * Wed Oct 2 2013 Amador Pahim <apahim@redhat.com> - 1.0.8-4 - Solved: Configure tuned only if current profile is off or default performance Resolves: BZ#991538 * Tue Oct 1 2013 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.8-3 - Adding patch for replacing the string check - Adding patch for Python 2.4 syntax compatibility Resolves: BZ#983408, BZ#1006861 * Thu Aug 15 2013 Vinzenz Feenstra <evilissimo@redhat.com> - 1.0.8-2 - Update to version ovirt-guest-agent 1.0.8 * Thu Apr 25 2013 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.7-11 - Solved: Agent does not run when upgrading from rhev-agent to rhevm-guest-agent Resolves: BZ#923812 * Fri Apr 19 2013 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.7-7 - Send 'uninstalled' message non-blocking Resolves: BZ#929387 * Fri Apr 19 2013 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.7-6 - Perform string sanitization on messages sent to VirtIO Resolves: BZ#947014 * Tue Mar 5 2013 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.7-5 - datadir as default home for the ovirtagent user Solves the issue with starting the service when polyinstantiated namespaces are used on the system. Following the Fedora guideline: http://fedoraproject.org/wiki/Packaging:UsersAndGroups - Updated GDM sources to latest patchlevel for 6.4 Resolves: BZ#883124 * Wed Jan 23 2013 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.7-4 - Fix for "Only first IP on nic is reported" - Fix for "vdsClient reports still old data after upgrade to rhevm-guest-agent on RHEL6 32bit" Resolves: BZ#753121, BZ#882268 * Mon Jan 14 2013 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.7-3 - New package layout from upstream requires additional obsoletes Resolves: BZ#890273 * Thu Jan 3 2013 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.7-2 - Depend on tuned and set the virtual guest profile for improved prerformance Resolves: BZ#838439 * Tue Dec 25 2012 Gal Hammer <ghammer@redhat.com> - 1.0.7-1 - reset user rights on virtio-channel during package removal. - unification of line endings to unix. - fixed support for reporting devices with only ipv6. - fixed pep8 errors in the linux guest agent. - upstream build system is now taking care of folder creation. - upstream build system is now taking care of systemd units installation. Resolves: BZ#890273 * Thu Dec 20 2012 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.5-11 - conflicts with selinux-policy lower than 3.7.19-188 Resolves: BZ#882239 * Mon Dec 17 2012 Vinzenz Feenstra <vfeenstr@redhat.com> - 1.0.5-9 - don't fail installation if old user (rhevagent) exists. - don't call /bin/systemctl when postun on rhel. - updated conf file to include rhevm-guest-agent. - obsoletes the rhev-agent package. - conflicts with selinux-policy lower than 3.7.19-155 Resolves: BZ#882239 * Wed Aug 1 2012 Gal Hammer <ghammer@redhat.com> - 1.0.5-3 - use rhev-m in authentication's dialogs (bz#841470). Resolves: BZ#841470 * Wed Jul 6 2012 Gal Hammer <ghammer@redhat.com> - 1.0.5-1 - fixed 'udevadm trigger' command line (bz#827141). - fixed various rpmlint errors and warnings. Resolves: BZ#827141 * Tue May 8 2012 Gal Hammer <ghammer@redhat.com> - 1.0.4-2 - replaced "with" usage with a python 2.4 compatible way. - added files to support RHEL-5 distribution. - added more detailed memory statistics. - report agent old package name. Resolves: BZ#803503 * Tue Apr 10 2012 Gal Hammer <ghammer@redhat.com> - 1.0.3-2 - package was renamed to rhevm-guest-agent in RHEL distribution. - fixed gdm-plugin build requires. Resolves: BZ#803503 * Wed Mar 28 2012 Gal Hammer <ghammer@redhat.com> - 1.0.2-1 - included a gpl-v2 copying file. - build the gdm-plugin using the gdm-devel package. - added a support for RHEL distribution. * Wed Feb 22 2012 Gal Hammer <ghammer@redhat.com> - 1.0.1-2 - updated required selinux-policy version (related to rhbz#791113). - added a support to hibernate (s4) command. - renamed user name to ovirtguest. - reset version numbering after changing the package name. * Thu Sep 27 2011 Gal Hammer <ghammer@redhat.com> - 2.3.15-1 - fixed disk usage report when mount point include spaces. - added a minimum version for python-ethtool. Resolves: BZ#736426 * Thu Sep 22 2011 Gal Hammer <ghammer@redhat.com> - 2.3.14-1 - added a new 'echo' command to support testing. Resolves: BZ#736426 * Thu Sep 15 2011 Gal Hammer <ghammer@redhat.com> - 2.3.13-1 - report new network interaces information (ipv4, ipv6 and mac address). - added disks usage report. - a new json-based protocol with the vdsm. Resolves: BZ#729252 BZ#736426 * Mon Aug 8 2011 Gal Hammer <ghammer@redhat.com> - 2.3.12-1 - replaced password masking with a fixed-length string. Resolves: BZ#727506 * Thu Aug 4 2011 Gal Hammer <ghammer@redhat.com> - 2.3.11-1 - send an 'uninstalled' notification to vdsm - mask the user's password in the credentials block Resolves: BZ#727647 BZ#727506 * Mon Aug 1 2011 Gal Hammer <ghammer@redhat.com> - 2.3.10-2 - fixed selinux-policy required version. Resolves: BZ#694088 * Mon Jul 25 2011 Gal Hammer <ghammer@redhat.com> - 2.3.10-1 - various fixes after failing the errata's rpmdiff. - added selinux-policy dependency. Resolves: BZ#720144 BZ#694088 * Thu Jun 16 2011 Gal Hammer <ghammer@redhat.com> - 2.3.9-1 - read report rate values from configuration file. - replaced executing privilege commands from sudo to consolehelper. Resolves: BZ#713079 BZ#632959 * Tue Jun 14 2011 Gal Hammer <ghammer@redhat.com> - 2.3.8-1 - execute the agent with a non-root user. - changed the shutdown timeout value to work in minutes. - update pam config files to work with selinux. - fixed the local user check when stripping the domain part. Resolves: BZ#632959 BZ#711428 BZ#694088 BZ#661713 BZ#681123 * Tue May 25 2011 Gal Hammer <ghammer@redhat.com> - 2.3.7-1 - stopped removing the domain part from the user name. - show only network interfaces that are up and running. Resolves: BZ#661713 BZ#681123 BZ#704845 * Mon Apr 4 2011 Gal Hammer <ghammer@redhat.com> - 2.3.6-1 - added kdm greeter plug-in. Resolves: BZ#681123 * Mon Mar 14 2011 Gal Hammer <ghammer@redhat.com> - 2.3.5-1 - replaced rhevcredserver execution from blocking main loop to context's iteration (non-blocking). Resolves: BZ#683493 * Thu Mar 10 2011 Gal Hammer <ghammer@redhat.com> - 2.3.4-1 - added some sleep-ing to init script in order to give udev some time to create the symbolic links. - changed the kernel version condition. Resolves: BZ#676625 BZ#681527 * Wed Mar 2 2011 Gal Hammer <ghammer@redhat.com> - 2.3.3-1 - removed unused file (rhevcredserver) from rhel-5 build. - added udev and kernel minimum version requirment. - fixed pid file location in spec file. Resolves: BZ#681524 BZ#681527 BZ#681533 * Tue Mar 1 2011 Gal Hammer <ghammer@redhat.com> - 2.3.2-1 - updated the agent's makefile to work with auto-tools. - added sub packages to support the single-sign-on feature. - added -h parameter to shutdown command in order to halt the vm after shutdown. - converted configuration file to have unix-style line ending. - added redhat-rpm-config to build requirements in order to include *.pyc and *.pyo in the rpm file. Resolves: BZ#680107 BZ#661713 BZ#679470 BZ#679451 * Wed Jan 19 2011 Gal Hammer <ghammer@redhat.com> - 2.3-7 - fixed files' mode to include execution flag. Resolves: BZ#670476 * Mon Jan 17 2011 Gal Hammer <ghammer@redhat.com> - 2.3-6 - fixed the way the exit code was returned. the script always return 0 (success) because the main program ended and errors from the child process were lost. Resolves: BZ#658092 * Thu Dec 23 2010 Gal Hammer <ghammer@redhat.com> - 2.3-5 - added description to startup/shutdown script in order to support chkconfig. - a temporary fix to the 100% cpu usage when the vdsm doesn't listen to the virtio-serial. Resolves: BZ#639702 * Sun Dec 19 2010 Gal Hammer <ghammer@redhat.com> - 2.3-4 - BZ#641886: lock command now handle both gnome and kde. Resolves: BZ#641886 * Tue Dec 07 2010 Barak Azulay <bazulay@redhat.com> - 2.3-3 - BZ#660343 load virtio_console module before starting the daemon. - BZ#660231 register daemon for startup. Resolves: BZ#660343 BZ#660231 * Wed Dec 05 2010 Barak Azulay <bazulay@redhat.com> - 2.3-2 - initial build for RHEL-6 - works over vioserial - Agent reports only heartbeats, IPs, app list - performs: shutdown & lock (the lock works only on gnome - when ConsoleKit & gnome-screensaver is installed) Resolves: BZ#613059 * Thu Aug 27 2010 Gal Hammer <ghammer@redhat.com> - 2.3-1 - Initial build.