New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a retry on webui service for making sure it will boot up always #1884
Add a retry on webui service for making sure it will boot up always #1884
Conversation
On my testing box, this openqa-webui service can't boot up with system boot. even 'systemctl enable openqa-webui' is done. I saw the comments said our API a little bit expensive, so I guess might be something isn't ready on first time trying. If adding this retry opportunity, service could start up successful.
why is not starting up? It shouldn't fail to startup to begin with. |
|
This is on boot, right? |
Yes, on boot it's failed. |
Codecov Report
@@ Coverage Diff @@
## master #1884 +/- ##
==========================================
- Coverage 90.58% 90.51% -0.07%
==========================================
Files 148 148
Lines 10247 10247
==========================================
- Hits 9282 9275 -7
- Misses 965 972 +7
Continue to review full report at Codecov.
|
Can you show us the full log in the case it fails to start? ( |
Sorry, I using a wrong cmdline,,,this is full log:
|
Service dependence issue? |
Hi, I upgrade all openQA and perl to the latest development version. Issue be fixed.
|
If the issue is fixed for you that's good. @coolo, still restart on fail might be good? Also, does multi-user.target ensure network is up? Sounds like the same issue we had on openqaworker4@o3 |
I find restart=on-failure a workaround for things we should fix, so I'm kind of against it. multi-user.target ensures network is up, but we're part of it (wantedby) not behind it. |
Sure, so the really strict hard requirements would be IIUC
but I think this would delay the boot further waiting for DHCP to get adresses from outside, etc. As you said: The problem should be fixed in the code itself to be resilient |
And what's the difference between systemd waiting for the network and openqa waiting for the network? |
I guess no difference for a server but I am not sure for a desktop system if that would mean network->openQA->(some other target)->user can work? |
Desktop users can work if the desktop is up - if they want to work with openqa, they will have to wait for it to be up, no matter where the delay is. |
I don't see that as wanted - especially not as boot order workaround |
On my testing box, this openqa-webui service can't boot up with
system boot. even 'systemctl enable openqa-webui' is done.
I saw the comments said our API a little bit expensive, so I guess
might be something isn't ready on first time trying.
If adding this retry opportunity, service could start up successful.