Bug 1138800 - [engine-setup] engine-setup just to configure websocket proxy fails: Cannot get JAVA_HOME make sure supported JRE is installed
Summary: [engine-setup] engine-setup just to configure websocket proxy fails: Cannot g...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.5.0
Hardware: All
OS: All
medium
high
Target Milestone: ---
: 3.5.0
Assignee: Simone Tiraboschi
QA Contact: Lukas Svaty
URL:
Whiteboard: integration
Depends On: 1115957
Blocks: 1080992
TreeView+ depends on / blocked
 
Reported: 2014-09-05 16:13 UTC by Lukas Svaty
Modified: 2015-02-12 14:14 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Fixing a wrong dependency issue
Clone Of: 1115957
Environment:
Last Closed: 2015-02-12 14:14:17 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 29456 0 None None None Never

Description Lukas Svaty 2014-09-05 16:13:00 UTC
release version:
vt2.2

+++ This bug was initially created as a clone of Bug #1115957 +++

Description of problem:

I'm trying to setup ovirt-engine-websocket-proxy on different host than engine is running. thus I don't see sense to have whole set of jboss/engine packages installed.

1. yum install ovirt-engine-setup-base ovirt-engine-websocket-proxy (see BZ1114978)
2. engine-setup

~~~
# engine-setup 
[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: []
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20140703110715-fwbmar.log
          Version: otopi-1.3.0_master (otopi-1.3.0-0.0.master.20140625.git6b6b75a.el6)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ INFO  ] Stage: Environment customization
          Setup can automatically configure the firewall on this system.
          Note: automatic configuration of the firewall may overwrite current settings.
          Do you want Setup to configure the firewall? (Yes, No) [Yes]: 
[ INFO  ] iptables will be configured as firewall manager.
          Host fully qualified DNS name of this server [websocketproxy.rhev.lab.eng.brq.redhat.com]: 
[WARNING] Failed to resolve websocketproxy.rhev.lab.eng.brq.redhat.com using DNS, it can be resolved only locally
[ INFO  ] Checking for product updates...
[ INFO  ] No product updates found
          Configure WebSocket Proxy on this machine? (Yes, No) [Yes]: 
[ INFO  ] Stage: Setup validation
[ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME make sure supported JRE is installed
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140703110715-fwbmar.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140703110727-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed
~~~

and now if ovirt-engine and its deps are installed:

~~~
# engine-setup 
[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20140703123206-7j66by.log
          Version: otopi-1.3.0_master (otopi-1.3.0-0.0.master.20140625.git6b6b75a.el6)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ INFO  ] Stage: Environment customization
         
          --== PRODUCT OPTIONS ==--
         
          Configure Engine on this host (Yes, No) [Yes]: No
         
          --== PACKAGES ==--
         
[ INFO  ] Checking for product updates...
[ INFO  ] No product updates found
         
          --== NETWORK CONFIGURATION ==--
         
          Host fully qualified DNS name of this server [websocketproxy.rhev.lab.eng.brq.redhat.com]: 
[WARNING] Failed to resolve websocketproxy.rhev.lab.eng.brq.redhat.com using DNS, it can be resolved only locally
          Setup can automatically configure the firewall on this system.
          Note: automatic configuration of the firewall may overwrite current settings.
          Do you want Setup to configure the firewall? (Yes, No) [Yes]: 
[ INFO  ] iptables will be configured as firewall manager.
         
          --== DATABASE CONFIGURATION ==--
         
         
          --== OVIRT ENGINE CONFIGURATION ==--
         
         
          --== PKI CONFIGURATION ==--
         
         
          --== APACHE CONFIGURATION ==--
         
         
          --== SYSTEM CONFIGURATION ==--
         
          Configure WebSocket Proxy on this machine? (Yes, No) [Yes]:
~~~

This is odd, IMHO it should work like this:
- check what setup plugins are present
- inform/ask user to approve setup of available plugins
- then check plugins deps/related stuff

Version-Release number of selected component (if applicable):
ovirt-engine-setup-base-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch
ovirt-engine-setup-plugin-ovirt-engine-common-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch
ovirt-engine-setup-plugin-websocket-proxy-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. install ovirt-engine-setup-base-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch ovirt-engine-setup-plugin-ovirt-engine-common-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch ovirt-engine-setup-plugin-websocket-proxy-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch
2. run engine-setup
3.

Actual results:
failure

Expected results:
should work without whole java/jboss/engine stuff

Additional info:

stirabos@ commented:
> The JAVA_HOME issue is new, I agree with you that the whole websocket proxy 
> doesn't require it but I never try it on a system without a JVM.
> Please open another BZ for that.

--- Additional comment from Simone Tiraboschi on 2014-07-03 12:55:00 EDT ---

Sorry, I'm not able to reproduce.

Installing only ovirt-engine-websocket-proxy (and its dependencies) after patch 
http://gerrit.ovirt.org/#/c/29456/ everything seams to work correctly.

On that VM, from ovirt repo, I've only:

[stirabos@f19td4 ~]$ yum list installed | grep ovirt
libgovirt.x86_64                 0.1.0-1.fc19       @updates                    
                                                    @ovirt-3.5-pre              
ovirt-engine-lib.noarch          3.5.0-0.0.master.20140629172304.git0b16ed7.fc19
                                                    @ovirt-3.5-pre              
ovirt-engine-setup-base.noarch   3.5.0-0.0.master.20140629172304.git0b16ed7.fc19
                                                    @ovirt-3.5-pre              
ovirt-engine-setup-plugin-websocket-proxy.noarch
                                                    @ovirt-3.5-pre              
ovirt-engine-websocket-proxy.noarch
                                                    @ovirt-3.5-pre              
ovirt-release35.noarch           001-0.0.alpha1     @/ovirt-release35           
[stirabos@f19td4 ~]$ 

and nothing at all about java

[stirabos@f19td4 ~]$ yum list installed | grep java
[stirabos@f19td4 ~]$ 


and setup completes correctly.

Can you please add the list of ovirt rpm on your setup?

--- Additional comment from Jiri Belka on 2014-07-04 02:41:15 EDT ---

I do not verify patches but only builds. So when your patch is incorporated into new build, please change status for ON_QA for verification. Thanks.

--- Additional comment from Simone Tiraboschi on 2014-07-04 04:44:41 EDT ---

Ok, patch http://gerrit.ovirt.org/#/c/29456/ seams also to solve this.

ovirt-engine-setup-plugin-ovirt-engine-common checks Java presence for product options that depends on that, ovirt-engine-websocket-proxy doesn't need Java but ovirt-engine-setup-plugin-websocket-proxy also doesn't depends from ovirt-engine-setup-plugin-ovirt-engine-common.
I think that on you test system you probably have also ovirt-engine-setup-plugin-ovirt-engine-common and so the problem. You simply don't need it as you also don't need the Java stuff or the DB stuff for the WebSocket proxy alone.

--- Additional comment from Jiri Belka on 2014-07-15 06:10:40 EDT ---

Same comment as https://bugzilla.redhat.com/show_bug.cgi?id=1114978#c11

--- Additional comment from Jiri Belka on 2014-07-16 03:14:01 EDT ---

Not merged probably, like BZ1114978, see there.

--- Additional comment from Simone Tiraboschi on 2014-07-16 03:59:37 EDT ---

patch 29456 (http://gerrit.ovirt.org/#/c/29456/) should solve this too and it was already merged: we just need to wait for a new tagged release before changing to ON_QA, sorry for that.

--- Additional comment from Jiri Belka on 2014-07-22 08:58:02 EDT ---

ok

ovirt-engine-setup-base-3.5.0-0.0.master.20140715172116.git4687dc1.el6.noarch
ovirt-engine-websocket-proxy-3.5.0-0.0.master.20140715172116.git4687dc1.el6.noarch
ovirt-engine-setup-plugin-websocket-proxy-3.5.0-0.0.master.20140715172116.git4687dc1.el6.noarch
ovirt-engine-lib-3.5.0-0.0.master.20140715172116.git4687dc1.el6.noarch

Comment 1 Lukas Svaty 2014-09-16 11:33:11 UTC
verified in vt3.1


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