#4885 Installer should display dogtag.ca_status() exception
Closed: Fixed None Opened 4 years ago by edewata.

Currently if IPA cannot communicate with Dogtag during installation it will display a generic message 'The CA status is: check interrupted' which is not very helpful for troubleshooting:

2015-01-30T10:26:04Z DEBUG wait_for_open_ports: localhost [8080, 8443] timeout 300
2015-01-30T10:26:08Z DEBUG The httpd proxy is not installed, wait on local port
2015-01-30T10:26:08Z DEBUG Waiting until the CA is running
2015-01-30T10:26:08Z DEBUG request 'https://ipa.example321.com:8443/ca/admin/ca/getStatus'
2015-01-30T10:26:08Z DEBUG request body ''
2015-01-30T10:26:25Z DEBUG The CA status is: check interrupted

Ideally it should display the actual error message from the exception. See ipaplatform/redhat/services.py:

class RedHatCAService(RedHatService):
    def wait_until_running(self):
        ...
        while time.time() < op_timeout:
            try:
                status = dogtag.ca_status(use_proxy=use_proxy)
            except Exception:
                status = 'check interrupted'
            root_logger.debug('The CA status is: %s' % status)
            if status == 'running':
                break
            root_logger.debug('Waiting for CA to start...')
            time.sleep(1)
        ...

master:

  • e8d4f6d show the exception message thrown by dogtag._parse_ca_status during install

ipa-4-1:

  • d7863f3 show the exception message thrown by dogtag._parse_ca_status during install

Metadata Update from @edewata:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.1.4

2 years ago

Login to comment on this ticket.

Metadata