From: Sandrine Avakian Date: Wed, 29 Feb 2012 12:33:11 +0000 (+0100) Subject: Merge branch 'master' into senslab2 X-Git-Tag: sfa-2.1-24~3^2~215 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=3d51e29695f79b143974f5cf7b2e104d89626ba4 Merge branch 'master' into senslab2 Conflicts: sfa/server/sfa-start.py --- 3d51e29695f79b143974f5cf7b2e104d89626ba4 diff --cc sfa/client/sfi.py index ca54c932,e9614e90..c2dc9bab --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@@ -905,10 -905,9 +905,10 @@@ or with an slice hrn, shows currently p rspec.filter({'component_manager_id': server_version['urn']}) rspec = RSpecConverter.to_pg_rspec(rspec.toxml(), content_type='request') else: + print >>sys.stderr, "\r\n \r\n \r\n WOOOOOO" users = sfa_users_arg(user_records, slice_record) - - # do not append users, keys, or slice tags. Anything + + # do not append users, keys, or slice tags. Anything # not contained in this request will be removed from the slice # CreateSliver has supported the options argument for a while now so it should diff --cc sfa/server/sfa-start.py index 73c467d6,1596cc3f..f1fc0476 --- a/sfa/server/sfa-start.py +++ b/sfa/server/sfa-start.py @@@ -103,25 -99,17 +102,16 @@@ def install_peer_certs(server_key_file if 'sfa' not in server_version: logger.info("get_trusted_certs: skipping non sfa aggregate: %s" % new_hrn) continue - trusted_gids = ReturnValue.get_value(interface.get_trusted_certs()) - #trusted_gids = interface.get_trusted_certs() - print>>sys.stderr, " \r\n \r\n \t=============================================== install_peer_certs TRUSTED_GIDS %s " %(trusted_gids) if trusted_gids: - #and not isinstance(trusted_gids,list): # the gid we want should be the first one in the list, # but lets make sure - #trusted_gids = [trusted_gids] - print>>sys.stderr, " \r\n \r\n \t=============================================== install_peer_certs TRUSTED_GIDS %s " %(trusted_gids) - for trusted_gid in trusted_gids: - print>>sys.stderr, " \r\n \r\n \t=============================================== install_peer_certs trusted_gids%s " %(trusted_gid) - for trusted_gid in trusted_gids: # default message message = "interface: %s\t" % (api.interface) message += "unable to install trusted gid for %s" % \ - (new_hrn) - print>>sys.stderr, " \r\n \r\n \t=============================================== install_peer_certs message %s " %(message) - #gid = GID(string=trusted_gids[0]) + (new_hrn) gid = GID(string=trusted_gid) + print>>sys.stderr, " \r\n \r\n \t=============================================== install_peer_certs gid %s " %(gid) peer_gids.append(gid) if gid.get_hrn() == new_hrn: gid_filename = os.path.join(trusted_certs_dir, '%s.gid' % new_hrn)