remove debug logging
[sfa.git] / sfa.spec
1 %define name sfa
2 %define version 2.1
3 %define taglevel 27
4
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()")}
8
9 Name: %{name}
10 Version: %{version}
11 Release: %{release}
12 Source0: %{name}-%{version}.tar.bz2
13 License: GPL
14 Group: Applications/System
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
16
17 # xxx TODO : package cron.d/
18
19 Vendor: PlanetLab
20 Packager: PlanetLab Central <support@planet-lab.org>
21 Distribution: PlanetLab
22 URL: %{SCMURL}
23
24 Summary: Server-side for SFA, generic implementation derived from PlanetLab 
25 Group: Applications/System
26 BuildRequires: make
27 BuildRequires: python-setuptools
28
29 # for the registry
30 Requires: postgresql >= 8.2, postgresql-server >= 8.2
31 Requires: postgresql-python
32 Requires: python-psycopg2
33 # f8=0.4 - f12=0.5 f14=0.6 f16=0.7
34 Requires: python-sqlalchemy
35 Requires: python-migrate
36 # the eucalyptus aggregate uses this module
37 Requires: python-xmlbuilder
38 # for uuidgen - used in db password generation
39 # on f8 this actually comes with e2fsprogs, go figure
40 Requires: util-linux-ng
41 # and the SFA libraries of course
42 Requires: sfa-common
43  
44 %package common
45 Summary: Python libraries for SFA, generic implementation derived from PlanetLab
46 Group: Applications/System
47 Requires: python >= 2.7
48 Requires: pyOpenSSL >= 0.7
49 Requires: m2crypto
50 Requires: python-dateutil
51 Requires: python-lxml
52 Requires: libxslt-python
53 Requires: python-ZSI
54 Requires: xmlsec1-openssl-devel
55
56 %package client
57 Summary: sfi, the SFA experimenter-side CLI
58 Group: Applications/System
59 Requires: sfa-common
60 Requires: pyOpenSSL >= 0.7
61
62 %package plc
63 Summary: the SFA layer around MyPLC
64 Group: Applications/System
65 Requires: sfa
66
67 %package flashpolicy
68 Summary: SFA support for flash clients
69 Group: Applications/System
70 Requires: sfa
71
72 %package federica
73 Summary: the SFA layer around Federica
74 Group: Applications/System
75 Requires: sfa
76
77 %package nitos
78 Summary: the SFA layer around NITOS
79 Group: Applications/System
80 Requires: sfa
81
82 %package senslab
83 Summary: the SFA layer around SensLab
84 Group: Applications/System
85 Requires: sfa
86
87 %package dummy
88 Summary: the SFA layer around a Dummy Testbed 
89 Group: Applications/System
90 Requires: sfa
91
92 %package sfatables
93 Summary: sfatables policy tool for SFA
94 Group: Applications/System
95 Requires: sfa
96
97 %package xmlbuilder
98 Summary: third-party xmlbuilder tool
99 Group: Applications/System
100 Provides: python-xmlbuilder
101
102 %package tests
103 Summary: unit tests suite for SFA
104 Group: Applications/System
105 Requires: sfa-common
106
107 %description 
108 This package provides the registry, aggregate manager and slice
109 managers for SFA.  In most cases it is advisable to install additional
110 package for a given testbed, like e.g. sfa-plc for a PlanetLab tesbed.
111
112 %description common
113 This package contains the python libraries for SFA both client and server-side.
114
115 %description client
116 This package provides the client side of the SFA API, in particular
117 sfi.py, together with other utilities.
118
119 %description plc
120 This package implements the SFA interface which serves as a layer
121 between the existing PlanetLab interfaces and the SFA API.
122
123 %description flashpolicy
124 This package provides support for adobe flash client applications.  
125
126 %description federica
127 The SFA driver for FEDERICA.
128
129 %description nitos
130 The SFA driver for NITOS.
131
132 %description senslab
133 The SFA driver for SensLab.
134
135 %description dummy
136 The SFA driver for a Dummy Testbed.
137
138 %description sfatables
139 sfatables is a tool for defining access and admission control policies
140 in an SFA network, in much the same way as iptables is for ip
141 networks. This is the command line interface to manage sfatables
142
143 %description xmlbuilder
144 This package contains the xmlbuilder python library, packaged for
145 convenience as it is not supported by fedora
146
147 %description tests
148 Provides some binary unit tests in /usr/share/sfa/tests
149
150 %prep
151 %setup -q
152
153 %build
154 make VERSIONTAG="%{version}-%{taglevel}" SCMURL="%{SCMURL}"
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158 make RPMVERSION="%{version}" RPMRELEASE="%{taglevel}" SCMURL="%{SCMURL}" DESTDIR="$RPM_BUILD_ROOT" install 
159
160 %clean
161 rm -rf $RPM_BUILD_ROOT
162
163 %files
164 /etc/init.d/sfa
165 %{_bindir}/sfa-start.py*
166 %{_bindir}/sfaadmin.py*
167 %{_bindir}/sfaadmin
168 %{_bindir}/keyconvert.py*
169 %{_bindir}/sfa-config-tty
170 %{_bindir}/sfa-config
171 %config /etc/sfa/default_config.xml
172 %config (noreplace) /etc/sfa/aggregates.xml
173 %config (noreplace) /etc/sfa/registries.xml
174 %config (noreplace) /etc/sfa/api_versions.xml
175 /usr/share/sfa/migrations
176 /usr/share/sfa/examples
177 /var/www/html/wsdl/*.wsdl
178
179 %files common
180 %{python_sitelib}/sfa/__init__.py*
181 %{python_sitelib}/sfa/trust
182 %{python_sitelib}/sfa/storage
183 %{python_sitelib}/sfa/util
184 %{python_sitelib}/sfa/server
185 %{python_sitelib}/sfa/methods
186 %{python_sitelib}/sfa/generic
187 %{python_sitelib}/sfa/managers
188 %{python_sitelib}/sfa/importer
189 %{python_sitelib}/sfa/rspecs
190 %{python_sitelib}/sfa/client
191
192 %files client
193 %config (noreplace) /etc/sfa/sfi_config
194 %{_bindir}/sfi*.py*
195 %{_bindir}/sfi
196 %{_bindir}/get*.py*
197 %{_bindir}/setRecord.py*
198 %{_bindir}/sfascan.py*
199 %{_bindir}/sfascan
200 %{_bindir}/sfadump.py*
201
202 %files plc
203 %defattr(-,root,root)
204 %{python_sitelib}/sfa/planetlab
205 %{python_sitelib}/sfa/openstack
206 /etc/sfa/pl.rng
207 /etc/sfa/credential.xsd
208 /etc/sfa/top.xsd
209 /etc/sfa/sig.xsd
210 /etc/sfa/xml.xsd
211 /etc/sfa/protogeni-rspec-common.xsd
212 /etc/sfa/topology
213
214 %files flashpolicy
215 %{_bindir}/sfa_flashpolicy.py*
216 /etc/sfa/sfa_flashpolicy_config.xml
217
218 %files federica
219 %{python_sitelib}/sfa/federica
220
221 %files nitos
222 %{python_sitelib}/sfa/nitos
223
224 %files senslab
225 %{python_sitelib}/sfa/iotlab
226
227 %files dummy
228 %{python_sitelib}/sfa/dummy
229
230 %files sfatables
231 /etc/sfatables/*
232 %{_bindir}/sfatables
233 %{python_sitelib}/sfatables
234
235 %files xmlbuilder
236 %{python_sitelib}/xmlbuilder
237
238 %files tests
239 %{_datadir}/sfa/tests
240
241 ### sfa installs the 'sfa' service
242 %post 
243 chkconfig --add sfa
244
245 %preun 
246 if [ "$1" = 0 ] ; then
247   /sbin/service sfa stop || :
248   /sbin/chkconfig --del sfa || :
249 fi
250
251 %postun
252 [ "$1" -ge "1" ] && { service sfa dbdump ; service sfa restart ; }
253
254 #### sfa-cm installs the 'sfa-cm' service
255 #%post cm
256 #chkconfig --add sfa-cm
257 #
258 #%preun cm
259 #if [ "$1" = 0 ] ; then
260 #   /sbin/service sfa-cm stop || :
261 #   /sbin/chkconfig --del sfa-cm || :
262 #fi
263 #
264 #%postun cm
265 #[ "$1" -ge "1" ] && service sfa-cm restart || :
266
267 %changelog
268 * Thu Oct 10 2013 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-27
269 - -- core
270 - Extend all versions of rspecs in order to support "links" and "channels" management methods
271 - several fixes aroung Rspecs in order to make the code usable by 3rd-party tools
272 - expose PL node tags in PGv2 and GENIv3 rspecs
273 - fix default slivers mgt in sfav1 rspecs
274 - fix SM and AM urn format in GetVersion
275 - fix sfaadmin.py to handle extra testbed-dependent info
276 - -- PlanetLab
277 - Better management of external Slices/Persons/Sites
278 - Importer ignores external Slices/Persons/Sites
279 - -- Nitos
280 - uniformize Leases management
281 - address channels with urn
282 - -- IotLab
283 - Renaming slab folders, files and variables to iotlab, the new name of the platform.
284 - New class ParsingResourcesFull in Oarrestapi file. Contain all the parsing nodes functions.
285 - Adding a mobile field to iotlab rspec and a mobility type attribute .
286 - Granularity changed to 60 sec.
287 - Fixing returned rspec in GetSlices and GetLeases.
288 - Corrections in import (importing nodes)
289 - More testis in script files under testbeds/iotlab/tests . Creation of Rspecs request models under r testbeds/iotlab/tests /tests_rspec
290 - Lease filtering by date added in GetLeases.
291 - Commenting and cleaning
292
293 * Tue Jun 18 2013 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-26
294 - -- core
295 - do start flash policy server when configured
296 - fix PLCInvalidArgument
297 - fix sfaadmin.py list
298 - fix version number of GENIv3 RSpec in sfi.py
299 - Add support of leases in PGv2 and GENIv3 RSpecs
300 - pldriver.delete_sliver removes leases as well
301 - -- senslab
302 - handling user creation in the senslab LDAP when a user from a federated testbed creates a lease using senslab resources
303 - changed lease granularity to 1 minute.
304 - add check to ensure the required expirement is of 10 min duration minimum
305 - fix sliver_status
306 - fix leases management
307 - fixed GetSlices, delete_sliver and DeleteJobs
308 - cleanup and code documention - removed unused functions and methods
309 - changed some return values to be easier to handle for the most part
310 - refactored slabimport module
311 - added a Jenkins configuration file to test automated deployment, which is not working yet
312
313 * Tue Feb 26 2013 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-25
314 - sfi and sfaadmin list now share the same display code for related objs
315 - support for advertising alternate api urls - for other API versions - api_versions.xml
316 - cleaned up GID class
317 - senslab: improved importer
318 - senslab: add site to SlabLocation from Location
319 - senslab: new class JsonPage
320 - senslab:  fix debian packaging
321 - federica: fix list_slices
322
323 * Tue Jan 29 2013 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-24
324 - merged the senslab driver from git.f-lab.fr
325 - merged the teagle flavour
326 - debian packaging should work much better
327 - added debug messsages for when db connection fails
328
329 * Sun Jan 20 2013 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-23
330 - minor fix in registry
331 - fix for sfi gid, use clientbootstrap
332 - support for debians and ubuntus (packaging and initscript)
333 - deprecated cm package altogether
334 - pl flavour, minor fix for tags
335 - various fixes for the dummy flavour
336
337 * Sun Dec 16 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-22
338 - suited (and required) to run with plcapi-5.1-5 b/c of changes to AddPerson
339 - tweaks in nitos importer
340 - improvements to sfaadmin check-gid
341
342 * Tue Dec 11 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-21
343 - PL importer: minor fixes for corner cases
344 - PL importer: also handles last_updated more accurately
345 - sfi update can be used to select a key among several in PL
346 - sfi add/update usage message fixes (no more record)
347 - new feature sfaadmin registry check_gid [-a]
348
349 * Mon Dec 03 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-20
350 - fix 2 major bugs in PL importer
351 - esp. wrt GID management against PLC key
352
353 * Wed Nov 28 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-19
354 - nicer sfi delegate, can handle multiple delegations and for authorities(pi) as well
355
356 * Wed Nov 28 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-18
357 - support fordelegation in sfaclientlib
358 - sfi delegate fixed
359 - other delegation-related sfi option trashed
360 - new config (based on ini format)
361 - new dummy driver and related package
362 - pl importer has more explicit error messages
363 - credential dump shows expiration
364
365 * Tue Oct 16 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-17
366 - bugfix in forwarding Resolve requests
367 - various fixes in the nitos driver wrt keys and users
368
369 * Mon Oct 01 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-16
370 - various tweaks for the nitos driver
371
372 * Wed Sep 26 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-15
373 - first stab at a driver for the NITOS/OMF testbed (sep. pkg)
374 - deeper cleanup of the data-dependencies between SFA and the testbed
375 - in particular, sfi create issues Resolve(details=False)
376 - for that purpose, Resolve exposes reg-* keys for SFA builtins
377 - which in turn allows sfi list to show PIs, slice members and keys
378 - NOTE: sfa-config-tty is known to be broken w/ less frequently used func's
379 - Shows stacktrace when startup fails (DB conn, wrong flavour, etc..)
380
381 * Mon Sep 17 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-14
382 - configurable data-dir (/var/lib/sfa)
383 - no more dependent on myplc-config
384 - some support for hrns with _ instead of \.
385 - fix for PL importing in presence of gpg keys
386 - DeleteSliver returns True instead of 1 in case of success
387 - Various improvements on the openstack/nova side
388 - new package sfa-nitos
389
390 * Wed Jul 11 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-13
391 - bugfix that prevented to call 'sfi create' - (was broken in sfa-2.1-12)
392 - sfi to remove expired credentials
393
394 * Tue Jul 10 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.1-12
395 - Update Openstack driver to support Essex release/
396 - Fix authority xrn bug.
397   
398
399 * Thu Jun 07 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-11
400 - review packaging - site-packages/planetlab now come with sfa-plc
401 - new package sfa-federica
402 - clientbin moved one step upwards
403
404 * Wed Jun 6 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.1-10
405 - fix bug in sfi update()
406
407 * Sun Jun 03 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-9
408 - fix broken sfa.util.xrn class for lowercase
409
410 * Sat Jun 02 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-8
411 - new 'void' generic_flavour for running in registry-only mode
412 - first shot at refactoring importers - probably needs more work
413 - openstack: various enhancements
414 - sfi interface to registry not based on xml files anymore
415 - sfi show sorts result on record key
416 - bugfix in sfa update on users with a pl-backed registry
417
418 * Mon May 14 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-7
419 - renamed sfa/plc into sfa/planetlab
420 - plxrn moved in sfa/planetlab as well
421 - bugfix for sfaadmin reg update --pi <>
422
423 * Sat May 12 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-6
424 - native data model now has a authority x user (PI) relationship
425 - no call to 'augment_records_with_testbed_info' for GetCredential
426 - which means, registry can now be used without an underlying testbed
427 - reviewed code about relationships b/w objects and related in pl driver
428 - reviewed PL import wrt roles and pis
429 - removed mentions to is_enabled in driver
430 - small changes in update_relation* in driver interface
431 - sfaadmin: can create authorities and attach pi users to them
432 - sfaadmin: categories can be abbreviated
433 - sfi list and sfaadmin list have a new -r/--recursive option
434 - this means that List now supports an (optional) 'options' argument
435 - sfi config can display config vars
436 - sfaadmin code in sfa.client + /usr/bin/sfaadmin shortcut
437
438 * Mon Apr 16 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.1-5
439 - make sync now supports vserver or lxc.
440 - Added slice expiration and login info to SliverStatus response. 
441 - Fixed CreateSliver bug that causes the method to fail if any node element is missing
442   the 'component_name' attribute.
443 - Fixed various bugs that caused SFA to generate invalid or incorrect sliver ids.
444   
445 * Tue Mar 20 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.1-4
446 - Introduced new administrative command line script, sfaadmin.py. Removed various single
447  purpose scripts and migrated their functionality into sfaadmin.py.
448 - Refactored Registry import scripts.
449 - Removed SQLAlchemy dependency from sfi.py.
450 - Fixed bugs in sfi.py
451 - Registry, Aggregate and SliceManager now support the OpenStack framework. 
452
453 * Fri Feb 24 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-3
454 - slice x researcher rel. in database,
455 - plimporter to maintain that, as well as user.email, and more robust
456 - ongoing draft for sfaadmin tool
457 - support for a federica driver
458 - support for a nova/euca driver
459 - no more sfa-clean-peer-records script
460
461 * Wed Feb 08 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-2
462 - registry database has user's keys and mail (known as v0 for migrate)
463 - pl importer properly maintains user's keys and mail
464 - pl driver now to handle 'role' when adding person record (exp.)
465 - first draft of federica driver with config section
466 - SFA_GENERIC_FLAVOUR in usual variables for sfa-config-tty
467 - plus, from master as of tag merged-in-sfa-2.1-2:
468 - disk_image revisited
469 - new nova_shell nova_driver & various tweaks for openstack
470
471 * Fri Jan 27 2012 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.1-1
472 - uses sqlalchemy and related migrate
473 - thorough migration and upgrade scheme
474 - sfa-import.py and sfa-nuke.py (no more -plc), uses FLAVOUR
475 - trashed dbinfo stuff in auth hierarchy
476 - data model still has little more than plain records
477 - checkpoint tag, not yet intended for release
478
479 * Wed Jan 25 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.0-10
480 - client: added -R --raw sfi cmdline option that displays raw server response.
481 - client: request GENI RSpec by default. 
482 - server: remove database dependencies from sfa.server.sfaapi.
483 - server: increased default credential lifetime to 31 days.
484 - bugfix: fixed bug in sfa.storage.record.SfaRecord.delete().
485 - bugfix: fixed server key path in sfa.server.sfa-clean-peer-records.
486 - bugfix: fixed bug in sfa.server.sfa-start.install_peer_certs(). 
487  
488 * Sat Jan 7 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.0-9
489 - bugfix: 'geni_api' should be in the top level struct, not the code struct
490 - bugfix: Display the correct host and port in 'geni_api_versions' field of the GetVersion
491           output returned by the Aggregate Manager.
492 - bugfix: sfa.util.sfatime now handles numeric string inputs correctly.
493 - bugfix: sfa.util.sfatime.datetime_to_epoch() returns integers instead of doubles.
494 - bugfix: Fixed bug that prevented the rspec parser from identifying an rspec's schema when
495           there is extra whitespace in the schemaLocation field.
496 - bugfix: Fixed bug that caused PlanetLab initscripts from showing up in the PGv2 and GENIv3 
497           advertisement rspecs.
498 - bugfix: <login> RSpec element should contain the 'username' attribute.
499 - bugfix: Use sfa.util.plxrn.PlXrn to parse the login_base (authority) out of a urn.      
500  
501 * Wed Jan 4 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.0-8
502 - bugfix: Fixed a bug in the sfa-import-plc.py script that caused the script to 
503   exit when it encountered a user with an invalid public key.
504 - server: imporved logging in sfa-import-plc.py
505  
506 * Tue Jan 3 2012 Tony Mack <tmack@cs.princeton.edu> - sfa-2.0-7
507 - bugfix: Fixed appending public keys in CreateSliver
508 - bugfix: Fixed various bugs in the PGv2/GENIv3 request, advertisement and manifest rspecs.
509 - client: -c --current option allows users to request the current/uncached rspec.
510 - server: Added 'geni_api_versions' field to GetVersion() output.
511 - server: Moved PLC specific code from sfa.importer.sfaImport to sfa.importer.sfa-import-plc.
512    
513 * Fri Dec 16 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.0-6
514 - bugfix: sfi was not sending call_id with ListResources to v2 servers
515 - SFA_API_DEBUG replaced with SFA_API_LOGLEVEL
516 - PlDriver / PlShell : PLCAPI methods now explicitly go to the shell
517
518 * Wed Dec 14 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.0-5
519 - client: sfi -a / -p deprecated (use -s instead)
520 - client: sfi cleaned up
521 - client: sfi has backward support for APIv1 aggregates again
522 - server: only APIv2 is supported and should be rather strict
523 - server: settings for turning on/off caching in sm or am
524 - server: plc-dependant code has moved from aggregate to pldriver
525 - server: driver interface extended accordingly
526
527 * Fri Dec 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.0-4
528 - screwed up previous tag
529
530 * Fri Dec 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.0-3
531 - client side revisited with a bootstrap library
532 - client side has a new source layout
533 - various (nasty) bug fixes wrt options and call_id
534
535 * Tue Dec 06 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.0-2
536 - various fixes in rspecs for sfav1&slice tags
537 - uses 'geni_rspec_version' and not just 'rspec_version'
538 - example flavour for the max testbed
539 - embryo for an sfa client library
540 - topology.py moved into plc
541 - sql: table is named records; record_types are enforced
542 - sql: table creation cleaned up
543
544 * Wed Nov 30 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-2.0-1
545 - cleaned up all references to SFA_*_TYPE in config
546 - enable cache at the aggregate by default
547 - registry now uses the driver in a sensible way (see managers/driver.py)
548 - slice manager supports sfav1/pgv2 neighbours
549 - get_key renamed into get_key_from_incoming_ip
550 - new sfa.storage module for record/table and all db-related stuff
551 - db schema in sfa.storage.sfa.sql
552 - init.d and cron.d move one step up
553 - cleaned up rspec/ directory
554 - add deps to pyopenssl and myplc-config
555 - start support for new API (return value)
556 - plc.remoteshell removed, use plshell instead
557 - plshell uses a 'capability' auth method whenever possible
558 - various tweaks in rspec elements
559 - made dependency on sfatables softer
560
561 * Thu Nov 24 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.1-5
562 - sfa should now be started *before* the initial import
563 - sfa to use its own database (default sfa) - can run without myplc
564 - server calls support optional 'options'
565 - client sends options in argument when needed
566 - fix infinite getattr recursion in elements/element.py
567 - error codes in line with geni
568
569 * Fri Nov 18 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.1-4
570 - fixed links and attributes in rspecs
571 - minor cleanup in the API methods, and more consistent names in manager methods
572
573 * Thu Nov 17 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.1-3
574 - ongoing refoactoring towards more genericity
575 - passes tests again although known issues remain with attributes/tags
576
577 * Mon Nov 07 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.1-2
578 - checkpoint tag: use SFA_GENERIC_FLAVOUR instead of SFA_*_TYPE
579 - improvements in the pgv2 rspecs
580 - driver separated from api
581 - code starts moving around where it belongs
582 - sfascan caches getversion across invokations
583 - vini topology extracted as a config file
584
585 * Fri Oct 28 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.1-1
586 - first support for protogeni rspecs is working
587 - vini no longer needs a specific manager
588 - refactoring underway towards more flexible/generic architecture
589
590 * Thu Sep 15 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-36
591 - Unicode-friendliness for user names with accents/special chars.
592 - Fix bug that could cause create the client to fail when calling CreateSliver for a slice that has the same hrn as a user.
593 - CreaetSliver no longer fails for users that have a capital letter in their URN.
594 - Fix bug in CreateSliver that generated incorrect login bases and email addresses for ProtoGENI requests. 
595 - Allow files with .gid, .pem or .crt extension to be loaded into the server's list of trusted certs.
596 - Fix bugs and missing imports     
597  
598
599 * Tue Aug 30 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-35
600 - new method record.get_field for sface
601
602 * Mon Aug 29 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-34
603 - new option -c to sfa-nuke-plc.py
604 - CreateSliver fixed for admin-only slice tags
605
606 * Wed Aug 24 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-32
607 - Fixed exploit that allowed an authorities to issue certs for objects that dont belong to them.
608 - Fixed holes in certificate verification logic.
609 - Aggregates no longer try to lookup slice and person records when processing CreateSliver requests. Clients are now required to specify this info in the 'users' argument. 
610 - Added 'boot_state' as an attribute of the node element in SFA rspec.
611 - Non authority certificates are marked as CA:FALSE.
612
613 * Tue Aug 16 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-32
614 - fix typo in sfa-1.0-31 tag.
615 - added CreateGid() Registry interface method.
616
617 * Tue Aug 16 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-31
618 - fix typo in sfa-1.0-30 tag
619
620 * Tue Aug 16 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-30
621 - Declare namespace and schema location in the credential.
622 - Fix bug that prevetend connections from timing out.
623 - Fix slice delegation.
624 - Add statistics to slicemaanger listresources/createsliver rspec.
625 - Added SFA_MAX_SLICE_RENEW which allows operators to configure the max ammout
626   of days a user can extend their slice expiration.
627 - CA certs are only issued to objects of type authority
628    
629 * Fri Aug 05 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-29
630 - tag 1.0-28 was broken due to typo in the changelog
631 - new class sfa/util/httpsProtocol.py that supports timeouts
632
633 * Thu Aug 4 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-28
634 - Resolved issue that caused sfa hold onto idle db connections.
635 - Fix bug that caused the registry to use the wrong type of credential.
636 - Support authority+sm type.
637 - Fix rspec merging bugs.
638 - Only load certs that have .gid extension from /etc/sfa/trusted_roots/
639 - Created a 'planetlab' extension to the ProtoGENI v2 rspec for supporting 
640  planetlab hosted initscripts using the <planetlab:initscript> tag  
641 - Can now handle extraneous whitespace in the rspec without failing.   
642  
643 * Fri Jul 8 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-27
644 - ProtoGENI v2 RSpec updates.
645 - Convert expiration timestamps with timezone info in credentials to utc.
646 - Fixed redundant logging issue. 
647 - Improved SliceManager and SFI client logging.
648 - Support aggregates that don't support the optional 'call_id' argument. 
649 - Only call get_trusted_certs() at aggreage interfaces that support the call.
650 - CreateSliver() now handles MyPLC slice attributes/tags.
651 - Cache now supports persistence.
652 - Hide whitelisted nodes.
653
654 * Tue Jun 21 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-26
655 - fixed issues with sup authority signing
656 - fixed bugs in remove_slivers and SliverStatus
657
658 * Thu Jun 16 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-25
659 - fix typo that prevented aggregates from operating properly
660
661 * Tue Jun 14 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-24
662 - load trusted certs into ssl context prior to handshake
663 - client's logfile lives in ~/.sfi/sfi.log
664
665 * Fri Jun 10 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-23
666 - includes a change on passphrases that was intended in 1.0-22
667
668 * Thu Jun 6 2011 Tony Mack <tmack@cs.princeton.edu> - sfa-1.0-22
669 - Added support for ProtoGENI RSpec v2
670  
671 * Wed Mar 16 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-21
672 - stable sfascan
673 - fix in initscript, *ENABLED tags in config now taken into account
674
675 * Fri Mar 11 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-20
676 - some commits had not been pushed in tag 19
677
678 * Fri Mar 11 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-19
679 - GetVersion should now report full URLs with path
680 - scansfa has nicer output and new syntax (entry URLs as args and not options)
681 - dos2unix'ed flash policy pill
682
683 * Wed Mar 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-18
684 - fix packaging again for f8
685
686 * Wed Mar 09 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-17
687 - fix packaging (apparently broken in 1.0-16)
688 - first working version of sfascan
689 - tweaks in GetVersion for exposing hrn(AM) and full set of aggregates(SM)
690 - deprecated the sfa_geni_aggregate config category
691
692 * Tue Mar 08 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-16
693 - Fix build problem
694 - First version of SFA scanner
695
696 * Mon Mar 07 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-15
697 - Add support for Flash clients using flashpolicy
698 - Fix problems with tag handling in RSpec
699
700 * Wed Mar 02 2011 Andy Bavier <acb@cs.princeton.edu> - sfa-1.0-14
701 - Modifications to the Eucalyptus Aggregate Manager
702 - Fixes for VINI RSpec
703 - Fix tag handling for PL RSpec
704 - Fix XML Schema ordering for <urn> element
705
706 * Tue Feb 01 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-13
707 - just set x509 version to 2
708
709 * Wed Jan 26 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-12
710 - added urn to the node area in rspecs
711 - conversion to urn now exports fqdn
712 - sfa-import-plc.py now creates a unique registry record for each SFA interface
713
714 * Thu Dec 16 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-11
715 - undo broken attempt for python-2.7
716
717 * Wed Dec 15 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-10
718 - SMs avoid duplicates for when call graph has dags;
719 - just based on network's name, when a duplicate occurs, one is just dropped
720 - does not try to merge/aggregate 2 networks
721 - also reviewed logging with the hope to fix the sfa startup msg:
722 - TypeError: not all arguments converted during string formatting
723
724 * Tue Dec 07 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-9
725 - verify credentials against xsd schema
726 - Fix SM to SM communication
727 - Fix bug in sfa.util.sfalogging, sfa-import.py now logs to sfa_import.log
728 - new setting session_key_path
729
730 * Tue Nov 09 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-8
731 - fix registry credential regeneration and handle expiration
732 - support for setting slice tags (min_role=user)
733 - client can display its own version: sfi.py version --local
734 - GetVersion to provide urn in addition to hrn
735 - more code uses plxrn vs previous helper functions
736 - import replaces '+' in email addresses with '_'
737
738 * Fri Oct 22 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-7
739 - fix GetVersion code_tag and add code_url
740
741 * Fri Oct 22 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-6
742 - extend GetVersion towards minimum federation introspection, and expose local tag
743
744 * Wed Oct 20 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-5
745 - fixed some legacy issues (list vs List)
746 - deprecated sfa.util.namespace for xrn and plxrn
747 - unit tests ship as the sfa-tests rpm
748
749 * Mon Oct 11 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-2
750 - deprecated old methods (e.g. List/list, and GetCredential/get_credential)
751 - NOTE:  get_(self_)credential both have type and hrn swapped when moving to Get(Self)Credential
752 - hrn-urn translations tweaked
753 - fixed 'service sfa status'
754 - sfa-nuke-plc has a -f/--file-system option to clean up /var/lib/authorities (exp.)
755 - started to repair sfadump - although not usable yet
756 - trust objects now have dump_string method that dump() actually prints
757 - unit tests under review
758 - logging cleanup ongoing (always safe to use sfalogging.sfa_logger())
759 - binaries now support -v or -vv to increase loglevel
760 - trashed obsolete sfa.util.client
761
762 * Mon Oct 04 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-1.0-1
763 - various bugfixes and cleanup, improved/harmonized logging
764
765 * Tue Sep 07 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-16
766 - truncate login base of external (ProtoGeni, etc) slices to 20 characters
767   to avoid returning a PLCAPI exception that might confuse users.
768 - Enhance PLC aggregate performace by using a better filter when querying SliceTags.      
769 - fix build errors.  
770
771 * Tue Aug 24 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-15
772 - (Architecture) Credential format changed to match ProtoGENI xml format
773 - (Architecture) All interfaces export a new set of methods that are compatible
774    with the ProtoGeni Aggregate spec. These new methods are considered a 
775    replacement  for the pervious methods exported by the interfaces. All 
776    previous methods are still exported and work as normal, but they are 
777    considered deprecated and will not be supported in future releases.  
778 - (Architecture) SFI has been updated to use the new interface methods.
779 - (Architecture) Changed keyconvet implementation from c to python.
780 - (Architecture) Slice Manager now attempts looks for a delegated credential
781   provided by the client before using its own server credential.
782 - (Archiceture) Slice Interface no longers stores cache of resources on disk. 
783   This cache now exists only in memory and is cleared when service is restarted
784   or cache lifetime is exceeded.  
785 - (Performance) SliceManager sends request to Aggregates in parallel instead 
786   of sequentially.
787 - (Bug fix) SFA tickets now support the new rspec format.
788 - (Bug fix) SFI only uses cahced credential if they aren't expired.
789 - (Bug fix) Cerdential delegation modified to work with new credential format.
790 - (Enhancement) SFI -a --aggregatge option now sends requests directly to the
791   Aggregate instead of relaying through the Slice Manager.
792 - (Enhancement) Simplified caching. Accociated a global cache instance with
793   the api handler on every new server request, making it easier to access the 
794   cache and use in more general ways.     
795
796 * Thu May 11 2010 Tony Mack <tmack@cs.princeton.edu> - sfa-0.9-11
797 - SfaServer now uses a pool of threads to handle requests concurrently
798 - sfa.util.rspec no longer used to process/manage rspecs (deprecated). This is now handled by sfa.plc.network and is not backwards compatible
799 - PIs can now get a slice credential for any slice at their site without having to be a member of the slice
800 - Registry records for federated peers (defined in registries.xml, aggregates.xml) updated when sfa service is started
801 - 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   
802 - Component manager does not install gid files if slice already has them  
803 - Server automatically fetches and installs peer certificats (defined in registries/aggregates.xml) when service is restarted.
804 - fix credential verification exploit (verify that the trusted signer is a parent of the object it it signed)
805 - made it easier for root authorities to sign their sub's certifiacate using the sfa-ca.py (sfa/server/sfa-ca.py) tool
806      
807 * Thu Jan 21 2010 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-10
808 - 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:
809 - - sfa-config-tty now has the same features like plc-config-tty
810 - - Contains code to support both urn and hrn
811 - - Cleaned up request_hash related stuff
812 - - SM, AM and Registry code is organized under respective managers
813 - - Site and Slice synchronization across federated aggregates
814 - - Script to generate sfa_component_config
815
816 * Fri Jan 15 2010 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-9
817 - sfa-config-tty now has the same features like plc-config-tty
818 - Contains code to support both urn and hrn
819 - Cleaned up request_hash related stuff
820 - SM, AM and Registry code is organized under respective managers
821 - Slice synchronization across federated aggregates
822 - some bugs are fixed
823
824 * Wed Jan 06 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-8
825 - checkpoint with fewer mentions of geni
826
827 * Tue Jan 05 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-7
828 - checkpointing
829 - this is believed to pass the tests; among other things:
830 - reworked configuration based on the myplc config with xml skeleton (no more sfa_config)
831
832 * Mon Nov 16 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-6
833 - This tag includes:
834 - - Sfatables
835 - - Preliminary version of hash based authentication
836 - - Initial code for Component Manager
837 - - Authority structure is moved to /var/lib/sfa/
838 - - some bug-fixes
839
840 * Fri Oct 09 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-5
841 - Create_slice and get_resources methods are connected to sfatables.
842 - Other features include compatibility with RP, handling remote objects created as part of federation, preliminary version of sfatables, call tracability and logging.
843
844 * Wed Oct 07 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-4
845 - Bug fix on update and remove_peer_object methods
846 - Compatibility with RP, preliminiary version of sfatables, call tracability and logging
847
848 * Mon Oct 05 2009 anil vengalil <avengali@sophia.inria.fr> - sfa-0.9-3
849 - 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)
850
851 * Fri Sep 18 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-2
852 - compatibility with RefreshPeer
853 - incremental mechanism for importing PLC records into SFA tables
854 - unified single database (still inside the underlying PLC db postgresql server)
855 - includes/improves call traceability and logging features
856 - several bug fixes
857
858 * Thu Sep 17 2009 Baris Metin <tmetin@sophia.inria.fr>
859 - added libxslt-python dependency
860
861 * Thu Sep 10 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - sfa-0.9-1
862 - unified single SFA database in the PLC-DB
863 - upcalls from  PLCAPI to SFA methods
864 - SFA call traceability and logging features
865 - many bug fixes
866 - includes first/rough version of sfatables for policy implementation
867
868 * Thu Jul 23 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-6
869 - snapshot after the GEC5 demo
870 - should be the last tag set in the geniwrapper module, are we are now moving to the sfa module
871
872 * Wed Jul 15 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-5
873 - snapshot july 15 - has gone through superficial manual testing
874 - hopefully a good basis for gec5 demo
875 - multi-dir sfi client tested as well
876
877 * Wed Jul 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-4
878 - rename geniwrapper.spec into sfa.spec
879
880 * Wed Jul 08 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-3
881 - clean up in xmlrpc/soap, --protocol option to chose between both
882 - keyconvert packaged in /usr/bin, no /usr/share/keyconvert anymore
883 - hopefully more helpful context in case of crashes when importing
884 - bugfixes for using only /etc/sfa for site-dep files
885 - bugfixes in wsdl generation
886
887 * Mon Jul 06 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-2
888 - cleanup of the config area; no dependency to a PLC config anymore as sfa can be run in standalone
889 - config variables in sfa_config now start with SFA_ and not GENI_
890 - config.py can be loaded even with no config present
891
892 * Sun Jul 05 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.8-1
893 - first step for cleanup and reorganization
894 - mass-renaming from geni to sfa (some are still needed)
895 - sfa/trust implements the security architecture
896
897 * Wed Jul 01 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-7
898 - snapshot for reproducible builds
899
900 * Thu Jun 25 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-6
901 - snapshot for the convenience of alpha users
902
903 * Tue Jun 16 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-5
904 - build fix - keyconvert was getting installed in /usr/share/keyconvert/keyconvert
905
906 * Tue Jun 16 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-4
907 - ongoing work - snapshot for 4.3-rc9
908
909 * Wed Jun 03 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-3
910 - various fixes
911
912 * Sat May 30 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - geniwrapper-0.2-2
913 - bugfixes - still a work in progress
914
915 * Fri May 18 2009 Baris Metin <tmetin@sophia.inria.fr>
916 - initial package
917
918
919 %define module_current_branch 0.2