Bug 968906

Summary: upgrade 3.2_pre-relase->3.2 pki artifacts are reset to relative paths
Product: Red Hat Enterprise Virtualization Manager Reporter: Alon Bar-Lev <alonbl>
Component: ovirt-engineAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: Leonid Natapov <lnatapov>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 3.2.0CC: acathrow, alonbl, bazulay, cpelland, iheim, jkt, lpeer, mgoldboi, Rhev-m-bugs, sasundar, yeylon, yzaslavs
Target Milestone: ---Keywords: ZStream
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 969072 (view as bug list) Environment:
Last Closed: 2014-01-21 22:18:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 969072    

Description Alon Bar-Lev 2013-05-30 09:12:23 UTC
BACKGROUND

There is a bug in engine-config that existed since beginning of time, it does not take the CABaseDirectory into account.
However, both the setup and the upgrade set full path for all pki artifacts, this is why this bug has been never discovered.

DESCRIPTION

The database upgrade script puts two values per default, these are relative:
select fn_db_update_config_value('keystoreUrl','keys/engine.p12','general');
select fn_db_update_config_value('TruststoreUrl','.truststore','general');

When system is upgraded from 3.1, after database upgrade the engine-upgrade script will convert keys to PKCS#12 format, and overwrite database settings.

However, if you upgrade from 3.2 to 3.2, then the engine-upgrade script does not overwrite the setting, leaving relative paths.

WORKAROUND

Modify keystoreUrl and truststoreUrl within database to absolute paths.

Comment 3 Itamar Heim 2013-05-30 12:27:59 UTC
moving to modified for 3.3, as issue shouldn't happen.

Comment 7 Leonid Natapov 2013-07-17 12:59:37 UTC
is5. verified.  pki settings moved into configuration

Comment 8 Itamar Heim 2014-01-21 22:18:40 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:25:00 UTC
Closing - RHEV 3.3 Released