Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 879916

Summary: setup fails on fedora18: Error: failed updating configuration field CAEngineKey to /etc/pki/ovirt-engine/private/ca.pem
Product: [Retired] oVirt Reporter: Ohad Basan <obasan>
Component: ovirt-engine-installerAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 3.1 RCCC: acathrow, alourie, bazulay, dyasny, eedri, iheim, mgoldboi, oourfali, ykaul
Target Milestone: ---   
Target Release: 3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-15 06:47:34 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:
Attachments:
Description Flags
engine-setup.log none

Description Ohad Basan 2012-11-25 12:32:01 UTC
Created attachment 651510 [details]
engine-setup.log

Description of problem:
setup on fedora18 quits when trying to update configuration parameters.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.install fedora 18
2.install ovirt nightly.
3.run engine-setup , answer all the questions until installation begings
  
Actual results:
setup quits
2012-11-25 14:17:05::DEBUG::setup_sequences::62::root:: Traceback (most recent call last):
  File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
    function()
  File "/bin/engine-setup", line 1113, in _updateVDCOptions
    raise Exception(output_messages.ERR_FAILED_UPD_VDC_OPTIONS%(sys.exc_info()[1]))
Exception: Failed updating configuration parameter: Error: failed updating configuration field CAEngineKey to /etc/pki/ovirt-engine/private/ca.pem



Expected results:
setup should finish successfully.

Additional info:

Comment 1 Yair Zaslavsky 2012-11-26 19:29:09 UTC
This happens as a result of upgrade of apache-commons-configuration from 1.6 (fc17) to 1.8 (fc18).
I verified this claim by simply replacing the jar.

I tried to pin point the issue - seems like the setup script is using a configuration properties file which performs include directive to engine-config.properties. PropertiesConfiguration.getKeys() returns an interator that returns only partial list of the keys and then returns an empty string - as a result the transformation to HierarchicalConfiguration fails.

Possible workaround that should be checked is to manually include the engine-config.properties content in the properties file used by the installation

Comment 2 Yair Zaslavsky 2012-11-26 19:56:19 UTC
In reply to comment #1 -
Manage to run engine-config on fc18 -
I fixed the file -

/usr/share/ovirt-engine/conf/engine-config-install.properties

to be in format of:
key1=
key2=
key3=

instead of
key1
key2
key3

and it did the trick
Looks like apache-commons-configuration 1.8 does not recognize the previous format.

Comment 3 Itamar Heim 2012-11-27 07:25:41 UTC
is the reverse true? is the new format supported by a-c-c 1.6?

Comment 4 Yair Zaslavsky 2012-11-27 07:41:19 UTC
Yes, it's a private case of the properties format, so I did not mention it (but I verified it of course).

Comment 5 Yair Zaslavsky 2012-11-27 08:41:40 UTC
Suggested patch upstream:

http://gerrit.ovirt.org/9504

Comment 6 Yair Zaslavsky 2012-11-27 08:41:52 UTC
Suggested patch upstream:

http://gerrit.ovirt.org/9504

Comment 7 Yair Zaslavsky 2012-11-27 08:47:15 UTC
Clearing needinfo that was set by mistake

Comment 9 Itamar Heim 2013-01-16 16:09:43 UTC
3.2 beta built, moving to ON_QA status to allow testing