Bug 1114978
| Summary: | cannot run engine-setup to configure standalone websocket proxy | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Francesco Romani <fromani> |
| Component: | ovirt-engine-core | Assignee: | Simone Tiraboschi <stirabos> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Belka <jbelka> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.5 | CC: | didi, fromani, gklein, iheim, jbelka, rbalakri, stirabos, yeylon |
| Target Milestone: | --- | Flags: | stirabos:
needinfo-
|
| Target Release: | 3.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | integration | ||
| Fixed In Version: | ovirt-3.5.0-beta1.1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-17 12:26:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1080992 | ||
|
Description
Francesco Romani
2014-07-01 11:25:46 UTC
Can you please try after installing the package ovirt-engine-setup-plugin-ovirt-engine-common ? Yes, installing the package solved the engine-setup issue, now it is working However, it requires more dependencies:
$ engine-setup
[ INFO ] Stage: Initializing
[ INFO ] Stage: Environment setup
Configuration files: []
Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20140701134238-qamfge.log
Version: otopi-1.3.0_master (otopi-1.3.0-0.0.master.20140625.git6b6b75a.fc20)
[ INFO ] Stage: Environment packages setup
[ INFO ] Yum Downloading: updates/20/x86_64/primary_db 3.4 M(31%)
[ 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]: No
Host fully qualified DNS name of this server [gamabunta.rokugan.lan]:
[WARNING] Failed to resolve gamabunta.rokugan.lan 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
[ INFO ] Stage: Transaction setup
[ INFO ] Stopping websocket-proxy service
[ INFO ] Stage: Misc configuration
[ INFO ] Stage: Package installation
[ INFO ] Stage: Misc configuration
[ ERROR ] Failed to execute stage 'Misc configuration': Cannot find Jboss at /usr/share/jboss-as
[ INFO ] Yum Performing yum transaction rollback
[ INFO ] Stage: Clean up
Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140701134238-qamfge.log
[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140701134356-setup.conf'
[ INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination
[ ERROR ] Execution of setup failed
Tried to install ovirt-engine-jboss-as after a 'yum search' and a bit of intuition but this installs in /usr/share/ovirt-engine-jboss-as/
and engine-setup is still failing with the error above.
The above in F20. In F19 it works after the installation of ovirt-engine-setup-plugin-ovirt-engine-common websocket proxy indeed shouldn't require ovirt-engine-setup-plugin-ovirt-engine-common cause otherwise you'll need JBoss stuff and so on which are not needed to run just the websocket proxy. Are you experimenting that problem on fedora 20? Simone: yes, https://bugzilla.redhat.com/show_bug.cgi?id=1114978#c3 was on F20 *** Bug 1115856 has been marked as a duplicate of this bug. *** 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 Does this BZ - BZ1114978 - solves JAVA_HOME issue? If not, I'll file new BZ. Thx! I have another patch to move the question about WebSocket proxy configuration under PRODUCT OPTIONS but it depends from another patch that has been merged only this morning. http://gerrit.ovirt.org/#/c/29178/ Under the configuration preview section than you should find a complete recap. --== CONFIGURATION PREVIEW ==-- Application mode : both Update Firewall : True Host FQDN : f19td3.localdomain Datacenter storage type : nfs Firewall manager : firewalld Engine database name : engine Engine database secured connection : False Engine database host : localhost Engine database user name : engine Engine database host name validation : False Engine database port : 5432 Engine installation : True NFS setup : True PKI organization : localdomain NFS mount point : /var/lib/exports/iso-20140703093810 Configure fence_kdump listener : True NFS export ACL : f19td3.localdomain(rw) Configure VDSM on this host : True Local storage domain directory : /var/ext/lib/images Set application as default page : True Configure Apache SSL : True Configure local Engine database : True Configure WebSocket Proxy : True 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. OK, new BZ for JAVA_HOME issue - BZ1115957. Was it included into builds? It doesn't seem so. If not please take back and move to ON_QA only when it a part of a build (we don't not test diffs/source). Thank you.
[root@ovirt ~]# sed -n '28,+6p' /usr/share/ovirt-engine/setup/plugins/ovirt-engine-common/base/dialog/titles.py
from ovirt_engine_setup import constants as osetupcons
from ovirt_engine_setup.engine_common \
import constants as oengcommcons
[root@ovirt ~]# rpm -qf /usr/share/ovirt-engine/setup/plugins/ovirt-engine-common/base/dialog/titles.py
ovirt-engine-setup-base-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch
[root@ovirt ~]# engine-setup
***L:ERROR Internal error: No module named engine_common
Ok, I'm sorry 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 oVirt 3.5 has been released and should include the fix for this issue. |