Bug 1217023 - ovirt-engine replies with 503 Service Temporarily Unavailable on fresh install
Summary: ovirt-engine replies with 503 Service Temporarily Unavailable on fresh install
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-installer
Version: 3.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.6.0
Assignee: Martin Perina
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On: 1121327
Blocks: rhsc_qe_tracker_everglades
TreeView+ depends on / blocked
 
Reported: 2015-04-29 12:27 UTC by Stanislav Graf
Modified: 2019-04-28 09:51 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-30 09:00:02 UTC
oVirt Team: Infra
Embargoed:


Attachments (Terms of Use)
engine-log-collector log (6.43 MB, application/octet-stream)
2015-04-29 12:44 UTC, Stanislav Graf
no flags Details

Description Stanislav Graf 2015-04-29 12:27:23 UTC
Description of problem:
=======================

From yesterday, when I install ovirt-engine and run engine-setup (with application mode Gluster), resulting installation doesn't work.

Following url
http(s)://hostname/
Redirects me to
http(s)://hostname/ovirt-engine

Which says:
---
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.15 (Red Hat) Server at hostname Port 80
---
Returning: 503 Service Temporarily Unavailable

httpd is listening on both 80 and 443 ports.

/var/log/ovirt-engine/server.log is missing

Version-Release number of selected component (if applicable):
=============================================================
ovirt-engine-3.6.0-0.0.master.20150428172821.git6090d93.el6

How reproducible:
=================
100%

Steps to Reproduce:
===================
1. Install RHEL6
2. Install http://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
3. Install ovirt-engine
4. Run engine-setup
5. Try webui

Actual results:
===============
503 Service Temporarily Unavailable

Expected results:
=================
All works as expected

Additional info:
================
-

Comment 1 Sandro Bonazzola 2015-04-29 12:35:21 UTC
Please run engine-log-collector and attach archive.

Comment 2 Stanislav Graf 2015-04-29 12:44:42 UTC
Created attachment 1020117 [details]
engine-log-collector log

Comment 3 Sandro Bonazzola 2015-04-29 12:58:19 UTC
(In reply to Stanislav Graf from comment #2)
> Created attachment 1020117 [details]
> engine-log-collector log

Sorry Stanislav, but attached report doesn't match with bug description.
Can you verify to have attached the right archive?

Comment 4 Stanislav Graf 2015-04-29 13:26:43 UTC
(In reply to Sandro Bonazzola from comment #3)
> (In reply to Stanislav Graf from comment #2)
> > Created attachment 1020117 [details]
> > engine-log-collector log
> 
> Sorry Stanislav, but attached report doesn't match with bug description.
> Can you verify to have attached the right archive?

attachment 1020117 [details]
sosreport-LogCollector-20150429144026.tar.xz

From the machine:
-----------------
# engine-log-collector 
This command will collect system configuration and diagnostic
information from this system.
The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before
being passed to any third party.
No changes will be made to system configuration.
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): 
ERROR: Unable to connect to REST API.  Reason: Service
ERROR: _get_hypervisors_from_api: 
status: 503
reason: Service
detail: 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Temporarily Unavailable</title>
</head><body>
<h1>Service Temporarily Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at hostname Port 443</address>
</body></html>

INFO: Gathering oVirt Engine information...
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
INFO: No hypervisors were selected, therefore no hypervisor data will be collected.
Creating compressed archive...
INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20150429144026.tar.xz.
The MD5 for this file is ab98497f5d5b2d71f200e6cbb3d63e28 and its size is 6.4M
---

Downloaded attached sosreport and md5sum matched what is reported. Also even collector reports 503.

Comment 5 Sandro Bonazzola 2015-04-29 13:41:23 UTC
Again, Stanislav, attached log collector is from a system where ovirt-engine is not installed.

the rpm list shows that ovirt-hosted-engine-setup has been installed but I've no evidence of any ovirt-engine ever installed there and running.

Either you're attaching the wrong sos report or you're not installing ovirt-engine on that system.

Comment 6 Stanislav Graf 2015-04-29 18:13:00 UTC
(In reply to Sandro Bonazzola from comment #5)

Resolved over IRC.

Comment 7 Stanislav Graf 2015-05-05 11:48:20 UTC
The issue was most probably java-openjdk 1.8.0, which is part of base RHEL and satisfy requires of ovirt-engine
# rpm -qR ovirt-engine
[...]
java-openjdk > 1:1.7.0.45-2.4.3.3.el6
[...]

As a workaround I used:
echo 'exclude=java-1.8.0*' >> /etc/yum.conf

This way I avoided 1.8.0 and got installed 1.7.0. ovirt-engine works as expected.

Sandro, needinfo on you to decide if you would be fixing requires in upstream or closing this as known issue / won't fix.

Comment 8 Sandro Bonazzola 2015-05-05 13:53:13 UTC
Moving the needinfo to mperina.

Comment 9 Martin Perina 2015-05-06 07:09:03 UTC
JBoss 7.1 doesn't work with OpenJDK 1.8. The only solution for this is to install OpenJDK 1.7 and set it as default JDK. So please do following steps:

1. Stop ovirt-engine service (and also DWH if installed)
1. Install latest java-openjdk-1.7.X
2. Execute "alternatives --config java" and set 1.7 as default
3. Execute engine-setup again (just to verify)
4. Start ovirt-engine service

oVirt 3.6 will work with OpenJDK 1.8, when we will move to WildFly (BZ1121327)

Comment 10 Oved Ourfali 2015-07-30 09:00:02 UTC
We're now on WildFly already.
I'm closing this one.
Stanislav - if you have additional issues, please re-open.

Comment 11 patrickstar 2018-12-01 05:00:44 UTC
(In reply to Martin Perina from comment #9)
> JBoss 7.1 doesn't work with OpenJDK 1.8. The only solution for this is to
> install OpenJDK 1.7 and set it as default JDK. So please do following steps:
> 
> 1. Stop ovirt-engine service (and also DWH if installed)
> 1. Install latest java-openjdk-1.7.X
> 2. Execute "alternatives --config java" and set 1.7 as default
> 3. Execute engine-setup again (just to verify)
> 4. Start ovirt-engine service
> 
> oVirt 3.6 will work with OpenJDK 1.8, when we will move to WildFly
> (BZ1121327)

I still encounted the issues after I followed your advice,it is weird


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