Hirsute-only for now: consistently happening on hirsute-wallaby, but not focal-wallaby nor groovy-victoria. Visible in the gate:
https://review.opendev.org/c/openstack/charm-neutron-api/+/794522
https://openstack-ci-reports.ubuntu.com/artifacts/e3c/794522/2/check/hirsute-wallaby/e3cde0c/job-output.txt
ERROR: test_901_pause_resume (zaza.openstack.charm_tests.neutron.tests.NeutronApiTest)
Run pause and resume tests.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/src/review.opendev.org/openstack/charm-neutron-api/.tox/func-target/lib/python3.6/site-packages/zaza/openstack/charm_tests/neutron/tests.py", line 372, in test_901_pause_resume
pgrep_full=pgrep_full):
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/home/ubuntu/src/review.opendev.org/openstack/charm-neutron-api/.tox/func-target/lib/python3.6/site-packages/zaza/openstack/charm_tests/test_utils.py", line 514, in pause_resume
pgrep_full=pgrep_full)
File "/home/ubuntu/src/review.opendev.org/openstack/charm-neutron-api/.tox/func-target/lib/python3.6/site-packages/zaza/__init__.py", line 48, in _wrapper
return run(_run_it())
File "/home/ubuntu/src/review.opendev.org/openstack/charm-neutron-api/.tox/func-target/lib/python3.6/site-packages/zaza/__init__.py", line 36, in run
return task.result()
File "/home/ubuntu/src/review.opendev.org/openstack/charm-neutron-api/.tox/func-target/lib/python3.6/site-packages/zaza/__init__.py", line 47, in _run_it
return await f(*args, **kwargs)
File "/home/ubuntu/src/review.opendev.org/openstack/charm-neutron-api/.tox/func-target/lib/python3.6/site-packages/zaza/model.py", line 1537, in async_block_until_service_status
await async_block_until(_check_service, timeout=timeout)
File "/home/ubuntu/src/review.opendev.org/openstack/charm-neutron-api/.tox/func-target/lib/python3.6/site-packages/zaza/model.py", line 1605, in async_block_until
await asyncio.wait_for(_block(), timeout, loop=loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 362, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
Additional info on failure:
From Hirsute, apache2 service installation resulted in start of apache2 and apache-htcacheclean service. And during the test, apache-htcacheclean service is not stopped and so pgrep -o -f apache2 resulted in returning process id of apache-htcacheclean service. This resulted in test case blocked assuming services are not stopped.
# ps -aef | grep apache2 htcacheclean -d 120 -p /var/cache/ apache2/ mod_cache_ disk -l 300M -n
www-data 8847 1 0 13:14 ? 00:00:00 /usr/bin/
root 37837 34961 0 13:37 pts/0 00:00:00 grep --color=auto apache2
I am not sure if apache-htcacheclean service should be started during initialisation from hirsute and so raised a bug on apache2 [1].
[1] https:/ /bugs.launchpad .net/ubuntu/ +source/ apache2/ +bug/1942745