X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=NodeManager.spec;h=7ac21d2758032372511a690e6dc7e721d495e23e;hb=daea12f08fc20740d05dcde1cd9512b8b308b54c;hp=458672c655dac2f1e3ffe6fbcde85d041d9c9ba7;hpb=a1162c43f618a06034a4a623366d8cd9e095cd20;p=nodemanager.git diff --git a/NodeManager.spec b/NodeManager.spec index 458672c..7ac21d2 100644 --- a/NodeManager.spec +++ b/NodeManager.spec @@ -1,18 +1,54 @@ +# +# $Id$ +# +%define url $URL$ + +%define slicefamily %{pldistro}-%{distroname}-%{_arch} + +%define name NodeManager +%define version 1.8 +%define taglevel 15 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + Summary: PlanetLab Node Manager -Name: NodeManager -Version: 0.1 -Release: 1 +Name: %{name} +Version: %{version} +Release: %{release} License: PlanetLab Group: System Environment/Daemons -URL: http://cvs.planet-lab.org/cvs/NodeManager Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -Obsoletes: sidewinder +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +URL: %(echo %{url} | cut -d ' ' -f 2) + +BuildArch: noarch + +# Old Node Manager +Obsoletes: sidewinder, sidewinder-common + +# vuseradd, vuserdel +Requires: vserver-%{slicefamily} +Requires: util-vserver >= 0.30.208-17 + +# vserver.py +Requires: util-vserver-python > 0.3-16 + +# Signed tickets +Requires: gnupg + +# Contact API server +Requires: curl # Uses function decorators Requires: python >= 2.4 +# sioc/plnet +Requires: pyplnet >= 4.3 + %description The PlanetLab Node Manager manages all aspects of PlanetLab node and slice management once the node has been initialized and configured by @@ -30,21 +66,117 @@ local operations on slices. rm -rf $RPM_BUILD_ROOT %{__make} %{?_smp_mflags} install DESTDIR="$RPM_BUILD_ROOT" +install -D -m 755 conf_files.init $RPM_BUILD_ROOT/%{_initrddir}/conf_files +install -D -m 755 fuse-pl.init $RPM_BUILD_ROOT/%{_initrddir}/fuse-pl install -D -m 755 nm.init $RPM_BUILD_ROOT/%{_initrddir}/nm install -D -m 644 nm.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/nm +%post +chkconfig --add conf_files +chkconfig conf_files on +chkconfig --add nm +chkconfig nm on +chkconfig --add fuse-pl +chkconfig fuse-pl on +if [ "$PL_BOOTCD" != "1" ] ; then + service nm restart + service fuse-pl restart +fi + + +%preun +# 0 = erase, 1 = upgrade +if [ $1 -eq 0 ] ; then + chkconfig fuse-pl off + chkconfig --del fuse-pl + chkconfig nm off + chkconfig --del nm + chkconfig conf_files off + chkconfig --del conf_files +fi + %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc -%dir %{_datadir}/NodeManager -%{_datadir}/NodeManager/* +%{_datadir}/NodeManager/ %{_bindir}/forward_api_calls %{_initrddir}/nm +%{_initrddir}/conf_files +%{_initrddir}/fuse-pl +%{_sysconfdir}/logrotate.d/nm %changelog +* Fri Oct 09 2009 Marc Fiuczynski - NodeManager-1.8-15 +- The seed for random previously was the meaning of life (i.e., 42) but +- that resulted in a not so random choice for the hmac. This +- implementation now uses a random.seed that is based on the current +- time. + +* Tue Oct 06 2009 Marc Fiuczynski - NodeManager-1.8-14 +- Minor fix such that sliverauth.py makes a more specific call to +- GetSliceTags that include that specific tagname it is looking for. + +* Sat Sep 19 2009 Stephen Soltesz - NodeManager-1.8-13 +- Fix bug that prevented 'OVERRIDES' for working correctly. + +* Tue Sep 08 2009 Faiyaz Ahmed - NodeManager-1.8-12 +- Increase disk limits to 10G per sliver +- Sanity check slice for home directory before starting (hack) +- Check codemux arguments + +* Thu Aug 06 2009 Faiyaz Ahmed - NodeManager-1.8-11 +- * Fix Delegation +- * Move plcapi in plugin-api GetSlivers() calls. +- * Persistent Authcheck and resync session when auth failure + +* Tue Aug 04 2009 Faiyaz Ahmed - NodeManager-1.8-10 +- Disabling sliverauth module. Not ready for deployment. + +* Mon Aug 03 2009 Faiyaz Ahmed - NodeManager-1.8-9 +- Fixing overrides semantics. + +* Mon Aug 03 2009 Faiyaz Ahmed - NodeManager-1.8-8 +- Generalized plugins +- Fixed initscript start up bug. + +* Tue Jun 30 2009 Faiyaz Ahmed - NodeManager-1.8-7 +- * Fix delegation authentication problem +- * Can now disable codemux using _default slice, and setting tag {codemux: -1} + +* Tue May 26 2009 Stephen Soltesz - NodeManager-1.8-4 +- * Rerun initscripts when slice goes from disabled to enabled. + +* Tue May 26 2009 Stephen Soltesz - NodeManager-1.8-4 +- * Update session key when out of synch with PLC +- * PLCDefaults uses tagname + +* Fri Apr 17 2009 Thierry Parmentelat - NodeManager-1.8-3 +- log invokations of vsys + +* Fri Mar 27 2009 Faiyaz Ahmed - NodeManager-1.8-2 + +* Tue Mar 24 2009 Faiyaz Ahmed - NodeManager-1.8-1 + +* Wed Apr 02 2008 Faiyaz Ahmed - NodeManager-1.7-1 NodeManager-1.7-2 +- Configures vsys via vsys slice attribute {name: vsys, value: script} +- CPU reservations are now calculated via percentages instead of shares +- BW totals preserved for dynamic slices +- Closes bug where node cap sets off bw slice alarms for all slices. + +* Wed Oct 03 2007 Faiyaz Ahmed . +- Switched to SVN. + * Mon Nov 13 2006 Mark Huang - - Initial build. -