Bug 877748

Summary: Engine-upgrade will overwrite existing certificates and sysprep default location in VDC_Options
Product: Red Hat Enterprise Virtualization Manager Reporter: Alex Lourie <alourie>
Component: ovirt-engine-setupAssignee: Moran Goldboim <mgoldboi>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bazulay, cnegus, dyasny, iheim, mkenneth, Rhev-m-bugs, sgordon, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Release Note
Doc Text:
When upgrading to Red Hat Enterprise Virtualization 3.1 the paths for certificate and sysprep files, stored in the vdc_options table, are reset to their default values. Where non-default options were in use before the upgrade they must be restored manually using the rhevm-config command.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-24 09:31:25 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:

Description Alex Lourie 2012-11-18 14:06:49 UTC
Currently, engine-upgrade will overwrite VDC_Options during 3.0 -> 3.1 upgrade with default values.

The upgrade should honor non-default settings and not change them.

Comment 1 Moran Goldboim 2012-11-19 09:07:37 UTC
the option which will be overridden with 3.0 -> 3.1 upgrade (in case user changed the defaults) are: 
"CABaseDirectory":["/etc/pki/ovirt-engine", 'text'],
"keystoreUrl":["/etc/pki/ovirt-engine/.keystore", 'text'],
"CertificateFileName":["/etc/pki/ovirt-engine/certs/engine.cer", 'text'],
"CAEngineKey":["/etc/pki/ovirt-engine/private/ca.pem", 'text'],
"TruststoreUrl":["/etc/pki/ovirt-engine/.keystore", 'text'],
"ENGINEEARLib":["%s/engine.ear" %(basedefs.DIR_ENGINE), 'text'],
"CACertificatePath":["/etc/pki/ovirt-engine/ca.pem", 'text'],
"CertAlias":["engine", 'text'],
"TruststorePass":[basedefs.CONST_CA_PASS, 'text'],
"keystorePass":[basedefs.CONST_CA_PASS, 'text'],
"SSLEnabled":[ "true", 'text'],
"ScriptsPath":["/usr/share/ovirt-engine", 'text'],
"SysPrepXPPath":["/etc/ovirt-engine/sysprep/sysprep.xp", 'text'],
"SysPrep2K3Path":["/etc/ovirt-engine/sysprep/sysprep.2k3", 'text'],
"SysPrep2K8Path":["/etc/ovirt-engine/sysprep/sysprep.2k8x86", 'text'],
"SysPrep2K8x64Path":["/etc/ovirt-engine/sysprep/sysprep.2k8", 'text'],
"SysPrep2K8R2Path":["/etc/ovirt-engine/sysprep/sysprep.2k8", 'text'],
"SysPrepWindows7Path":["/etc/ovirt-engine/sysprep/sysprep.w7", 'text'],
"SysPrepWindows7x64Path":["/etc/ovirt-engine/sysprep/sysprep.w7x64", 'text'],
"ConfigDir":["/etc/ovirt-engine", 'text'],
"DataDir":["/usr/share/ovirt-engine", 'text']

Comment 5 Chris Negus 2012-12-19 15:00:39 UTC
I noted this issue in the "RHEV 3.0 to 3.1 Upgrade" kbase article (https://access.redhat.com/knowledge/articles/269333). For now, the article notes that any changes to these values are overwritten.