Bug 1092494 - Pulp allows requests while still booting
Summary: Pulp allows requests while still booting
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: API/integration
Version: 2.4 Beta
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-29 12:27 UTC by mkovacik
Modified: 2015-02-28 22:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 22:05:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 421 0 None None None Never

Description mkovacik 2014-04-29 12:27:08 UTC
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

Comment 1 Michael Hrivnak 2014-05-01 16:05:49 UTC
We should probably move creation and initialization of the wsgi app into a function that does not return the wsgi app until initialization is complete.

However, this is not having end-user impact at this time, so we can't prioritize it very high.

Comment 2 Brian Bouterse 2015-02-28 22:05:24 UTC
Moved to https://pulp.plan.io/issues/421


Note You need to log in before you can comment on or make changes to this bug.