Bug 1479859 - yum update from cloudforms 4.5.0 to 4.5.1 creates v2_key
Summary: yum update from cloudforms 4.5.0 to 4.5.1 creates v2_key
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.8.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Nick Carboni
QA Contact: luke couzens
URL:
Whiteboard: upgrade:black
: 1395824 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-09 15:05 UTC by Ryan Spagnola
Modified: 2021-12-10 15:12 UTC (History)
8 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:15:53 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

Description Ryan Spagnola 2017-08-09 15:05:11 UTC
Description of problem:
If you deploy a 4.5.0 appliance and then yum update it to 4.5.1 before you configure it, it appears that somewhere in the yum update process the v2_key gets created. If you then use ``appliance_console_cli`` to try to configure the appliance it errors out and tells you that it found the v2_key and to use the ``--force-key`` flag.


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

How reproducible:
Always

Steps to Reproduce:
1. Deploy 5.8.0 appliance
2. Update appliance to latest release (5.8.1)
3. run the following command: 
appliance_console_cli --key --internal --dbdisk=/dev/sdb --username=root --password=smartvm --dbname=vmdb_production --region=123

Actual results:
appliance states that v2key already exists

Expected results:
configuration success of appliance

Additional info:

Found the same on appliance upgraded from 5.7.2 -> 5.7.3

Comment 2 Nick Carboni 2017-09-18 14:13:30 UTC
Should be fixed by https://github.com/ManageIQ/manageiq-appliance/pull/123

Comment 3 Nick Carboni 2017-09-18 14:14:52 UTC
The key that is generated is of no importance, if you need to join the appliance to a region then you can just remove it and fetch the other key.

If you are creating the database using that key, that is also okay as the key was generated (not shipped with the rpm)

Comment 4 Nick Carboni 2017-09-18 14:20:18 UTC
*** Bug 1395824 has been marked as a duplicate of this bug. ***

Comment 5 luke couzens 2017-10-11 12:25:32 UTC
Verified in 5.9.0.1

Comment 8 errata-xmlrpc 2018-03-01 13:15:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0380


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