Bug 1664588

Summary: [CinderLib] - Adding managed storage via UI/REST fails
Product: [oVirt] ovirt-engine Reporter: Avihai <aefrat>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED DUPLICATE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.3.0CC: aefrat, bugs, frolland
Target Milestone: ovirt-4.3.1Flags: rule-engine: ovirt-4.3+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-31 14:06:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1539837    
Attachments:
Description Flags
engine log
none
print screen of the issue none

Description Avihai 2019-01-09 09:01:57 UTC
Created attachment 1519377 [details]
engine log

Description of problem:
try to add managed storage via UI/REST API fails

Version-Release number of selected component (if applicable):
Software Version:4.3.0-0.4.master.20190106162157.gitd96a412.el7


How reproducible:
100%

Steps to Reproduce:
1. Add needed cinder DB and cinder driver as in step described at doc:
https://docs.google.com/document/d/1C2vrAf-Wb_f3cprGdCFC77flmTW1VERKlOm482m-bwg/edit?ts=5c334308#

2.Try to add a managed storage type via UI/API with the parameters from the doc at step 1.

Actual results:
Adding managed storage failes.

Expected results:
Adding managed storage should succeed.

Additional info:

Comment 1 Avihai 2019-01-09 09:05:12 UTC
Created attachment 1519378 [details]
print screen of the issue

Comment 2 Fred Rolland 2019-01-31 13:34:19 UTC
Avihai, is this bug still relevant?
If you have more details on the issue, it will be great.

Comment 3 Avihai 2019-01-31 13:47:08 UTC
Fred, this bug looks related to DB initialization issues that are currently done manually see Bug 1669047. 

As we just saw both DB service and ovirt-engine service has to restart(which was not at the doc from the description) also changing pg_hba.conf file (which it's location changed from in 4.3 u/s vs 4.3 d/s)

You can close-duplicate this bug to that bug as it is the root cause for this bug. (unless you think otherwise)

Engine log:
2019-01-08 16:36:10,777+02 INFO  [org.ovirt.engine.core.common.utils.cinderlib.CinderlibExecutor] (default task-6) [a08aa1fb-61d1-4403-8cc3-a87754e8974c] cinderlib output: (psycopg2.OperationalError) asynchronous connection failed

Comment 4 Fred Rolland 2019-01-31 14:06:21 UTC

*** This bug has been marked as a duplicate of bug 1669047 ***