Bug 1013946 - [BUG] Custom SSL keystore file not migrated during upgrade to RHEV 3.1
Summary: [BUG] Custom SSL keystore file not migrated during upgrade to RHEV 3.1
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.1.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.3.0
Assignee: Ofer Schreiber
QA Contact: Pavel Stehlik
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-01 06:07 UTC by Bryan Yount
Modified: 2018-12-03 20:08 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-15 06:36:41 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 501573 0 None None None Never

Description Bryan Yount 2013-10-01 06:07:21 UTC
Description of problem:
When RHEV 3.0 is upgraded to 3.1, if a custom SSL keystore is enabled, this keystore is not automatically migrated into the 3.1 environment.

Version-Release number of selected component (if applicable):
rhevm-3.1.0-55
rhevm-setup-3.1.0-55

How reproducible:
Very

Steps to Reproduce:
1. Enable a custom SSL keystore as per the instructions in this kbase article: https://access.redhat.com/site/articles/216903
2. Upgrade to RHEV 3.1
3. Browse to the HTTPS AdminPortal or UserPortal on a fresh web browser where the invalid self-signed certificate was not previously bypassed.

Actual results:
The HTTPS page displays an invalid certificate error

Expected results:
The HTTPS page should display without error

Additional info:
* The name.keystore is found in /etc/pki/rhevm-old/ and it should be copied to /etc/pki/ovirt-engine/
* It should also be chowned ovirt:ovirt
* And added to /usr/share/ovirt-engine/service/engine-service.xml.in

Comment 2 Alon Bar-Lev 2013-10-01 08:44:00 UTC
Custom (manual changed) is not expected to be migrated by product.

Customization of product which is not part of documented and supported interface should be done again.

Please note that overriding files outside of /etc result in losing that customization anyway when rpm is updated, even between rhevm-3.0->rhevm-3.0.

Comment 3 Bryan Yount 2013-10-01 20:33:35 UTC
(In reply to Alon Bar-Lev from comment #2)
> Custom (manual changed) is not expected to be migrated by product.
> 
> Customization of product which is not part of documented and supported
> interface should be done again.
> 
> Please note that overriding files outside of /etc result in losing that
> customization anyway when rpm is updated, even between rhevm-3.0->rhevm-3.0.

It is documented in a tech brief article on our website, therefore it's supported. If that's not the case, we need to pull the tech brief.

I understand that configuration files outside of /etc aren't really safe, however, the keystore file is in /etc/pki. This is a feature that needs to be taken into account with our enterprise customer base. Using a Verisign certificate should be a feature of the product so that users' web browsers will not complain about the self-signed certificate.

Comment 4 Itamar Heim 2013-10-05 18:52:43 UTC
Its an issue for previous versions.
alon - worth clarifying what's the right thing for 3.3 onwards.
for external access (webadmin/user portal)
and for the managed hosts

Comment 5 Alon Bar-Lev 2013-10-05 19:10:06 UTC
(In reply to Itamar Heim from comment #4)
> Its an issue for previous versions.
> alon - worth clarifying what's the right thing for 3.3 onwards.
> for external access (webadmin/user portal)
> and for the managed hosts

external access: already documented (bug#809095)[1].
managed hosts: 3rd party certificate is not supported.

[1] http://documentation-devel.engineering.redhat.com/docs/en-US/Red_Hat_Enterprise_Virtualization/3.2/html-single/Administration_Guide/index.html#Replacing_the_SSL_certificate_used_by_Red_Hat_Enterprise_Virtualization_Manager_to_identify_itself_to_users_connecting_over_https

Comment 6 Bryan Yount 2013-10-09 01:06:02 UTC
(In reply to Alon Bar-Lev from comment #5)
> (In reply to Itamar Heim from comment #4)
> > Its an issue for previous versions.
> > alon - worth clarifying what's the right thing for 3.3 onwards.
> > for external access (webadmin/user portal)
> > and for the managed hosts
> 
> external access: already documented (bug#809095)[1].
> managed hosts: 3rd party certificate is not supported.

Understood about managed hosts not being supported; that is still the default self-signed cert. And for external access, I realize this is documented for 3.2 but that assumes that you are using Apache for your web portals (port 80). But if you've upgraded from RHEV 3.0 initially, you are still using JBoss for the web portals (port 8080). This scenario is not handled by the rhevm-setup scripts for 3.2 and a separate Bug 1016931 has been opened for this issue.

Comment 7 Alon Bar-Lev 2013-10-09 06:40:29 UTC
(In reply to Bryan Yount from comment #6)
> But if you've upgraded from RHEV 3.0 initially, you are
> still using JBoss for the web portals (port 8080).

If you upgrade from configuration without apache you can in addition overwrite the /etc/pki/ovirt-engine/keys/jboss.p12, this certificate is the certificate used for the jboss SSL, similar to apache.p12(and friends) that are used by apache.

Comment 8 Bryan Yount 2013-10-14 23:56:35 UTC
Alon, this BZ was opened only to address upgrading from 3.0 to 3.1 with a custom SSL keystore. I opened Bug 1016931 to deal with 3.1 to 3.2. So, if upgrading to 3.1 with a custom keystore is not supported, then we can CLOSE WONTFIX this bug I guess?

Comment 9 Alon Bar-Lev 2013-10-15 06:36:41 UTC
(In reply to Bryan Yount from comment #8)
> Alon, this BZ was opened only to address upgrading from 3.0 to 3.1 with a
> custom SSL keystore. I opened Bug 1016931 to deal with 3.1 to 3.2. So, if
> upgrading to 3.1 with a custom keystore is not supported, then we can CLOSE
> WONTFIX this bug I guess?

Yes. I try to avoid closing bugs as WONTFIX unless reporter or PM agree.


Note You need to log in before you can comment on or make changes to this bug.