Closed bhavenst closed 9 months ago
New commit changes Driver to Engine.
While this approach works and adds better handling of 502 error, we should follow up with a solution that checks status of the engine and present user with better, static page.
@tznamena Does this mean we need changes or OK as is?
Do you think we should also pop up a message on the main page if the backend goes away (GET on /steps starts failing, which could be a trigger).
While this approach works and adds better handling of 502 error, we should follow up with a solution that checks status of the engine and present user with better, static page.
@tznamena Does this mean we need changes or OK as is?
Do you think we should also pop up a message on the main page if the backend goes away (GET on /steps starts failing, which could be a trigger).
This PR is OK as is, we will need another Jira work item to implement a status API for the engine and whole new static page. We can then add a logic that re-routes user to it once engine goes away.
Description
This PR adds a message "Deployment Engine unavailable, please re-deploy" when the login form receives a 502, which happens when the backend is timed out. This is a partial fix, since it doesn't take care of an already logged in screen. Maybe we should add a message on the UI that shows itself when the backend goes away too.
Commit message reminder
Commit messages are important because they will be used to build list of items included in Errata when the deployment driver container image is built and QE will use that list to figure out what to test before the image is published.
AAP-nnnnn
is included in the commit message(s)PR task checklist
Jira
This PR is for JIRA item: https://issues.redhat.com/browse/AAP-9450
Testing
Steps to test
Expected result
With the changes in this PR you will see a new message when attempting to log in when engine is down.