Bug 1093002
Summary: | fail engine startup on incorrect values in osinfo | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Lukas Svaty <lsvaty> | ||||||
Component: | ovirt-engine | Assignee: | Michal Skrivanek <michal.skrivanek> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nisim Simsolo <nsimsolo> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 3.4.0 | CC: | gklein, istein, juan.hernandez, lsurette, lsvaty, mavital, michal.skrivanek, nsimsolo, rbalakri, rgolan, Rhev-m-bugs, srevivo, ykaul | ||||||
Target Milestone: | ovirt-3.6.0-rc | Keywords: | ZStream | ||||||
Target Release: | 3.6.0 | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 1174126 (view as bug list) | Environment: | |||||||
Last Closed: | 2016-04-20 01:37:13 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | 1056965, 1207240 | ||||||||
Bug Blocks: | 1174126 | ||||||||
Attachments: |
|
Description
Lukas Svaty
2014-04-30 12:00:39 UTC
Created attachment 891168 [details]
engine log of login action to WA portal
architecture is either x86_64 or ppc64. can you output your /etc/ovirt-engine/osinfo.conf.d files? or just grep cpuArch /etc/ovirt-engine/osinfo.conf.d/* [] - ll /etc/ovirt-engine/osinfo.conf.d lrwxrwxrwx. 1 root root 55 Apr 25 17:24 00-defaults.properties -> /usr/share/ovirt-engine/conf/osinfo-defaults.properties lrwxrwxrwx. 1 root root 1 Apr 18 12:16 01-link-to-nowhere.properties -> a lrwxrwxrwx. 1 root root 9 Apr 18 12:33 02-link-to-dev-null.properties -> /dev/null lrwxrwxrwx. 1 root root 35 Apr 18 12:34 03-link-to-binary.properties -> /boot/vmlinuz-2.6.32-431.el6.x86_64 -rw-r--r--. 1 root root 0 Apr 18 12:34 04-empty.properties -rw-r--r--. 1 root root 99 Apr 18 12:36 05-encoding.properties -rw-r--r--. 1 root root 40 Apr 18 12:37 06-overridesectvalues.properties -rw-r--r--. 1 root root 40 Apr 18 12:41 07-overridesectvalues.properties -rw-r--r--. 1 root root 133 Apr 18 12:41 08-set-derive.properties -rw-r--r--. 1 root root 157 Apr 18 12:42 09-nonexist-derive.properties -rw-r--r--. 1 root root 954 Apr 18 12:42 10-duplicate.properties --w-------. 1 root root 0 Apr 18 12:43 11-noread.properties -rw-r--r--. 1 root root 124 Apr 18 12:43 13-used.property [] - cd /etc/ovirt-engine/osinfo.d && cpuArch * 00-defaults.properties:os.other.cpuArchitecture.value = x86_64 00-defaults.properties:os.other_ppc64.cpuArchitecture.value = ppc64 grep: 01-link-to-nowhere.properties: No such file or directory 10-duplicate.properties:os.Solaris.cpuArchitecture.value = x86 10-duplicate.properties:os.Solaris.cpuArchitecture.value = x86 @Lukas, then this is not a clean installation. @Roy, as we talked for other properties before, please crash/exit on startup when some fields are missing/duplicate/not perfect. It's admin's editing fault and we don't want to let know that the values are wrong as soon as possible. Michal on the previouse engine os.info was tested as you see in comment 3 afterwards engine-cleanup && engine-setup. Shouldn't /etc/ovirt-engine/os-info.con.d/* be overwritten with new installation? well, no, apparently:) it's not a clean installation anymore. whether it should or should not be that's a different matter… it likely overwrote the defaults file, but not the others custom-added. It's not a good policy to overwrite files which are not yours so I'd say this is an expected behavior (which also menas the bug has lower prio/sev) merged to ovirt-3.5 upstream verified in vt12 feature was reverted for 3.5 GA and a new implementation has been posted This has been fixed in JBoss EAP 6.4.1, there is no change to do in the engine. Not Fixed. 1. oVirt Engine Version: 3.6.0-0.0.master.20150519172219.git9a2e2b3.el6 Testing procedure: 1. Change /etc/ovirt-engine/osinfo.conf.d/00-defaults.properties os.other.bus.value from 64 to 6444 2. Restart ovirt-engine service Actual result: oVirt engine is up and webadmin portal is unavailable. Next ERROR observed in engine.log: 2015-06-01 16:29:10,262 ERROR [org.ovirt.engine.core.bll.Backend] (MSC service thread 1-2) [] Error during initialization: java.lang.Runtime Exception: osinfo properties syntax error: /etc/ovirt-engine/osinfo.conf.d/00-defaults.properties: 49, 21: error: Encountered " <INT> "6444 "" at line 49, column 22. Server log attached (engine.log06012015) Created attachment 1033356 [details]
engine log
see 3.5.z clone for details Verified. After the next ERROR occurs, application deployment stopped: 2015-06-08 17:20:21,998 ERROR [org.ovirt.engine.core.bll.Backend] (MSC service thread 1-2) [] Error during initialization: java.lang.RuntimeException: osinfo properties syntax error: /etc/ovirt-engine/osinfo.conf.d/00-defaults.properties: 49, 21: error: Encountered " <INT> "64111 "" at line 49, column 22. Was expecting one of: <WS> ... <BUS_WIDTH> ... |