#563 Use timeout in configuration script
Closed: Fixed None Opened 11 years ago by edewata.

The current configuration script will attempt 60 times for the Tomcat to start. Ideally it would translate to 60 seconds, but it could also translate to a very long time if each attempt takes a while to complete. The code should be replaced with a proper timeout.

configuration.py:

status = util.instance.wait_for_startup(60)

pkihelper.py:

def wait_for_startup(self, timeout):
    tries = 1   
    status = self.get_instance_status()
    while status != "running":
        if tries >= timeout:
            return None
        time.sleep(1)
        status = self.get_instance_status()
        tries = tries + 1
    return status

Fixed and pushed to master in a698f1052fc299ffdcd155fb1618780f6acb0e2d

Metadata Update from @edewata:
- Issue assigned to kaskahn
- Issue set to the milestone: 10.0.2

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1133

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata