5 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
6 %global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
7 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
12 Source0: %{name}-%{version}.tar.bz2
14 Group: Applications/System
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
18 Packager: PlanetLab Central <support@planet-lab.org>
19 Distribution: PlanetLab %{plrelease}
21 Summary: the SFA python libraries
22 Group: Applications/System
25 Requires: python >= 2.5
27 Requires: xmlsec1-openssl-devel
28 Requires: libxslt-python
30 # xmlbuilder depends on lxml
32 Requires: python-setuptools
33 Requires: python-dateutil
35 # python 2.5 has uuid module added, for python 2.4 we still need it.
36 # we can't really check for if we can load uuid as a python module,
37 # it'll be installed by "devel.pkgs". we have the epel repository so
38 # python-uuid will be provided. but we can test for the python
40 # %define has_py24 %( python -c "import sys;sys.exit(sys.version_info[0:2] == (2,4))" 2> /dev/null; echo $? )
43 # this also didn't work very well. I'll just check for distroname - baris
44 #%if %{distroname} == "centos5"
45 #Requires: python-uuid
49 Summary: the SFA wrapper around MyPLC NodeManager
50 Group: Applications/System
52 Requires: pyOpenSSL >= 0.6
55 Summary: the SFA wrapper arounf MyPLC
56 Group: Applications/System
58 Requires: python-psycopg2
59 Requires: myplc-config
60 Requires: pyOpenSSL >= 0.7
63 Summary: the SFA experimenter-side CLI
64 Group: Applications/System
66 Requires: pyOpenSSL >= 0.7
69 Summary: sfatables policy tool for SFA
70 Group: Applications/System
74 Summary: SFA support for flash clients
75 Group: Applications/System
79 Summary: unit tests suite for SFA
80 Group: Applications/System
84 This package provides the python libraries for the PlanetLab implementation of SFA
87 This package implements the SFA interface which serves as a layer
88 between the existing PlanetLab NodeManager interfaces and the SFA API.
91 This package implements the SFA interface which serves as a layer
92 between the existing PlanetLab interfaces and the SFA API.
95 This package provides the client side of the SFA API, in particular
96 sfi.py, together with other utilities.
98 %description sfatables
99 sfatables is a tool for defining access and admission control policies
100 in an SFA network, in much the same way as iptables is for ip
101 networks. This is the command line interface to manage sfatables
103 %description flashpolicy
104 This package provides support for adobe flash client applications.
107 Provides some binary unit tests in /usr/share/sfa/tests
113 make VERSIONTAG="%{version}-%{taglevel}" SCMURL="%{SCMURL}"
116 rm -rf $RPM_BUILD_ROOT
117 make VERSIONTAG="%{version}-%{taglevel}" SCMURL="%{SCMURL}" install DESTDIR="$RPM_BUILD_ROOT"
120 rm -rf $RPM_BUILD_ROOT
123 # sfa and sfatables depend each other.
124 %{_bindir}/sfa-server.py*
127 %{_bindir}/keyconvert.py*
128 /var/www/html/wsdl/*.wsdl
132 %{_bindir}/sfa_component_setup.py*
136 %defattr(-,root,root)
137 %config /etc/sfa/default_config.xml
138 %config (noreplace) /etc/sfa/aggregates.xml
139 %config (noreplace) /etc/sfa/registries.xml
142 /etc/sfa/credential.xsd
146 /etc/sfa/protogeni-rspec-common.xsd
147 %{_bindir}/sfa-config-tty
148 %{_bindir}/sfa-import-plc.py*
149 %{_bindir}/sfa-clean-peer-records.py*
150 %{_bindir}/sfa-nuke-plc.py*
151 %{_bindir}/gen-sfa-cm-config.py*
152 %{_bindir}/sfa-ca.py*
155 %config (noreplace) /etc/sfa/sfi_config
157 %{_bindir}/getNodes.py*
158 %{_bindir}/getRecord.py*
159 %{_bindir}/setRecord.py*
160 %{_bindir}/sfadump.py*
166 %{_bindir}/sfa_flashpolicy.py*
167 /etc/sfa/sfa_flashpolicy_config.xml
170 %{_datadir}/sfa/tests
172 ### sfa-plc installs the 'sfa' service
177 if [ "$1" = 0 ] ; then
178 /sbin/service sfa stop || :
179 /sbin/chkconfig --del sfa || :
183 [ "$1" -ge "1" ] && service sfa restart
185 ### sfa-cm installs the 'sfa-cm' service
187 chkconfig --add sfa-cm
190 if [ "$1" = 0 ] ; then
191 /sbin/service sfa-cm stop || :
192 /sbin/chkconfig --del sfa-cm || :
196 [ "$1" -ge "1" ] && service sfa-cm restart
200 * Wed Mar 16 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-21
202 - fix in initscript, *ENABLED tags in config now taken into account
204 * Fri Mar 11 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-20
205 - some commits had not been pushed in tag 19
207 * Fri Mar 11 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-19
208 - GetVersion should now report full URLs with path
209 - scansfa has nicer output and new syntax (entry URLs as args and not options)
210 - dos2unix'ed flash policy pill
212 * Wed Mar 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-18
213 - fix packaging again for f8
215 * Wed Mar 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-17
216 - fix packaging (apparently broken in 1.0-16)
217 - first working version of sfascan
218 - tweaks in GetVersion for exposing hrn(AM) and full set of aggregates(SM)
219 - deprecated the sfa_geni_aggregate config category
221 * Tue Mar 08 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-16
223 - First version of SFA scanner
225 * Mon Mar 07 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-15
226 - Add support for Flash clients using flashpolicy
227 - Fix problems with tag handling in RSpec
229 * Wed Mar 02 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-14
230 - Modifications to the Eucalyptus Aggregate Manager
231 - Fixes for VINI RSpec
232 - Fix tag handling for PL RSpec
233 - Fix XML Schema ordering for <urn> element
235 * Tue Feb 01 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-13
236 - just set x509 version to 2
238 * Wed Jan 26 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-12
239 - added urn to the node area in rspecs
240 - conversion to urn now exports fqdn
241 - sfa-import-plc.py now creates a unique registry record for each SFA interface
243 * Thu Dec 16 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-11
244 - undo broken attempt for python-2.7
246 * Wed Dec 15 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-10
247 - SMs avoid duplicates for when call graph has dags;
248 - just based on network's name, when a duplicate occurs, one is just dropped
249 - does not try to merge/aggregate 2 networks
250 - also reviewed logging with the hope to fix the sfa startup msg:
251 - TypeError: not all arguments converted during string formatting
253 * Tue Dec 07 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-9
254 - verify credentials against xsd schema
255 - Fix SM to SM communication
256 - Fix bug in sfa.util.sfalogging, sfa-import.py now logs to sfa_import.log
257 - new setting session_key_path
259 * Tue Nov 09 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-8
260 - fix registry credential regeneration and handle expiration
261 - support for setting slice tags (min_role=user)
262 - client can display its own version: sfi.py version --local
263 - GetVersion to provide urn in addition to hrn
264 - more code uses plxrn vs previous helper functions
265 - import replaces '+' in email addresses with '_'
267 * Fri Oct 22 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-7
268 - fix GetVersion code_tag and add code_url
270 * Fri Oct 22 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-6
271 - extend GetVersion towards minimum federation introspection, and expose local tag
273 * Wed Oct 20 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-5
274 - fixed some legacy issues (list vs List)
275 - deprecated sfa.util.namespace for xrn and plxrn
276 - unit tests ship as the sfa-tests rpm
278 * Mon Oct 11 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-2
279 - deprecated old methods (e.g. List/list, and GetCredential/get_credential)
280 - NOTE: get_(self_)credential both have type and hrn swapped when moving to Get(Self)Credential
281 - hrn-urn translations tweaked
282 - fixed 'service sfa status'
283 - sfa-nuke-plc has a -f/--file-system option to clean up /var/lib/authorities (exp.)
284 - started to repair sfadump - although not usable yet
285 - trust objects now have dump_string method that dump() actually prints
286 - unit tests under review
287 - logging cleanup ongoing (always safe to use sfalogging.sfa_logger())
288 - binaries now support -v or -vv to increase loglevel
289 - trashed obsolete sfa.util.client
291 * Mon Oct 04 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-1
292 - various bugfixes and cleanup, improved/harmonized logging
294 * Tue Sep 07 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-16
295 - truncate login base of external (ProtoGeni, etc) slices to 20 characters
296 to avoid returning a PLCAPI exception that might confuse users.
297 - Enhance PLC aggregate performace by using a better filter when querying SliceTags.
300 * Tue Aug 24 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-15
301 - (Architecture) Credential format changed to match ProtoGENI xml format
302 - (Architecture) All interfaces export a new set of methods that are compatible
303 with the ProtoGeni Aggregate spec. These new methods are considered a
304 replacement for the pervious methods exported by the interfaces. All
305 previous methods are still exported and work as normal, but they are
306 considered deprecated and will not be supported in future releases.
307 - (Architecture) SFI has been updated to use the new interface methods.
308 - (Architecture) Changed keyconvet implementation from c to python.
309 - (Architecture) Slice Manager now attempts looks for a delegated credential
310 provided by the client before using its own server credential.
311 - (Archiceture) Slice Interface no longers stores cache of resources on disk.
312 This cache now exists only in memory and is cleared when service is restarted
313 or cache lifetime is exceeded.
314 - (Performance) SliceManager sends request to Aggregates in parallel instead
316 - (Bug fix) SFA tickets now support the new rspec format.
317 - (Bug fix) SFI only uses cahced credential if they aren't expired.
318 - (Bug fix) Cerdential delegation modified to work with new credential format.
319 - (Enhancement) SFI -a --aggregatge option now sends requests directly to the
320 Aggregate instead of relaying through the Slice Manager.
321 - (Enhancement) Simplified caching. Accociated a global cache instance with
322 the api handler on every new server request, making it easier to access the
323 cache and use in more general ways.
326 * Wed Mar 16 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-21
328 - fix in initscript, *ENABLED tags in config now taken into account
330 * Fri Mar 11 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-20
331 - some commits had not been pushed in tag 19
333 * Fri Mar 11 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-19
334 - GetVersion should now report full URLs with path
335 - scansfa has nicer output and new syntax (entry URLs as args and not options)
336 - dos2unix'ed flash policy pill
338 * Wed Mar 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-18
339 - fix packaging again for f8
341 * Wed Mar 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-17
342 - fix packaging (apparently broken in 1.0-16)
343 - first working version of sfascan
344 - tweaks in GetVersion for exposing hrn(AM) and full set of aggregates(SM)
345 - deprecated the sfa_geni_aggregate config category
347 * Tue Mar 08 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-16
349 - First version of SFA scanner
351 * Mon Mar 07 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-15
352 - Add support for Flash clients using flashpolicy
353 - Fix problems with tag handling in RSpec
355 * Wed Mar 02 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-14
356 - Modifications to the Eucalyptus Aggregate Manager
357 - Fixes for VINI RSpec
358 - Fix tag handling for PL RSpec
359 - Fix XML Schema ordering for <urn> element
361 * Tue Feb 01 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-13
362 - just set x509 version to 2
364 * Wed Jan 26 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-12
365 - added urn to the node area in rspecs
366 - conversion to urn now exports fqdn
367 - sfa-import-plc.py now creates a unique registry record for each SFA interface
369 * Thu Dec 16 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-11
370 - undo broken attempt for python-2.7
372 * Wed Dec 15 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-10
373 - SMs avoid duplicates for when call graph has dags;
374 - just based on network's name, when a duplicate occurs, one is just dropped
375 - does not try to merge/aggregate 2 networks
376 - also reviewed logging with the hope to fix the sfa startup msg:
377 - TypeError: not all arguments converted during string formatting
379 * Tue Dec 07 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-9
380 - verify credentials against xsd schema
381 - Fix SM to SM communication
382 - Fix bug in sfa.util.sfalogging, sfa-import.py now logs to sfa_import.log
383 - new setting session_key_path
385 * Tue Nov 09 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-8
386 - fix registry credential regeneration and handle expiration
387 - support for setting slice tags (min_role=user)
388 - client can display its own version: sfi.py version --local
389 - GetVersion to provide urn in addition to hrn
390 - more code uses plxrn vs previous helper functions
391 - import replaces '+' in email addresses with '_'
393 * Fri Oct 22 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-7
394 - fix GetVersion code_tag and add code_url
396 * Fri Oct 22 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-6
397 - extend GetVersion towards minimum federation introspection, and expose local tag
399 * Wed Oct 20 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-5
400 - fixed some legacy issues (list vs List)
401 - deprecated sfa.util.namespace for xrn and plxrn
402 - unit tests ship as the sfa-tests rpm
404 * Mon Oct 11 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-2
405 - deprecated old methods (e.g. List/list, and GetCredential/get_credential)
406 - NOTE: get_(self_)credential both have type and hrn swapped when moving to Get(Self)Credential
407 - hrn-urn translations tweaked
408 - fixed 'service sfa status'
409 - sfa-nuke-plc has a -f/--file-system option to clean up /var/lib/authorities (exp.)
410 - started to repair sfadump - although not usable yet
411 - trust objects now have dump_string method that dump() actually prints
412 - unit tests under review
413 - logging cleanup ongoing (always safe to use sfalogging.sfa_logger())
414 - binaries now support -v or -vv to increase loglevel
415 - trashed obsolete sfa.util.client
417 * Mon Oct 04 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-1
418 - various bugfixes and cleanup, improved/harmonized logging
420 * Thu May 11 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-11
421 - SfaServer now uses a pool of threads to handle requests concurrently
422 - sfa.util.rspec no longer used to process/manage rspecs (deprecated). This is now handled by sfa.plc.network and is not backwards compatible
423 - PIs can now get a slice credential for any slice at their site without having to be a member of the slice
424 - Registry records for federated peers (defined in registries.xml, aggregates.xml) updated when sfa service is started
425 - 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
426 - Component manager does not install gid files if slice already has them
427 - Server automatically fetches and installs peer certificats (defined in registries/aggregates.xml) when service is restarted.
428 - fix credential verification exploit (verify that the trusted signer is a parent of the object it it signed)
429 - made it easier for root authorities to sign their sub's certifiacate using the sfa-ca.py (sfa/server/sfa-ca.py) tool
431 * Thu Jan 21 2010 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-10
432 - 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:
433 - - sfa-config-tty now has the same features like plc-config-tty
434 - - Contains code to support both urn and hrn
435 - - Cleaned up request_hash related stuff
436 - - SM, AM and Registry code is organized under respective managers
437 - - Site and Slice synchronization across federated aggregates
438 - - Script to generate sfa_component_config
440 * Fri Jan 15 2010 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-9
441 - sfa-config-tty now has the same features like plc-config-tty
442 - Contains code to support both urn and hrn
443 - Cleaned up request_hash related stuff
444 - SM, AM and Registry code is organized under respective managers
445 - Slice synchronization across federated aggregates
446 - some bugs are fixed
448 * Wed Jan 06 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-8
449 - checkpoint with fewer mentions of geni
451 * Tue Jan 05 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-7
453 - this is believed to pass the tests; among other things:
454 - reworked configuration based on the myplc config with xml skeleton (no more sfa_config)
456 * Mon Nov 16 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-6
459 - - Preliminary version of hash based authentication
460 - - Initial code for Component Manager
461 - - Authority structure is moved to /var/lib/sfa/
464 * Fri Oct 09 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-5
465 - Create_slice and get_resources methods are connected to sfatables.
466 - Other features include compatibility with RP, handling remote objects created as part of federation, preliminary version of sfatables, call tracability and logging.
468 * Wed Oct 07 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-4
469 - Bug fix on update and remove_peer_object methods
470 - Compatibility with RP, preliminiary version of sfatables, call tracability and logging
472 * Mon Oct 05 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-3
473 - 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)
475 * Fri Sep 18 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-2
476 - compatibility with RefreshPeer
477 - incremental mechanism for importing PLC records into SFA tables
478 - unified single database (still inside the underlying PLC db postgresql server)
479 - includes/improves call traceability and logging features
482 * Thu Sep 17 2009 Baris Metin <tmetin@sophia.inria.fr>
483 - added libxslt-python dependency
485 * Thu Sep 10 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-1
486 - unified single SFA database in the PLC-DB
487 - upcalls from PLCAPI to SFA methods
488 - SFA call traceability and logging features
490 - includes first/rough version of sfatables for policy implementation
492 * Thu Jul 23 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-6
493 - snapshot after the GEC5 demo
494 - should be the last tag set in the geniwrapper module, are we are now moving to the sfa module
496 * Wed Jul 15 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-5
497 - snapshot july 15 - has gone through superficial manual testing
498 - hopefully a good basis for gec5 demo
499 - multi-dir sfi client tested as well
501 * Wed Jul 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-4
502 - rename geniwrapper.spec into sfa.spec
504 * Wed Jul 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-3
505 - clean up in xmlrpc/soap, --protocol option to chose between both
506 - keyconvert packaged in /usr/bin, no /usr/share/keyconvert anymore
507 - hopefully more helpful context in case of crashes when importing
508 - bugfixes for using only /etc/sfa for site-dep files
509 - bugfixes in wsdl generation
511 * Mon Jul 06 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-2
512 - cleanup of the config area; no dependency to a PLC config anymore as sfa can be run in standalone
513 - config variables in sfa_config now start with SFA_ and not GENI_
514 - config.py can be loaded even with no config present
516 * Sun Jul 05 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-1
517 - first step for cleanup and reorganization
518 - mass-renaming from geni to sfa (some are still needed)
519 - sfa/trust implements the security architecture
521 * Wed Jul 01 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-7
522 - snapshot for reproducible builds
524 * Thu Jun 25 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-6
525 - snapshot for the convenience of alpha users
527 * Tue Jun 16 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-5
528 - build fix - keyconvert was getting installed in /usr/share/keyconvert/keyconvert
530 * Tue Jun 16 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-4
531 - ongoing work - snapshot for 4.3-rc9
533 * Wed Jun 03 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-3
536 * Sat May 30 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-2
537 - bugfixes - still a work in progress
539 * Fri May 18 2009 Baris Metin <tmetin@sophia.inria.fr>
543 %define module_current_branch 0.2