Bug 1478986

Summary: [RFE] create database.yml when creating a dedicated database to allow local migrations when upgrading
Product: Red Hat CloudForms Management Engine Reporter: luke couzens <lcouzens>
Component: ApplianceAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED CURRENTRELEASE QA Contact: luke couzens <lcouzens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: abellott, jhardy, ncarboni, obarenbo, simaishi
Target Milestone: GAKeywords: FutureFeature, TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: black:upgrade:migration
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1590846 (view as bug list) Environment:
Last Closed: 2019-02-11 13:54:06 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:
Bug Depends On:    
Bug Blocks: 1590846    

Description luke couzens 2017-08-07 16:01:39 UTC
Description of problem:Create database.yml when creating a dedicated database to allow local migrations when upgrading


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


How reproducible:100%


Steps to Reproduce:
1.provision 2 pre 5.8 cfme appliances
2.setup one dedicated db
3.create external database with secondary appliance
4.add update.repo to /ect/yum.repo.d/ on both appliances
5.stop evm on non database appliance
6.run yum update
7.run vmdb on database appliance
8.run db:migrate on dedicated db appliance

Actual results:Fails due to none existent database.yml 


Expected results:Migration completes successfully


Additional info:
In order to run migration of external db it is necessary to run rake tasks from the external cfme appliance (non-database appliance)

Comment 2 Nick Carboni 2018-05-24 19:36:10 UTC
This was fixed in https://github.com/ManageIQ/manageiq-appliance_console/pull/38 as a part of the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1561075

Moving this to POST.

Comment 4 luke couzens 2018-06-15 14:50:27 UTC
Verified in 5.10