#
%define url $URL$
+%define slicefamily %{pldistro}-%{distroname}-%{_arch}
+
%define name NodeManager
-%define version 1.6
-%define taglevel 1
+%define version 1.9
+%define taglevel 0
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
Release: %{release}
License: PlanetLab
Group: System Environment/Daemons
-URL: %(echo %{url} | cut -d ' ' -f 2)
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Distribution: PlanetLab %{plrelease}
URL: %(echo %{url} | cut -d ' ' -f 2)
+BuildArch: noarch
+
# Old Node Manager
Obsoletes: sidewinder, sidewinder-common
# vuseradd, vuserdel
-Requires: vserver-reference
+Requires: vserver-%{slicefamily}
Requires: util-vserver >= 0.30.208-17
# vserver.py
# 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
%{__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
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
%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
+* Tue Mar 24 2009 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - NodeManager-1.8-1
+
+* Wed Apr 02 2008 Faiyaz Ahmed <faiyaza@cs.prineton.edu - NodeManager-1.7.4
+- Codemux supports multiple hosts mapping to single slice
+- Fixed bug in delegation support where tickets delivered weren't
+ being passed to sm.deliver_ticket().
+* Fri Mar 28 2008 Faiyaz Ahmed <faiyaza@cs.prineton.edu - NodeManager-1.7.3
+- Codemux now configured via slice attribute (host,port)
+- Support for multiple vserver reference images (including different archs)
+- Mom BW emails are sent to list defined by MyPLC's config
+- Sirius BW loans honored correctly. Fixed.
+- BW totals preserved for dynamic slices so as not to game the system.
+* Thu Feb 14 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - 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 <faiyaza@cs.princeton.edu> .
- Switched to SVN.
* Mon Nov 13 2006 Mark Huang <mlhuang@paris.CS.Princeton.EDU> -
- Initial build.
+
+%define module_current_branch 1.8