- Timestamp:
- Oct 7, 2009 9:18:17 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-2.00, version-3.01, version-3.02
- Children:
- af51a97
- Parents:
- 181cf9c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/dragon_access.py
r181cf9c rab33158 561 561 start = time.time() 562 562 if not end: 563 end = start + 5*60563 end = start + 120 *60 564 564 565 565 … … 598 598 'query', '-repo', repo , '-url', self.idc_url, '-gri', gri] 599 599 600 while status in ('ACCEPTED', 'INSETUP', 'PENDING'): 601 time.sleep(5) 600 while status in ('ACCEPTED', 'INSETUP', 'INCREATE', 'PENDING'): 602 601 log.debug("[start_segment]: %s" % " ".join(cmd)) 603 602 if not self.create_debug: … … 663 662 status = 'ACTIVE' 664 663 vlan_no = int(v) or 1 664 if status in ('ACCEPTED', 'INSETUP', 'INCREATE', 'PENDING'): 665 time.sleep(45) 665 666 if status in ('ACTIVE', 'FINISHED', 'CANCELLED'): 666 667 break … … 774 775 auth_attr = req['allocID']['fedid'] 775 776 aid = "%s" % auth_attr 777 778 self.log.debug("Terminate request for %s" %aid) 776 779 attrs = req.get('fedAttr', []) 777 780 if not self.auth.check_attribute(fid, auth_attr): … … 786 789 user = None 787 790 self.state_lock.release() 791 self.log.debug("Stop segment for user: %s gre %s" %(user, gri)) 788 792 789 793 if not gri: … … 794 798 raise service_error(service_error.internal, 795 799 "Can't find creation user for %s" % aid) 796 800 801 self.log.debug("Stop segment for GRI: %s" %gri) 797 802 self.stop_segment(user, gri) 798 803 return { 'allocID': req['allocID'] }
Note: See TracChangeset
for help on using the changeset viewer.