Changeset 99eb8cf for fedd/federation


Ignore:
Timestamp:
Dec 8, 2009 6:11:35 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
23356cb
Parents:
3bddd24
Message:

More credential changes and removal of user/project stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r3bddd24 r99eb8cf  
    725725        else: return None
    726726
    727     def get_access(self, tb, nodes, user, tbparam, master, export_project,
     727    def get_access(self, tb, nodes, tbparam, master, export_project,
    728728            access_user):
    729729        """
     
    734734            raise service_error(serice_error.server_config,
    735735                    "Unknown testbed: %s" % tb)
    736 
    737         # currently this lumps all users into one service access group
    738         service_keys = [ a for u in user \
    739                 for a in u.get('access', []) \
    740                     if a.has_key('sshPubkey')]
    741 
    742         if len(service_keys) == 0:
    743             raise service_error(service_error.req,
    744                     "Must have at least one SSH pubkey for services")
    745736
    746737        # Tweak search order so that if there are entries in access_user that
     
    13271318        return hosts, ips
    13281319
    1329     def get_access_to_testbeds(self, testbeds, user, access_user,
     1320    def get_access_to_testbeds(self, testbeds, access_user,
    13301321            export_project, master, allocated, tbparams):
    13311322        """
     
    13361327        """
    13371328        for tb in testbeds:
    1338             self.get_access(tb, None, user, tbparams, master,
     1329            self.get_access(tb, None, tbparams, master,
    13391330                    export_project, access_user)
    13401331            allocated[tb] = 1
     
    20172008                        "Bad key type (%s)" % self.ssh_type)
    20182009
    2019             user = req.get('user', None)
    2020             if user == None:
    2021                 raise service_error(service_error.req, "No user")
    2022 
    20232010            master = req.get('master', None)
    20242011            if not master:
     
    20672054            allocated = { }         # Testbeds we can access
    20682055            topo ={ }               # Sub topologies
    2069             self.get_access_to_testbeds(testbeds, user, access_user,
     2056            self.get_access_to_testbeds(testbeds, access_user,
    20702057                    export_project, master, allocated, tbparams)
    20712058            self.split_topology(top, topo, testbeds, eid, master, tbparams)
Note: See TracChangeset for help on using the changeset viewer.