Bug 1294025
| Summary: | Spice vm console fails because servlet pki-resource is unavailable | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Germano Veit Michel <gveitmic> | |
| Component: | ovirt-engine | Assignee: | Martin Perina <mperina> | |
| Status: | CLOSED ERRATA | QA Contact: | Ondra Machacek <omachace> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 3.5.6 | CC: | achareka, didi, gklein, gveitmic, joallen, lsurette, mgoldboi, michal.skrivanek, mperina, oourfali, pstehlik, rbalakri, Rhev-m-bugs, sbonazzo, yeylon | |
| Target Milestone: | ovirt-3.6.3 | Keywords: | ZStream | |
| Target Release: | 3.6.3 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1302776 (view as bug list) | Environment: | ||
| Last Closed: | 2016-03-09 21:15:02 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1302776 | |||
|
Description
Germano Veit Michel
2015-12-24 05:46:21 UTC
something wrong with the deployment perhaps? I suppose http://rhevm/ca.crt should always work. Oved, PKI issues is your area, moving to infra If that's in deployment then it is integration. Didi, can you take a look. Move back to infra if needed. Can't see an integration problem. If ca.crt is unreadable, that's noted in server.log, and current log does not mention that. Hi Germano,
your initial analysis was correct, if you try to access PKIResourcesServlet before Backend EJB is initialized, then PKIResourcesServlet is inaccessible until engine instance is restarted. I was able to reproduce it even on latest master using those steps:
1. Start engine service
2. At the same time as step 1. execute following script to access PKIResourcesServlet as soon as available:
for i in {1..8192} ; do wget -O rhevm.cer http://localhost/ca.crt ; done
3. Even after engine started up successfully, PKIResourcesServlet is inaccessible
The only workaround until proper fix is posted is either "don't access engine until it's properly started" or block HTTP access completely by:
1. Stop Apache service
- so nothing can access engine
2. Start ovirt-engine service and wait until it's properly started
3. Start Apache service
Thanks
Martin
Yedidyah Bar David, Sorry for not responding your questions right away. 1) I suppose it's still failing every single time he tries it. It did fail 100% during troubleshooting. Do you have anything in mind that might also be failing? Customer seems happy using VNC, did not came back. 2) Yes, always the same 3) We were also unable to understand why it suddenly started failing. 4) We checked these permissions, they were the same as in our labs (working). Martin, It was actually James analysis, I just asked him to check this since I don't know much Java. I'm glad you could reproduce this. According to 1075013 step (2) returns before engine is properly started so this is a bit tricky. From what I understand 1075013 will not fix this (unless apache service depends on engine, which I am not sure is a good idea). Cheers, Germano (In reply to Germano Veit Michel from comment #14) > It was actually James analysis, I just asked him to check this since I don't > know much Java. I'm glad you could reproduce this. According to 1075013 step > (2) returns before engine is properly started so this is a bit tricky. > > From what I understand 1075013 will not fix this (unless apache service > depends on engine, which I am not sure is a good idea). > > Cheers, > Germano Hi, there is no easy/reliable way how to detect if J2EE application finished it's deployment successfully, so I doubt we could fix 1075013. But regarding this bug the fix is not that complex, because it's not only about PKIResourceServlet <-> Backend dependency, but also about improper usage of internal API and that can be fixed easily. Martin ok in rhevm-3.6.3.2-0.1.el6.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-0376.html |