sfa.git
13 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/sfa
Tony Mack [Mon, 4 Oct 2010 16:09:25 +0000 (12:09 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/sfa

13 years agocleaned up globals - except in the foreign plugins for eucalyptus and MAX
Thierry Parmentelat [Mon, 4 Oct 2010 15:42:11 +0000 (17:42 +0200)]
cleaned up globals - except in the foreign plugins for eucalyptus and MAX

13 years agoSetting tag sfa-1.0-1 sfa-1.0-1
Thierry Parmentelat [Mon, 4 Oct 2010 14:49:18 +0000 (16:49 +0200)]
Setting tag sfa-1.0-1
various bugfixes and cleanup, improved/harmonized logging

13 years agouse console_logger (stderr) for messages other than expected output
Thierry Parmentelat [Mon, 4 Oct 2010 13:32:17 +0000 (15:32 +0200)]
use console_logger (stderr) for messages other than expected output
attach local data to instances, not to class

13 years agotweaked logging
Thierry Parmentelat [Mon, 4 Oct 2010 12:28:27 +0000 (14:28 +0200)]
tweaked logging

13 years agothis doesn't looks good, but seems like giving a None hrn to checkCredentials will...
Barış Metin [Mon, 4 Oct 2010 10:32:51 +0000 (12:32 +0200)]
this doesn't looks good, but seems like giving a None hrn to checkCredentials will do the trick.

13 years agotry fixing all name errors in slice_manager_pl.py
Barış Metin [Mon, 4 Oct 2010 10:17:35 +0000 (12:17 +0200)]
try fixing  all name errors in slice_manager_pl.py

13 years agodon't know how to fix fix this one - just reverted as my attempt was incorrect
Thierry Parmentelat [Sat, 2 Oct 2010 18:57:35 +0000 (20:57 +0200)]
don't know how to fix fix this one - just reverted as my attempt was incorrect

13 years agoconsole has a different formatter
Thierry Parmentelat [Sat, 2 Oct 2010 06:54:16 +0000 (08:54 +0200)]
console has a different formatter

13 years agofixes
Thierry Parmentelat [Sat, 2 Oct 2010 06:53:28 +0000 (08:53 +0200)]
fixes

13 years agofix log
Barış Metin [Fri, 1 Oct 2010 08:34:55 +0000 (10:34 +0200)]
fix log

13 years agoadd .gitignore
Barış Metin [Fri, 1 Oct 2010 08:21:17 +0000 (10:21 +0200)]
add .gitignore

13 years agofinish cleaning with util.report
Thierry Parmentelat [Fri, 1 Oct 2010 07:10:06 +0000 (09:10 +0200)]
finish cleaning with util.report

13 years agoops (don't know what I was thinking)...
Barış Metin [Thu, 30 Sep 2010 20:22:49 +0000 (22:22 +0200)]
ops (don't know what I was thinking)...

13 years agouse sfaImporter.logger.info
Barış Metin [Thu, 30 Sep 2010 20:05:11 +0000 (22:05 +0200)]
use sfaImporter.logger.info

13 years agoconsole_logger defined for the client side
Thierry Parmentelat [Thu, 30 Sep 2010 16:06:33 +0000 (18:06 +0200)]
console_logger defined for the client side
turn on verbosity if SFA_API_DEBUG is set

13 years agoadd 'OPTIONS=-v' in your /etc/sfa/sfa_config to get debug messages in log files
Thierry Parmentelat [Thu, 30 Sep 2010 12:45:58 +0000 (14:45 +0200)]
add 'OPTIONS=-v' in your /etc/sfa/sfa_config to get debug messages in log files

13 years ago* tried to put some sense in the way things get logged, at least on server-side for now
Thierry Parmentelat [Thu, 30 Sep 2010 12:36:19 +0000 (14:36 +0200)]
* tried to put some sense in the way things get logged, at least on server-side for now
/var/log/sfa.log
/var/log/sfa_import.log
/var/log/htppd/sfa_access_log
* please use sfalogging objects as far as possible, deprecated sfa.util.debug and sfa.util.report

13 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/sfa
Tony Mack [Tue, 28 Sep 2010 20:58:30 +0000 (16:58 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/sfa

13 years agourn_to_hrn() is no longer lossy. urn_to_hrn() escapes '.' instead of replacing it...
Tony Mack [Tue, 28 Sep 2010 20:57:52 +0000 (16:57 -0400)]
urn_to_hrn() is no longer lossy. urn_to_hrn() escapes '.' instead of replacing it. Made hrn_to_urn() conversion consistent. hrn_to_urn() unescapes any escaped '.'. hrn_to_pl_*() methods completely remove escaped '.'

13 years agourn_to_hrn() is no longer lossy. urn_to_hrn() escapes '.' instead of replacing it...
Tony Mack [Tue, 28 Sep 2010 20:56:05 +0000 (16:56 -0400)]
urn_to_hrn() is no longer lossy. urn_to_hrn() escapes '.' instead of replacing it. Made hrn_to_urn() conversion consistent. hrn_to_urn() unescapes any escaped '.'. hrn_to_pl_*() methods completely remove escaped '.'

13 years agoimprove server-side logging of exceptions
Thierry Parmentelat [Tue, 28 Sep 2010 16:07:13 +0000 (18:07 +0200)]
improve server-side logging of exceptions

13 years agopreun scriplets more robust, otherwise may prevent uninstall
Thierry Parmentelat [Tue, 28 Sep 2010 12:11:15 +0000 (14:11 +0200)]
preun scriplets more robust, otherwise may prevent uninstall

13 years agoMerge remote branch 'origin/master'
Thierry Parmentelat [Tue, 28 Sep 2010 08:35:36 +0000 (10:35 +0200)]
Merge remote branch 'origin/master'

13 years agoexclude .git when making tags
Thierry Parmentelat [Tue, 28 Sep 2010 08:07:07 +0000 (10:07 +0200)]
exclude .git when making tags

13 years agofix typo
Tony Mack [Mon, 27 Sep 2010 19:22:06 +0000 (15:22 -0400)]
fix typo

13 years agoget_gid_caller() belongs to Credential object
Tony Mack [Mon, 27 Sep 2010 19:17:43 +0000 (15:17 -0400)]
get_gid_caller() belongs to Credential object

13 years agoremove all refrences to self
Tony Mack [Mon, 27 Sep 2010 19:10:23 +0000 (15:10 -0400)]
remove all refrences to self

13 years ago=! should be !=
Tony Mack [Mon, 27 Sep 2010 18:44:33 +0000 (14:44 -0400)]
=! should be !=

13 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/sfa
Tony Mack [Mon, 27 Sep 2010 18:43:11 +0000 (14:43 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/sfa

13 years agoProtoGeni slices may have special characters that need to be filtered out
Tony Mack [Mon, 27 Sep 2010 18:42:40 +0000 (14:42 -0400)]
ProtoGeni slices may have special characters that need to be filtered out

13 years agoProtoGeni slice names have special characters. Filter these out using re.sub()
Tony Mack [Mon, 27 Sep 2010 16:54:04 +0000 (12:54 -0400)]
ProtoGeni slice names have special characters. Filter these out using re.sub()

13 years agocosmetic, exclude git files instead of CVS files
Thierry Parmentelat [Thu, 23 Sep 2010 14:29:35 +0000 (16:29 +0200)]
cosmetic, exclude git files instead of CVS files

13 years agocorsmetic
Thierry Parmentelat [Fri, 24 Sep 2010 16:27:51 +0000 (18:27 +0200)]
corsmetic

13 years agobump to 1.0
Thierry Parmentelat [Mon, 27 Sep 2010 14:38:54 +0000 (16:38 +0200)]
bump to 1.0

13 years agorebind stuff in reverse order (wrt unbind),
Thierry Parmentelat [Fri, 24 Sep 2010 16:29:19 +0000 (18:29 +0200)]
rebind stuff in reverse order (wrt unbind),
and even more paranoid, to be sure that rebind really does the job

13 years agouninstall to stop/unregister running services
Thierry Parmentelat [Mon, 27 Sep 2010 12:56:30 +0000 (14:56 +0200)]
uninstall to stop/unregister running services

13 years agofix sfatables on slice create
Andy Bavier [Fri, 24 Sep 2010 15:47:02 +0000 (11:47 -0400)]
fix sfatables on slice create

13 years agotweak taglevel manually
Thierry Parmentelat [Thu, 23 Sep 2010 13:38:45 +0000 (15:38 +0200)]
tweak taglevel manually

13 years agoadded --delegate option for Slice Manager methods
Tony Mack [Tue, 21 Sep 2010 17:06:14 +0000 (13:06 -0400)]
added --delegate option for Slice Manager methods

13 years agoadded get_errors() method
Tony Mack [Tue, 21 Sep 2010 16:37:06 +0000 (12:37 -0400)]
added get_errors() method

13 years agono longer use caller's plauth
Tony Mack [Mon, 20 Sep 2010 19:38:46 +0000 (15:38 -0400)]
no longer use caller's plauth

13 years agoupdate arguments for get_rspec()
Tony Mack [Mon, 20 Sep 2010 19:29:40 +0000 (15:29 -0400)]
update arguments for get_rspec()

13 years agoupdate get_rspec() to accept creds, and options params
Tony Mack [Mon, 20 Sep 2010 19:00:53 +0000 (15:00 -0400)]
update get_rspec() to accept creds, and options params

13 years agofix urn for vini internet2 sites
Tony Mack [Mon, 20 Sep 2010 17:36:07 +0000 (13:36 -0400)]
fix urn for vini internet2 sites

13 years agofix bug in urn_to_hrn()
Tony Mack [Mon, 20 Sep 2010 16:35:46 +0000 (12:35 -0400)]
fix bug in urn_to_hrn()

13 years agoattempt to fix 'make sync'
Thierry Parmentelat [Mon, 20 Sep 2010 14:40:50 +0000 (16:40 +0200)]
attempt to fix 'make sync'

13 years agothis is expected to be a binary file, set to executable to ease manual install
Thierry Parmentelat [Mon, 20 Sep 2010 14:40:14 +0000 (16:40 +0200)]
this is expected to be a binary file, set to executable to ease manual install

13 years agomerged in master the change from 0.9-17 to 0.9-18 :
Thierry Parmentelat [Mon, 20 Sep 2010 14:09:50 +0000 (16:09 +0200)]
merged in master the change from 0.9-17 to 0.9-18 :
protected & reviewed UnBind/Bind calls
and hacked client to not pass delegation credentials (tmp)

13 years agofix bug in urn_to_hrn()
Tony Mack [Fri, 17 Sep 2010 00:29:41 +0000 (00:29 +0000)]
fix bug in urn_to_hrn()

13 years agocheck for certificate expiration
Tony Mack [Tue, 14 Sep 2010 19:55:40 +0000 (19:55 +0000)]
check for certificate expiration

13 years agoadded CertExpired fault
Tony Mack [Tue, 14 Sep 2010 19:37:37 +0000 (19:37 +0000)]
added CertExpired fault

13 years agoprevent infinite loop
Tony Mack [Wed, 8 Sep 2010 19:09:57 +0000 (19:09 +0000)]
prevent infinite loop

13 years agoadd helper methods to rspec helper
Barış Metin [Wed, 8 Sep 2010 17:30:18 +0000 (17:30 +0000)]
add helper methods to rspec helper

13 years agofix NameError in ComponentAPI.get_credential
Tony Mack [Tue, 7 Sep 2010 21:35:41 +0000 (21:35 +0000)]
fix NameError in ComponentAPI.get_credential

13 years agoConstructs of the form '%if %{?macro} == foo' are no longer accepted, and yield foo...
Tony Mack [Tue, 7 Sep 2010 19:02:29 +0000 (19:02 +0000)]
Constructs of the form '%if %{?macro} == foo' are no longer accepted, and yield foo.spec:12: parseExpressionBoolean returns -1
errors

13 years agosetting tag sfa-0.9-16 sfa-1.0-0
Tony Mack [Tue, 7 Sep 2010 18:24:17 +0000 (18:24 +0000)]
setting tag sfa-0.9-16

13 years agomerge from geni branch, truncate login base of geni slices to 20 characters
Tony Mack [Tue, 7 Sep 2010 15:48:29 +0000 (15:48 +0000)]
merge from geni branch, truncate login base of geni slices to 20 characters

13 years agoguard lookupSliceTag calls. as we ignore some tag types now maybe it's better not...
Barış Metin [Tue, 7 Sep 2010 14:26:07 +0000 (14:26 +0000)]
guard lookupSliceTag calls. as we ignore some tag types now maybe it's better not to raise an exception when the tag is not found.

13 years agofilter-out tags and fields from GetSliceTags plcapi call.
Barış Metin [Tue, 7 Sep 2010 13:21:04 +0000 (13:21 +0000)]
filter-out tags and fields from GetSliceTags plcapi call.
On PLE, this brings the call to 3 seconds from 45 seconds.

13 years agoMake PLCAPI calls as user in Aggregate Manager
Andy Bavier [Fri, 3 Sep 2010 17:53:29 +0000 (17:53 +0000)]
Make PLCAPI calls as user in Aggregate Manager

13 years agoremove ResolveGeni
Tony Mack [Wed, 1 Sep 2010 14:30:59 +0000 (14:30 +0000)]
remove ResolveGeni

13 years agoremoving get_gei_aggregates
Tony Mack [Tue, 31 Aug 2010 22:22:43 +0000 (22:22 +0000)]
removing get_gei_aggregates

13 years agoincrease tag level
Tony Mack [Mon, 30 Aug 2010 19:13:18 +0000 (19:13 +0000)]
increase tag level

13 years agofix NameError
Tony Mack [Wed, 25 Aug 2010 20:30:21 +0000 (20:30 +0000)]
fix NameError

13 years agoComponentAPI need sfa.util.xmlrpcprotocol to be imported
Tony Mack [Wed, 25 Aug 2010 19:35:06 +0000 (19:35 +0000)]
ComponentAPI need sfa.util.xmlrpcprotocol to be imported

13 years agoSfaTable module depends on pdg (postgres) package being installed. Move the import...
Tony Mack [Wed, 25 Aug 2010 19:31:29 +0000 (19:31 +0000)]
SfaTable module depends on pdg (postgres) package being installed. Move the import into the methods that needs access to this libaray so that this module can be imported/used on systems that dont haave postgres installed

13 years agono need to import sfa.trust.auth.Auth here
Tony Mack [Wed, 25 Aug 2010 16:57:40 +0000 (16:57 +0000)]
no need to import sfa.trust.auth.Auth here

13 years agono need for geni_aggregates.xml
Tony Mack [Tue, 24 Aug 2010 18:29:08 +0000 (18:29 +0000)]
no need for geni_aggregates.xml

13 years agouse new methods
Tony Mack [Tue, 24 Aug 2010 17:39:22 +0000 (17:39 +0000)]
use new methods

13 years agouse new methods.
Tony Mack [Tue, 24 Aug 2010 17:35:12 +0000 (17:35 +0000)]
use new methods.

13 years agono more separate interface for geni aggregate
Tony Mack [Tue, 24 Aug 2010 16:53:40 +0000 (16:53 +0000)]
no more separate interface for geni aggregate

13 years agoupdated
Tony Mack [Tue, 24 Aug 2010 16:46:44 +0000 (16:46 +0000)]
updated

13 years agoreplace origin_hrn param with creds param
Tony Mack [Tue, 24 Aug 2010 15:24:49 +0000 (15:24 +0000)]
replace origin_hrn param with creds param

13 years agoset the peer_id once the slice is verified
Tony Mack [Tue, 24 Aug 2010 00:44:03 +0000 (00:44 +0000)]
set the peer_id once the slice is verified

13 years agoimport copy.deepcopy
Tony Mack [Mon, 23 Aug 2010 21:49:55 +0000 (21:49 +0000)]
import copy.deepcopy

13 years agofix NameError (cred should be credential)
Tony Mack [Mon, 23 Aug 2010 21:43:16 +0000 (21:43 +0000)]
fix NameError (cred should be credential)

13 years agono need to get origin hrn here
Tony Mack [Mon, 23 Aug 2010 21:36:46 +0000 (21:36 +0000)]
no need to get origin hrn here

13 years agofix NameError (cred should be credential)
Tony Mack [Mon, 23 Aug 2010 18:58:18 +0000 (18:58 +0000)]
fix NameError (cred should be credential)

13 years agothere should be no self argument in filter_creds_by_caller() argument
Tony Mack [Mon, 23 Aug 2010 18:54:57 +0000 (18:54 +0000)]
there should be no self argument in filter_creds_by_caller() argument

13 years agopass a delegated cred in the list of creds when calling aggregate/slice manager opera...
Tony Mack [Sun, 22 Aug 2010 17:03:13 +0000 (17:03 +0000)]
pass a delegated cred in the list of creds when calling aggregate/slice manager operations

13 years agoPass all creds to the interface managers because they need access to any potential...
Tony Mack [Sun, 22 Aug 2010 16:50:04 +0000 (16:50 +0000)]
Pass all creds to the interface managers because they need access to any potential delegated creds, which wont be listed in valid_creds.

13 years agolook for a delegate cred from user before using server's cred
Tony Mack [Sun, 22 Aug 2010 16:45:35 +0000 (16:45 +0000)]
look for a delegate cred from user before using server's cred

13 years agogetDelegatedCred returns a single credential or None, not a list of credentials.
Tony Mack [Sat, 21 Aug 2010 01:04:41 +0000 (01:04 +0000)]
getDelegatedCred returns a single credential or None, not a list of credentials.

13 years agoadded getDelegatedCred() method
Tony Mack [Sat, 21 Aug 2010 01:00:38 +0000 (01:00 +0000)]
added getDelegatedCred() method

13 years agomoved filter_creds_by_caller() from auth.py to credential.py
Tony Mack [Fri, 20 Aug 2010 22:29:27 +0000 (22:29 +0000)]
moved filter_creds_by_caller() from auth.py to credential.py

13 years agoadded filter_cred_by_caller() method
Tony Mack [Fri, 20 Aug 2010 22:27:31 +0000 (22:27 +0000)]
added filter_cred_by_caller() method

13 years agofix bug where slicemgr will skip local interface when the calling cred is delegated...
Tony Mack [Thu, 19 Aug 2010 22:12:20 +0000 (22:12 +0000)]
fix bug where slicemgr will skip local interface when the calling cred is delegated to the slice manager

13 years agoshould be passing the caller's gid not the delegee's gid to Credential.set_issuer_key...
Tony Mack [Thu, 19 Aug 2010 19:26:09 +0000 (19:26 +0000)]
should be passing the caller's gid not the delegee's gid to Credential.set_issuer_keys() when delegating

13 years ago mktime should be time.mktime
Tony Mack [Thu, 19 Aug 2010 17:06:25 +0000 (17:06 +0000)]
 mktime should be time.mktime

13 years agoslice manager sets 'geni_compressed' option to False when calling ListResources at...
Tony Mack [Thu, 19 Aug 2010 17:05:17 +0000 (17:05 +0000)]
slice manager sets 'geni_compressed' option to False when calling ListResources at aggregates.

13 years agocred should be delegated to the user's authority's authority (root or sub authority)
Tony Mack [Tue, 17 Aug 2010 21:53:56 +0000 (21:53 +0000)]
cred should be delegated to the user's authority's authority (root or sub authority)

13 years agohonor the hrn argument
Tony Mack [Tue, 17 Aug 2010 18:08:52 +0000 (18:08 +0000)]
honor the hrn argument

13 years agothe result of get_aggregates() has changed
Tony Mack [Tue, 17 Aug 2010 18:07:23 +0000 (18:07 +0000)]
the result of get_aggregates() has changed

13 years agomake sure to honor the xrn argument
Tony Mack [Tue, 17 Aug 2010 18:00:43 +0000 (18:00 +0000)]
make sure to honor the xrn argument

13 years agodelegate_cred comes from self
Tony Mack [Mon, 16 Aug 2010 21:47:14 +0000 (21:47 +0000)]
delegate_cred comes from self

13 years agoget_aggregates and get_registries returns full interface details (urn, hrn, url,...
Tony Mack [Mon, 16 Aug 2010 21:44:19 +0000 (21:44 +0000)]
get_aggregates and get_registries returns full interface details (urn, hrn, url, address, port)

13 years agoshould compress the 'filtered_rspec'
Tony Mack [Mon, 16 Aug 2010 17:06:39 +0000 (17:06 +0000)]
should compress the 'filtered_rspec'
and not the 'rspec' variable

13 years agoadded get_gid to sfi
Tony Mack [Mon, 16 Aug 2010 17:05:29 +0000 (17:05 +0000)]
added get_gid to sfi

13 years agoadded get_registry, getCredential, clean_key_cred() methods to ComponentAPI class
Tony Mack [Thu, 12 Aug 2010 02:21:28 +0000 (02:21 +0000)]
added get_registry, getCredential, clean_key_cred() methods to ComponentAPI class