Changeset 99eb8cf for fedd/federation
- Timestamp:
- Dec 8, 2009 6:11:35 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 23356cb
- Parents:
- 3bddd24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r3bddd24 r99eb8cf 725 725 else: return None 726 726 727 def get_access(self, tb, nodes, user,tbparam, master, export_project,727 def get_access(self, tb, nodes, tbparam, master, export_project, 728 728 access_user): 729 729 """ … … 734 734 raise service_error(serice_error.server_config, 735 735 "Unknown testbed: %s" % tb) 736 737 # currently this lumps all users into one service access group738 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")745 736 746 737 # Tweak search order so that if there are entries in access_user that … … 1327 1318 return hosts, ips 1328 1319 1329 def get_access_to_testbeds(self, testbeds, user,access_user,1320 def get_access_to_testbeds(self, testbeds, access_user, 1330 1321 export_project, master, allocated, tbparams): 1331 1322 """ … … 1336 1327 """ 1337 1328 for tb in testbeds: 1338 self.get_access(tb, None, user,tbparams, master,1329 self.get_access(tb, None, tbparams, master, 1339 1330 export_project, access_user) 1340 1331 allocated[tb] = 1 … … 2017 2008 "Bad key type (%s)" % self.ssh_type) 2018 2009 2019 user = req.get('user', None)2020 if user == None:2021 raise service_error(service_error.req, "No user")2022 2023 2010 master = req.get('master', None) 2024 2011 if not master: … … 2067 2054 allocated = { } # Testbeds we can access 2068 2055 topo ={ } # Sub topologies 2069 self.get_access_to_testbeds(testbeds, user,access_user,2056 self.get_access_to_testbeds(testbeds, access_user, 2070 2057 export_project, master, allocated, tbparams) 2071 2058 self.split_topology(top, topo, testbeds, eid, master, tbparams)
Note: See TracChangeset
for help on using the changeset viewer.