Comment 1 for bug 1882243

Revision history for this message
Aurelien Lourot (aurelien-lourot) wrote :

Looking at the logs, I don't believe the webserver wasn't back and ready. Also the code that failed is:

def _login(dashboard_ip, domain, username, password):
    # [...]
    auth_url = 'http://{}/horizon/auth/login/'.format(dashboard_ip)

    # start session, get csrftoken
    client = requests.session()
    client.get(auth_url)

def get_client_and_attempt_operation(self, ip):
    # [...]
    client, response = _login(
        unit.public_address, domain, username, password)
    # now attempt to get the domains page
    _url = self.url.format(unit.public_address)
    result = client.get(_url)

_login() (and its client.get()) succeeded (so the webserver was ready) whereas the later client.get() failed.