sfa.git
14 years agoThis is hopefully the first version of sfatables that basically works.
Sapan Bhatia [Mon, 26 Oct 2009 15:25:15 +0000 (15:25 +0000)]
This is hopefully the first version of sfatables that basically works.

14 years agoOnly load those arguments into the target that have been configured in the rule defin...
Sapan Bhatia [Mon, 26 Oct 2009 15:20:39 +0000 (15:20 +0000)]
Only load those arguments into the target that have been configured in the rule definiton.

14 years agoMatches operate on the request context.
Sapan Bhatia [Mon, 26 Oct 2009 15:00:53 +0000 (15:00 +0000)]
Matches operate on the request context.

14 years agoremote soapprotocol import
Tony Mack [Mon, 26 Oct 2009 15:00:48 +0000 (15:00 +0000)]
remote soapprotocol import

14 years agoadded usual variables
Tony Mack [Mon, 26 Oct 2009 14:57:40 +0000 (14:57 +0000)]
added usual variables

14 years agoAdded separate contexts for matches and targets, instead of having combined contexts...
Sapan Bhatia [Mon, 26 Oct 2009 14:52:06 +0000 (14:52 +0000)]
Added separate contexts for matches and targets, instead of having combined contexts for rules.

14 years agoRemove both match and target contexts after a rule is done.
Sapan Bhatia [Mon, 26 Oct 2009 14:49:21 +0000 (14:49 +0000)]
Remove both match and target contexts after a rule is done.

14 years agoSet up different namespaces for match and target arguments.
Sapan Bhatia [Mon, 26 Oct 2009 14:48:47 +0000 (14:48 +0000)]
Set up different namespaces for match and target arguments.

14 years agoContinuation of bug fixes and integration-related fixes.
Sapan Bhatia [Mon, 26 Oct 2009 14:35:09 +0000 (14:35 +0000)]
Continuation of bug fixes and integration-related fixes.

14 years agoWe need post processing after every rule, then a final postprocessing step once all...
Sapan Bhatia [Mon, 26 Oct 2009 14:26:20 +0000 (14:26 +0000)]
We need post processing after every rule, then a final postprocessing step once all of the rules have been applied.

14 years agoonly allow authority creds if oject_hrn in pi list
Tony Mack [Mon, 26 Oct 2009 14:16:42 +0000 (14:16 +0000)]
only allow authority creds if oject_hrn in pi list

14 years agoContinuation - adding request and rule contexts to rspecs currently being processed.
Sapan Bhatia [Mon, 26 Oct 2009 14:12:19 +0000 (14:12 +0000)]
Continuation - adding request and rule contexts to rspecs currently being processed.

14 years agoInsert the current context into the rspec for the rules to operate.
Sapan Bhatia [Mon, 26 Oct 2009 13:26:53 +0000 (13:26 +0000)]
Insert the current context into the rspec for the rules to operate.

14 years agoBug fixes and cleanups
Sapan Bhatia [Mon, 26 Oct 2009 03:15:57 +0000 (03:15 +0000)]
Bug fixes and cleanups

14 years agoLooks like I hadn't committed this file previously.
Sapan Bhatia [Mon, 26 Oct 2009 02:41:40 +0000 (02:41 +0000)]
Looks like I hadn't committed this file previously.

14 years agoLive and learn. Some properties in this code were being instantiated as class propert...
Sapan Bhatia [Sun, 25 Oct 2009 00:13:27 +0000 (00:13 +0000)]
Live and learn. Some properties in this code were being instantiated as class properties, not object
properties.

14 years agoLatest updated from Srini:
Sapan Bhatia [Sat, 24 Oct 2009 20:47:29 +0000 (20:47 +0000)]
Latest updated from Srini:

Hi Sapan
Finally, I got everything to work fine. The two main issues I realized
late were that 1) the wsdl has changed to include the request_hash,
and 2) the SOAPpy module needs to be installed for SOAP to work in the
SFA server. All good now.

Please check in the attached updated version of the RSpec manager.

Thanks
Srini.

14 years agosend output to /dev/null
Tony Mack [Sat, 24 Oct 2009 03:23:22 +0000 (03:23 +0000)]
send output to /dev/null

14 years agoremove debugging output
Tony Mack [Sat, 24 Oct 2009 03:22:59 +0000 (03:22 +0000)]
remove debugging output

14 years agoaccept logger argument
Tony Mack [Fri, 23 Oct 2009 22:43:25 +0000 (22:43 +0000)]
accept logger argument

14 years agodefine these variables in the get_sfa_logger() method
Tony Mack [Fri, 23 Oct 2009 22:40:30 +0000 (22:40 +0000)]
define these variables in the get_sfa_logger() method

14 years agosend output to logfile
Tony Mack [Fri, 23 Oct 2009 22:40:05 +0000 (22:40 +0000)]
send output to logfile

14 years agorequest hash argument is optional for now
Tony Mack [Fri, 23 Oct 2009 15:28:03 +0000 (15:28 +0000)]
request hash argument is optional for now

14 years agopass request_hash argument to interface calls
Tony Mack [Fri, 23 Oct 2009 14:54:53 +0000 (14:54 +0000)]
pass request_hash argument to interface calls

14 years agopass request_hash argument to sfa interface calls
Tony Mack [Fri, 23 Oct 2009 14:45:56 +0000 (14:45 +0000)]
pass request_hash argument to sfa interface calls

14 years agoapi.getCredential should always return a string not an object
Tony Mack [Fri, 23 Oct 2009 14:45:19 +0000 (14:45 +0000)]
api.getCredential should always return a string not an object

14 years agopassrequest_hash argument to sfa interface calls
Tony Mack [Fri, 23 Oct 2009 14:44:44 +0000 (14:44 +0000)]
passrequest_hash argument to sfa interface calls

14 years agouse record['name'] not record.get_name()
Tony Mack [Fri, 23 Oct 2009 02:37:09 +0000 (02:37 +0000)]
use record['name'] not record.get_name()

14 years agoget_user_cred(), get_auth_cred() and get_slice_cred() all return objects...for now...
Tony Mack [Fri, 23 Oct 2009 02:36:25 +0000 (02:36 +0000)]
get_user_cred(), get_auth_cred() and get_slice_cred() all return objects...for now. will change this to strings later

14 years agoOptimize the rule processing function to parse only once, then manipulate the parsed...
Sapan Bhatia [Fri, 23 Oct 2009 02:34:30 +0000 (02:34 +0000)]
Optimize the rule processing function to parse only once, then manipulate the parsed version.

14 years agowe were better off creating the record at sfa after it has been created at plc. That...
Tony Mack [Fri, 23 Oct 2009 01:49:16 +0000 (01:49 +0000)]
we were better off creating the record at sfa after it has been created at plc. That way we dont end up with a record in sfa and no record in plc

14 years agono longer using geniclient, pass string arguments not objecs when calling aggregate...
Tony Mack [Fri, 23 Oct 2009 01:30:35 +0000 (01:30 +0000)]
no longer using geniclient, pass string arguments not objecs when calling aggregate.get_resources

14 years agono longer using geniclient, call registry.get_credential with string_arguments, not...
Tony Mack [Fri, 23 Oct 2009 01:28:52 +0000 (01:28 +0000)]
no longer using geniclient, call registry.get_credential with string_arguments, not objects

14 years agochecking this method back in. We missed you
Tony Mack [Fri, 23 Oct 2009 00:09:54 +0000 (00:09 +0000)]
checking this method back in. We missed you

14 years agoverifyPeerCert() now requires 2 arguments (certtificate and gid). Update auth.check...
Tony Mack [Fri, 23 Oct 2009 00:09:01 +0000 (00:09 +0000)]
verifyPeerCert() now requires 2 arguments (certtificate and gid). Update auth.check() so that it calls auth.verifyPeerCert() with the correct arguments

14 years agoadded get_self_credential method
Tony Mack [Fri, 23 Oct 2009 00:07:34 +0000 (00:07 +0000)]
added get_self_credential method

14 years agoexplicitly call get_self_credential with the cliet cert as in argument instead of...
Tony Mack [Fri, 23 Oct 2009 00:07:06 +0000 (00:07 +0000)]
explicitly call get_self_credential with the cliet cert as in argument instead of get_credential with None as an arguemnt when getting a user is getting their own credential

14 years agoGet basic rules that operate on hrns working again.
Sapan Bhatia [Thu, 22 Oct 2009 20:51:57 +0000 (20:51 +0000)]
Get basic rules that operate on hrns working again.

14 years agoCleaning up...
Sapan Bhatia [Thu, 22 Oct 2009 18:52:56 +0000 (18:52 +0000)]
Cleaning up...

14 years agoCleanup...
Sapan Bhatia [Thu, 22 Oct 2009 18:51:06 +0000 (18:51 +0000)]
Cleanup...

14 years agoCleaning up.
Sapan Bhatia [Thu, 22 Oct 2009 18:42:07 +0000 (18:42 +0000)]
Cleaning up.

14 years agodont delete vini's interent2 placeholder record
Tony Mack [Fri, 16 Oct 2009 21:27:47 +0000 (21:27 +0000)]
dont delete vini's interent2 placeholder record

14 years agoii should be i2
Tony Mack [Fri, 16 Oct 2009 21:22:07 +0000 (21:22 +0000)]
ii should be i2

14 years agoexisting_record should be existing_records
Tony Mack [Fri, 16 Oct 2009 21:13:56 +0000 (21:13 +0000)]
existing_record should be existing_records

14 years agoimport_site() returns the site hrn
Tony Mack [Fri, 16 Oct 2009 21:11:46 +0000 (21:11 +0000)]
import_site() returns the site hrn

14 years agoMissed one...
Andy Bavier [Fri, 16 Oct 2009 15:26:16 +0000 (15:26 +0000)]
Missed one...

14 years agolooks the same to me
Tony Mack [Fri, 16 Oct 2009 03:58:39 +0000 (03:58 +0000)]
looks the same to me

14 years agoadded request_hash to get_credential() call
Tony Mack [Fri, 16 Oct 2009 03:58:11 +0000 (03:58 +0000)]
added request_hash to get_credential() call

14 years agoadded request_hash to get_slices() call
Tony Mack [Fri, 16 Oct 2009 03:57:26 +0000 (03:57 +0000)]
added request_hash to get_slices() call

14 years agoimport sfa.util.debug.log
Tony Mack [Fri, 16 Oct 2009 03:46:28 +0000 (03:46 +0000)]
import sfa.util.debug.log

14 years agouse xmlrpcprotocol instead of geniclient when connecting to slice manager
Tony Mack [Fri, 16 Oct 2009 03:37:32 +0000 (03:37 +0000)]
use xmlrpcprotocol instead of geniclient when connecting to slice manager

14 years agoadd request_hash argument to more method calls
Tony Mack [Fri, 16 Oct 2009 03:34:20 +0000 (03:34 +0000)]
add request_hash argument to more method calls

14 years agoadd request_hash argument to more method calls
Tony Mack [Fri, 16 Oct 2009 03:31:22 +0000 (03:31 +0000)]
add request_hash argument to more method calls

14 years agodeleting
Tony Mack [Fri, 16 Oct 2009 03:28:38 +0000 (03:28 +0000)]
deleting

14 years agoadd request_hash argumet to more method calls
Tony Mack [Fri, 16 Oct 2009 03:27:30 +0000 (03:27 +0000)]
add request_hash argumet to more method calls

14 years agoadded request_hash argumet some more calls
Tony Mack [Fri, 16 Oct 2009 01:58:37 +0000 (01:58 +0000)]
added request_hash argumet some more calls

14 years agoRspec to RSpec
Andy Bavier [Thu, 15 Oct 2009 17:44:09 +0000 (17:44 +0000)]
Rspec to RSpec

14 years agoauthenticate request_hash using client gid from the cred
Tony Mack [Thu, 15 Oct 2009 15:18:01 +0000 (15:18 +0000)]
authenticate request_hash using client gid from the cred

14 years agoadded request_hash argument. authenticate the credential using request_hash
Tony Mack [Thu, 15 Oct 2009 05:01:21 +0000 (05:01 +0000)]
added request_hash argument. authenticate the credential using request_hash

14 years agoadded request hash to list of accepted arguments
Tony Mack [Thu, 15 Oct 2009 04:59:37 +0000 (04:59 +0000)]
added request hash to list of accepted arguments

14 years agofix package import
Tony Mack [Thu, 15 Oct 2009 04:58:47 +0000 (04:58 +0000)]
fix package import

14 years agouse xmlrpcprotocol instead of geniclient
Tony Mack [Thu, 15 Oct 2009 04:57:59 +0000 (04:57 +0000)]
use xmlrpcprotocol instead of geniclient

14 years agostart adding request_hash to calls. start replacing geniclient with xmlrpcprotocol
Tony Mack [Thu, 15 Oct 2009 04:57:25 +0000 (04:57 +0000)]
start adding request_hash to calls. start replacing geniclient with xmlrpcprotocol

14 years agofix bug
Tony Mack [Thu, 15 Oct 2009 04:05:20 +0000 (04:05 +0000)]
fix bug

14 years agofix typo
Tony Mack [Thu, 15 Oct 2009 03:03:40 +0000 (03:03 +0000)]
fix typo

14 years agocheck peer_cert
Tony Mack [Thu, 15 Oct 2009 03:03:02 +0000 (03:03 +0000)]
check peer_cert

14 years agoremove row class
Tony Mack [Thu, 15 Oct 2009 03:02:22 +0000 (03:02 +0000)]
remove row class

14 years agomodify import
Tony Mack [Thu, 15 Oct 2009 03:01:58 +0000 (03:01 +0000)]
modify import

14 years agoinitial checkin of row class
Tony Mack [Thu, 15 Oct 2009 03:01:41 +0000 (03:01 +0000)]
initial checkin of row class

14 years agodont verify request hash in auth.check()
Tony Mack [Thu, 15 Oct 2009 01:55:41 +0000 (01:55 +0000)]
dont verify request hash in auth.check()

14 years agoupdate the record's last updated field with the current time. last_updated field...
Tony Mack [Wed, 14 Oct 2009 16:30:07 +0000 (16:30 +0000)]
update the record's last updated field with the current time. last_updated field will be ignored until the readonly attribute is removed from the field definition in GeniRecord.fields

14 years agoadded Row class with validate methods
Tony Mack [Wed, 14 Oct 2009 16:28:12 +0000 (16:28 +0000)]
added Row class with validate methods

14 years agoGeniRecord now inherits util.genitable.Row instead of dict. Added validate_last_updat...
Tony Mack [Wed, 14 Oct 2009 16:26:55 +0000 (16:26 +0000)]
GeniRecord now inherits util.genitable.Row instead of dict. Added validate_last_updated() method

14 years agomark 'last_updated, and date_created as readonly. Will remove readonly attribute...
Tony Mack [Wed, 14 Oct 2009 15:34:14 +0000 (15:34 +0000)]
mark 'last_updated, and date_created as readonly. Will remove readonly attribute from last_updated field once timestamp support has been added

14 years agomove peer_vert verificaiton code into its own method
Tony Mack [Wed, 14 Oct 2009 00:34:52 +0000 (00:34 +0000)]
move peer_vert verificaiton code into its own method

14 years agoinitial checkin of files necessary for deploying via apache mod_python
Tony Mack [Wed, 14 Oct 2009 00:27:49 +0000 (00:27 +0000)]
initial checkin of files necessary for deploying via apache mod_python

14 years agoadded several methods for has based authentication
Tony Mack [Wed, 14 Oct 2009 00:25:17 +0000 (00:25 +0000)]
added several methods for has based authentication

14 years agoadded compute_hash() method
Tony Mack [Wed, 14 Oct 2009 00:23:42 +0000 (00:23 +0000)]
added compute_hash() method

14 years agoadded BadRequestHash fault
Tony Mack [Wed, 14 Oct 2009 00:23:16 +0000 (00:23 +0000)]
added BadRequestHash fault

14 years agoinitial checkin of get_gid method
Tony Mack [Wed, 14 Oct 2009 00:22:40 +0000 (00:22 +0000)]
initial checkin of get_gid method

14 years agoFix for VINI aggregate
Andy Bavier [Mon, 12 Oct 2009 15:58:53 +0000 (15:58 +0000)]
Fix for VINI aggregate

14 years agoDon't show peer sites in RSpec
Andy Bavier [Mon, 12 Oct 2009 15:40:45 +0000 (15:40 +0000)]
Don't show peer sites in RSpec

14 years agoSetting tag sfa-0.9-5
Anil-Kumar Vengalil [Fri, 9 Oct 2009 14:58:02 +0000 (14:58 +0000)]
Setting tag sfa-0.9-5
Create_slice and get_resources methods are connected to sfatables.
Other features include compatibility with RP, handling remote objects created as part of federation, preliminary version of sfatables, call tracability and logging.

14 years agosfatable hook
Anil-Kumar Vengalil [Thu, 8 Oct 2009 16:13:49 +0000 (16:13 +0000)]
sfatable hook

14 years agosfatables hook bug fix
Anil-Kumar Vengalil [Thu, 8 Oct 2009 15:33:22 +0000 (15:33 +0000)]
sfatables hook bug fix

14 years agoSetting tag sfa-0.9-4
Anil-Kumar Vengalil [Wed, 7 Oct 2009 12:40:34 +0000 (12:40 +0000)]
Setting tag sfa-0.9-4
Bug fix on update and remove_peer_object methods
Compatibility with RP, preliminiary version of sfatables, call tracability and logging

14 years agowhen updating the peer record, add the record id from the existing record
Tony Mack [Mon, 5 Oct 2009 16:37:12 +0000 (16:37 +0000)]
when updating the peer record, add the record id from the existing record

14 years agoif peer_record exist but pointer is different, update the record
Tony Mack [Mon, 5 Oct 2009 16:29:48 +0000 (16:29 +0000)]
if peer_record exist but pointer is different, update the record

14 years agobug-fix
Anil-Kumar Vengalil [Mon, 5 Oct 2009 15:42:16 +0000 (15:42 +0000)]
bug-fix

14 years agoprint the exception even if we don't do anything about it (yet)
Barış Metin [Mon, 5 Oct 2009 10:43:01 +0000 (10:43 +0000)]
print the exception even if we don't do anything about it (yet)

14 years agoSetting tag sfa-0.9-3
Anil-Kumar Vengalil [Mon, 5 Oct 2009 10:24:17 +0000 (10:24 +0000)]
Setting tag sfa-0.9-3
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)

14 years agoto be sure that the record being removed is a peer record
Anil-Kumar Vengalil [Sun, 4 Oct 2009 14:10:24 +0000 (14:10 +0000)]
to be sure that the record being removed is a peer record

14 years agoUnBindObjectFromPeer needs the shortname of the peer
Anil-Kumar Vengalil [Sun, 4 Oct 2009 13:37:37 +0000 (13:37 +0000)]
UnBindObjectFromPeer needs the shortname of the peer

14 years agoto prevent sfa-import from removing records with peer_autority from the registry...
Anil-Kumar Vengalil [Sun, 4 Oct 2009 11:44:07 +0000 (11:44 +0000)]
to prevent sfa-import from removing records with peer_autority from the registry record

14 years agonot to remove a peer_object from the local registry when the sfa service on the remot...
Anil-Kumar Vengalil [Sat, 3 Oct 2009 19:09:04 +0000 (19:09 +0000)]
not to remove a peer_object from the local registry when the sfa service on the remote peer is down

14 years ago- fix typo
Barış Metin [Fri, 2 Oct 2009 15:24:36 +0000 (15:24 +0000)]
- fix typo
- XMLRule.final_processor is not there yet, skip if not found for the moment.

14 years agoremove print
Barış Metin [Fri, 2 Oct 2009 14:37:35 +0000 (14:37 +0000)]
remove print

14 years agocosmetic
Barış Metin [Fri, 2 Oct 2009 14:37:10 +0000 (14:37 +0000)]
cosmetic

14 years ago- SFATablesRules for rspec_manager:fetch_context(...) which is not yet implemented.
Barış Metin [Fri, 2 Oct 2009 14:34:52 +0000 (14:34 +0000)]
- SFATablesRules for rspec_manager:fetch_context(...) which is not yet implemented.

14 years ago- fix writing sfatables rules
Barış Metin [Fri, 2 Oct 2009 14:24:39 +0000 (14:24 +0000)]
- fix writing sfatables rules
- fix displaying empty element targets (like REJECT/ACCEPT)