8 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
9 %global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
10 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
15 Source0: %{name}-%{version}.tar.bz2
17 Group: Applications/System
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
21 Packager: PlanetLab Central <support@planet-lab.org>
22 Distribution: PlanetLab %{plrelease}
23 URL: %(echo %{url} | cut -d ' ' -f 2)
24 Summary: the SFA python libraries
25 Group: Applications/System
28 Requires: python >= 2.5
30 Requires: xmlsec1-openssl-devel
31 Requires: libxslt-python
33 # xmlbuilder depends on lxml
35 Requires: python-setuptools
36 Requires: python-dateutil
38 # python 2.5 has uuid module added, for python 2.4 we still need it.
39 # we can't really check for if we can load uuid as a python module,
40 # it'll be installed by "devel.pkgs". we have the epel repository so
41 # python-uuid will be provided. but we can test for the python
43 # %define has_py24 %( python -c "import sys;sys.exit(sys.version_info[0:2] == (2,4))" 2> /dev/null; echo $? )
46 # this also didn't work very well. I'll just check for distroname - baris
47 #%if %{distroname} == "centos5"
48 #Requires: python-uuid
52 Summary: the SFA wrapper around MyPLC NodeManager
53 Group: Applications/System
55 Requires: pyOpenSSL >= 0.6
58 Summary: the SFA wrapper arounf MyPLC
59 Group: Applications/System
61 Requires: python-psycopg2
62 Requires: myplc-config
63 Requires: pyOpenSSL >= 0.7
66 Summary: the SFA experimenter-side CLI
67 Group: Applications/System
69 Requires: pyOpenSSL >= 0.7
72 Summary: sfatables policy tool for SFA
73 Group: Applications/System
77 Summary: unit tests suite for SFA
78 Group: Applications/System
82 This package provides the python libraries for the PlanetLab implementation of SFA
85 This package implements the SFA interface which serves as a layer
86 between the existing PlanetLab NodeManager interfaces and the SFA API.
89 This package implements the SFA interface which serves as a layer
90 between the existing PlanetLab interfaces and the SFA API.
93 This package provides the client side of the SFA API, in particular
94 sfi.py, together with other utilities.
96 %description sfatables
97 sfatables is a tool for defining access and admission control policies
98 in an SFA network, in much the same way as iptables is for ip
99 networks. This is the command line interface to manage sfatables
102 Provides some binary unit tests in /usr/share/sfa/tests
111 rm -rf $RPM_BUILD_ROOT
112 make install DESTDIR="$RPM_BUILD_ROOT"
115 rm -rf $RPM_BUILD_ROOT
118 # sfa and sfatables depend each other.
119 %{_bindir}/sfa-server.py*
122 %{_bindir}/keyconvert.py*
123 /var/www/html/wsdl/*.wsdl
127 %{_bindir}/sfa_component_setup.py*
131 %defattr(-,root,root)
132 %config /etc/sfa/default_config.xml
133 %config (noreplace) /etc/sfa/aggregates.xml
134 %config (noreplace) /etc/sfa/registries.xml
137 %{_bindir}/sfa-config-tty
138 %{_bindir}/sfa-import-plc.py*
139 %{_bindir}/sfa-clean-peer-records.py*
140 %{_bindir}/sfa-nuke-plc.py*
141 %{_bindir}/gen-sfa-cm-config.py*
142 %{_bindir}/sfa-ca.py*
145 %config (noreplace) /etc/sfa/sfi_config
147 %{_bindir}/getNodes.py*
148 %{_bindir}/getRecord.py*
149 %{_bindir}/setRecord.py*
150 %{_bindir}/sfadump.py*
156 %{_datadir}/sfa/tests
158 ### sfa-plc installs the 'sfa' service
163 if [ "$1" = 0 ] ; then
164 /sbin/service sfa stop || :
165 /sbin/chkconfig --del sfa || :
169 [ "$1" -ge "1" ] && service sfa restart
171 ### sfa-cm installs the 'sfa-cm' service
173 chkconfig --add sfa-cm
176 if [ "$1" = 0 ] ; then
177 /sbin/service sfa-cm stop || :
178 /sbin/chkconfig --del sfa-cm || :
182 [ "$1" -ge "1" ] && service sfa-cm restart
186 * Wed Oct 20 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-5
187 - fixed some legacy issues (list vs List)
188 - deprecated sfa.util.namespace for xrn and plxrn
189 - unit tests ship as the sfa-tests rpm
191 * Mon Oct 11 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-2
192 - deprecated old methods (e.g. List/list, and GetCredential/get_credential)
193 - NOTE: get_(self_)credential both have type and hrn swapped when moving to Get(Self)Credential
194 - hrn-urn translations tweaked
195 - fixed 'service sfa status'
196 - sfa-nuke-plc has a -f/--file-system option to clean up /var/lib/authorities (exp.)
197 - started to repair sfadump - although not usable yet
198 - trust objects now have dump_string method that dump() actually prints
199 - unit tests under review
200 - logging cleanup ongoing (always safe to use sfalogging.sfa_logger())
201 - binaries now support -v or -vv to increase loglevel
202 - trashed obsolete sfa.util.client
204 * Mon Oct 04 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-1
205 - various bugfixes and cleanup, improved/harmonized logging
207 * Tue Sep 07 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-16
208 - truncate login base of external (ProtoGeni, etc) slices to 20 characters
209 to avoid returning a PLCAPI exception that might confuse users.
210 - Enhance PLC aggregate performace by using a better filter when querying SliceTags.
213 * Tue Aug 24 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-15
214 - (Architecture) Credential format changed to match ProtoGENI xml format
215 - (Architecture) All interfaces export a new set of methods that are compatible
216 with the ProtoGeni Aggregate spec. These new methods are considered a
217 replacement for the pervious methods exported by the interfaces. All
218 previous methods are still exported and work as normal, but they are
219 considered deprecated and will not be supported in future releases.
220 - (Architecture) SFI has been updated to use the new interface methods.
221 - (Architecture) Changed keyconvet implementation from c to python.
222 - (Architecture) Slice Manager now attempts looks for a delegated credential
223 provided by the client before using its own server credential.
224 - (Archiceture) Slice Interface no longers stores cache of resources on disk.
225 This cache now exists only in memory and is cleared when service is restarted
226 or cache lifetime is exceeded.
227 - (Performance) SliceManager sends request to Aggregates in parallel instead
229 - (Bug fix) SFA tickets now support the new rspec format.
230 - (Bug fix) SFI only uses cahced credential if they aren't expired.
231 - (Bug fix) Cerdential delegation modified to work with new credential format.
232 - (Enhancement) SFI -a --aggregatge option now sends requests directly to the
233 Aggregate instead of relaying through the Slice Manager.
234 - (Enhancement) Simplified caching. Accociated a global cache instance with
235 the api handler on every new server request, making it easier to access the
236 cache and use in more general ways.
239 * Wed Oct 20 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-5
240 - fixed some legacy issues (list vs List)
241 - deprecated sfa.util.namespace for xrn and plxrn
242 - unit tests ship as the sfa-tests rpm
244 * Mon Oct 11 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-2
245 - deprecated old methods (e.g. List/list, and GetCredential/get_credential)
246 - NOTE: get_(self_)credential both have type and hrn swapped when moving to Get(Self)Credential
247 - hrn-urn translations tweaked
248 - fixed 'service sfa status'
249 - sfa-nuke-plc has a -f/--file-system option to clean up /var/lib/authorities (exp.)
250 - started to repair sfadump - although not usable yet
251 - trust objects now have dump_string method that dump() actually prints
252 - unit tests under review
253 - logging cleanup ongoing (always safe to use sfalogging.sfa_logger())
254 - binaries now support -v or -vv to increase loglevel
255 - trashed obsolete sfa.util.client
257 * Mon Oct 04 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-1
258 - various bugfixes and cleanup, improved/harmonized logging
260 * Thu May 11 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-11
261 - SfaServer now uses a pool of threads to handle requests concurrently
262 - sfa.util.rspec no longer used to process/manage rspecs (deprecated). This is now handled by sfa.plc.network and is not backwards compatible
263 - PIs can now get a slice credential for any slice at their site without having to be a member of the slice
264 - Registry records for federated peers (defined in registries.xml, aggregates.xml) updated when sfa service is started
265 - Interfaces will try to fetch and install gids from peers listed in registries.xml/aggregates.xml if gid is not found in /etc/sfa/trusted_roots dir
266 - Component manager does not install gid files if slice already has them
267 - Server automatically fetches and installs peer certificats (defined in registries/aggregates.xml) when service is restarted.
268 - fix credential verification exploit (verify that the trusted signer is a parent of the object it it signed)
269 - made it easier for root authorities to sign their sub's certifiacate using the sfa-ca.py (sfa/server/sfa-ca.py) tool
271 * Thu Jan 21 2010 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-10
272 - This tag is quite same as the previous one (sfa-0.9-9) except that the vini and max aggregate managers are also updated for urn support. Other features are:
273 - - sfa-config-tty now has the same features like plc-config-tty
274 - - Contains code to support both urn and hrn
275 - - Cleaned up request_hash related stuff
276 - - SM, AM and Registry code is organized under respective managers
277 - - Site and Slice synchronization across federated aggregates
278 - - Script to generate sfa_component_config
280 * Fri Jan 15 2010 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-9
281 - sfa-config-tty now has the same features like plc-config-tty
282 - Contains code to support both urn and hrn
283 - Cleaned up request_hash related stuff
284 - SM, AM and Registry code is organized under respective managers
285 - Slice synchronization across federated aggregates
286 - some bugs are fixed
288 * Wed Jan 06 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-8
289 - checkpoint with fewer mentions of geni
291 * Tue Jan 05 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-7
293 - this is believed to pass the tests; among other things:
294 - reworked configuration based on the myplc config with xml skeleton (no more sfa_config)
296 * Mon Nov 16 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-6
299 - - Preliminary version of hash based authentication
300 - - Initial code for Component Manager
301 - - Authority structure is moved to /var/lib/sfa/
304 * Fri Oct 09 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-5
305 - Create_slice and get_resources methods are connected to sfatables.
306 - Other features include compatibility with RP, handling remote objects created as part of federation, preliminary version of sfatables, call tracability and logging.
308 * Wed Oct 07 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-4
309 - Bug fix on update and remove_peer_object methods
310 - Compatibility with RP, preliminiary version of sfatables, call tracability and logging
312 * Mon Oct 05 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-3
313 - Compatibility with RP, two additional methods to handle remote objects, call tracability and logging, PLCDB now has single table for sfa records, preliminary version of sfatables (still under development)
315 * Fri Sep 18 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-2
316 - compatibility with RefreshPeer
317 - incremental mechanism for importing PLC records into SFA tables
318 - unified single database (still inside the underlying PLC db postgresql server)
319 - includes/improves call traceability and logging features
322 * Thu Sep 17 2009 Baris Metin <tmetin@sophia.inria.fr>
323 - added libxslt-python dependency
325 * Thu Sep 10 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-1
326 - unified single SFA database in the PLC-DB
327 - upcalls from PLCAPI to SFA methods
328 - SFA call traceability and logging features
330 - includes first/rough version of sfatables for policy implementation
332 * Thu Jul 23 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-6
333 - snapshot after the GEC5 demo
334 - should be the last tag set in the geniwrapper module, are we are now moving to the sfa module
336 * Wed Jul 15 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-5
337 - snapshot july 15 - has gone through superficial manual testing
338 - hopefully a good basis for gec5 demo
339 - multi-dir sfi client tested as well
341 * Wed Jul 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-4
342 - rename geniwrapper.spec into sfa.spec
344 * Wed Jul 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-3
345 - clean up in xmlrpc/soap, --protocol option to chose between both
346 - keyconvert packaged in /usr/bin, no /usr/share/keyconvert anymore
347 - hopefully more helpful context in case of crashes when importing
348 - bugfixes for using only /etc/sfa for site-dep files
349 - bugfixes in wsdl generation
351 * Mon Jul 06 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-2
352 - cleanup of the config area; no dependency to a PLC config anymore as sfa can be run in standalone
353 - config variables in sfa_config now start with SFA_ and not GENI_
354 - config.py can be loaded even with no config present
356 * Sun Jul 05 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-1
357 - first step for cleanup and reorganization
358 - mass-renaming from geni to sfa (some are still needed)
359 - sfa/trust implements the security architecture
361 * Wed Jul 01 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-7
362 - snapshot for reproducible builds
364 * Thu Jun 25 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-6
365 - snapshot for the convenience of alpha users
367 * Tue Jun 16 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-5
368 - build fix - keyconvert was getting installed in /usr/share/keyconvert/keyconvert
370 * Tue Jun 16 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-4
371 - ongoing work - snapshot for 4.3-rc9
373 * Wed Jun 03 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-3
376 * Sat May 30 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-2
377 - bugfixes - still a work in progress
379 * Fri May 18 2009 Baris Metin <tmetin@sophia.inria.fr>
383 %define module_current_branch 0.2