Bug 1664742

Summary: [CinderLib] - Adding managed storage via webadmin fails as 'volume_backend_name' driver option is allowed to be removed
Product: [oVirt] ovirt-engine Reporter: Avihai <aefrat>
Component: BLL.StorageAssignee: Eyal Shenitzky <eshenitz>
Status: CLOSED CURRENTRELEASE QA Contact: Avihai <aefrat>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: bugs, fkust
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-03-13 16:39:26 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
Video of the issue
none
engine log and rpms.txt none

Description Avihai 2019-01-09 14:54:03 UTC
Created attachment 1519515 [details]
Video of the issue

Description of problem:
Try to add a storage domain via webadmin without filling or removing the  'volume_backend_name' driver option.
-> Action will fail (see attach video capture)

Engine:
2019-01-09 16:46:35,145+02 ERROR [org.ovirt.engine.core.bll.storage.disk.managedblock.GetManagedBlockStorageStatsCommand] (default task-9) [dace773a-9b04-499e-a12c-f8a7067af96e] Failed to fetch Managed block storage stats, output: '__init__() takes exactly 2 arguments (1 given)', '{}': org.codehaus.jackson.JsonParseException: Unexpected character ('_' (code 95)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: java.io.StringReader@a8e7f11; line: 1, column: 2]
	at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433) [jackson-core-asl-1.9.13.jar:1.9.13]


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. Try to add a managed storage domain via webadmin without filling or removing the  'volume_backend_name' driver option.
 
Actual results:
Action will fail

Expected results:
If this driver option is not a must ( in RESTAPI I do not fill it and it works) please remove it.

OR If this driver option is a must :
Either block the possibility to delete this option or make it compulsory to fill the value to this option.

Additional info:
see attach video capture

Comment 1 Avihai 2019-01-09 14:54:34 UTC
Created attachment 1519516 [details]
engine log and rpms.txt

Comment 2 Sandro Bonazzola 2019-01-28 09:34:16 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 3 Avihai 2019-03-06 17:15:40 UTC
verified at 4.3.2.1

Comment 4 Sandro Bonazzola 2019-03-13 16:39:26 UTC
This bugzilla is included in oVirt 4.3.1 release, published on February 28th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.1 release, it has been closed with a resolution of CURRENT RELEASE.

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