Bug 1298831

Summary: failed to setup database region after database failure
Product: Red Hat CloudForms Management Engine Reporter: Toni Willberg <twillber>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED WORKSFORME QA Contact: luke couzens <lcouzens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: abellott, jhardy, obarenbo, twillber
Target Milestone: GAFlags: twillber: needinfo-
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: black
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-23 16:02: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:

Description Toni Willberg 2016-01-15 08:39:25 UTC
Description of problem:

 No valid error message when database region setup fails.

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

5.5.0.13

How reproducible:
10=%


Steps to Reproduce:
1. rm -rf  /var/opt/rh/rh-postgresql94/lib/pgsql/data/
2. appliance_console
3. "7" => "1"

Actual results:


It is recommended to use a new database or backup the existing database first.
Warning: SETTING A DATABASE REGION WILL DESTROY ANY EXISTING DATA AND CANNOT BE
UNDONE.

Setting Database Region to: 1
Are you sure you want to continue? (Y/N): y
Setting Database Region...  This process may take a few minutes.

Database region setup failed.

Press any key to continue.





Expected results:

Error code or a message with actual error described.

Additional info:

Yes I know it's not a good idea the remove the PG directory, but it may happen in real life... and it happened to me by accident. :)

Comment 2 Toni Willberg 2016-01-15 08:40:56 UTC
RFE: document steps to re-create the database in this kind of total loss of database

Comment 3 Joe Vlcek 2016-10-31 19:00:45 UTC
Toni,

The appliance_console's error reporting has been improved since this BZ was reported.

Can you please confirm if this is still an issue?

Thank you. JoeV

Comment 4 Toni Willberg 2017-01-18 06:49:22 UTC
Hi Joe, I don't have possibility to test CF currently. Please check with QA.

Comment 5 Joe Vlcek 2017-01-23 16:02:34 UTC
A lot changes have been made to the appliance_console since this issue was
reported. I am unable to recreate this issue. I am marking it CLOSED/WORKSFORME

Please reopen and provide more details if this issue can be recreated.