Issue #421
closedPulp allows requests while still booting
Description
Description of problem:
Pulp allows requests while still booting.
This leads to mixed results whenever both sync and async tasks are concerned such as create repo & associate importer.
As a result, sync tasks pass OK (create repo) while async tasks fail with internal server errors etc.
Version-Release number of selected component (if applicable):
2.4 Beta
How reproducible:
always
Steps to Reproduce:
1. stop pulp services and httpd
2. start pulp services and httpd
3. while the pulp services are booting, issue create repo & associate importer API requests
Actual results:
Internal errors, async tasks fail
Expected results:
Pulp doesn't accept any requests while booting
Ideally, pulp gives a 503-Service-Unavailable response in return while booting
Additional info:
Affects CI when pulp start is slowed-down by call-stats collecting [1]
A workaround exists: wait ~1min till pulp settles down
[1] https://github.com/RedHatQE/python-moncov
+ This bug was cloned from Bugzilla Bug #1092494 +