Changeset ab33158


Ignore:
Timestamp:
Oct 7, 2009 9:18:17 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-2.00, version-3.01, version-3.02
Children:
af51a97
Parents:
181cf9c
Message:

final tweaks to get working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/dragon_access.py

    r181cf9c rab33158  
    561561            start = time.time()
    562562        if not end:
    563             end = start + 5 *60
     563            end = start + 120 *60
    564564
    565565
     
    598598                'query', '-repo',  repo , '-url', self.idc_url, '-gri', gri]
    599599
    600             while status in ('ACCEPTED', 'INSETUP', 'PENDING'):
    601                 time.sleep(5)
     600            while status in ('ACCEPTED', 'INSETUP', 'INCREATE', 'PENDING'):
    602601                log.debug("[start_segment]: %s" % " ".join(cmd))
    603602                if not self.create_debug:
     
    663662                    status = 'ACTIVE'
    664663                    vlan_no = int(v) or 1
     664                if status in ('ACCEPTED', 'INSETUP', 'INCREATE', 'PENDING'):
     665                    time.sleep(45)
    665666            if status in ('ACTIVE', 'FINISHED', 'CANCELLED'):
    666667                break
     
    774775        auth_attr = req['allocID']['fedid']
    775776        aid = "%s" % auth_attr
     777
     778        self.log.debug("Terminate request for %s" %aid)
    776779        attrs = req.get('fedAttr', [])
    777780        if not self.auth.check_attribute(fid, auth_attr):
     
    786789            user = None
    787790        self.state_lock.release()
     791        self.log.debug("Stop segment for user: %s gre %s" %(user, gri))
    788792
    789793        if not gri:
     
    794798            raise service_error(service_error.internal,
    795799                    "Can't find creation user for %s" % aid)
    796 
     800   
     801        self.log.debug("Stop segment for GRI: %s" %gri)
    797802        self.stop_segment(user, gri)
    798803        return { 'allocID': req['allocID'] }
Note: See TracChangeset for help on using the changeset viewer.