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.
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/login/ '.format( dashboard_ ip)
# [...]
auth_url = 'http://{}/horizon/
# start session, get csrftoken get(auth_ url)
client = requests.session()
client.
def get_client_ and_attempt_ operation( self, ip):
unit.public_ address, domain, username, password) format( unit.public_ address)
# [...]
client, response = _login(
# now attempt to get the domains page
_url = self.url.
result = client.get(_url)
_login() (and its client.get()) succeeded (so the webserver was ready) whereas the later client.get() failed.