policy.d test is unstable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
From: https:/
https:/
ERROR
2020-06-05 11:10:32 [INFO] =======
2020-06-05 11:10:32 [INFO] ERROR: test_003_
2020-06-05 11:10:32 [INFO] Test that the override is observed by the underlying service.
2020-06-05 11:10:32 [INFO] -------
2020-06-05 11:10:32 [INFO] Traceback (most recent call last):
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] chunked=chunked,
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] six.raise_from(e, None)
2020-06-05 11:10:32 [INFO] File "<string>", line 3, in raise_from
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] httplib_response = conn.getresponse()
2020-06-05 11:10:32 [INFO] File "/usr/lib/
2020-06-05 11:10:32 [INFO] response.begin()
2020-06-05 11:10:32 [INFO] File "/usr/lib/
2020-06-05 11:10:32 [INFO] version, status, reason = self._read_status()
2020-06-05 11:10:32 [INFO] File "/usr/lib/
2020-06-05 11:10:32 [INFO] raise RemoteDisconnec
2020-06-05 11:10:32 [INFO] http.client.
2020-06-05 11:10:32 [INFO] During handling of the above exception, another exception occurred:
2020-06-05 11:10:32 [INFO] Traceback (most recent call last):
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] timeout=timeout
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] method, url, error=e, _pool=self, _stacktrace=
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] raise six.reraise(
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] raise value.with_
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] chunked=chunked,
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] six.raise_from(e, None)
2020-06-05 11:10:32 [INFO] File "<string>", line 3, in raise_from
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] httplib_response = conn.getresponse()
2020-06-05 11:10:32 [INFO] File "/usr/lib/
2020-06-05 11:10:32 [INFO] response.begin()
2020-06-05 11:10:32 [INFO] File "/usr/lib/
2020-06-05 11:10:32 [INFO] version, status, reason = self._read_status()
2020-06-05 11:10:32 [INFO] File "/usr/lib/
2020-06-05 11:10:32 [INFO] raise RemoteDisconnec
2020-06-05 11:10:32 [INFO] urllib3.
2020-06-05 11:10:32 [INFO] During handling of the above exception, another exception occurred:
2020-06-05 11:10:32 [INFO] Traceback (most recent call last):
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] self.get_
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] result = client.get(_url)
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] return self.request('GET', url, **kwargs)
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] resp = self.send(prep, **send_kwargs)
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] history = [resp for resp in gen] if allow_redirects else []
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] history = [resp for resp in gen] if allow_redirects else []
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] **adapter_kwargs
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] r = adapter.
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] raise ConnectionError
2020-06-05 11:10:32 [INFO] requests.
2020-06-05 11:10:32 [INFO] During handling of the above exception, another exception occurred:
2020-06-05 11:10:32 [INFO] Traceback (most recent call last):
2020-06-05 11:10:32 [INFO] File "/tmp/tmp.
2020-06-05 11:10:32 [INFO] .format(str(e)))
2020-06-05 11:10:32 [INFO] zaza.openstack.
This probably means that the apache webserver wasn't back in time; perhaps some retries to allow it to come back up with help stabilise the test.
Changed in charm-openstack-dashboard: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in charm-openstack-dashboard: | |
status: | Triaged → In Progress |
assignee: | nobody → Aurelien Lourot (aurelien-lourot) |
Changed in charm-openstack-dashboard: | |
status: | Confirmed → Triaged |
Changed in charm-openstack-dashboard: | |
assignee: | Aurelien Lourot (aurelien-lourot) → nobody |
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.