Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1824967

Summary: [Cinderlib] - Failed to create managed block domain with 3PAR-ISCSI driver via REST API
Product: [oVirt] ovirt-engine Reporter: Shir Fishbain <sfishbai>
Component: BLL.StorageAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: Shir Fishbain <sfishbai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: aoconnor, bugs, tnisan
Target Milestone: ovirt-4.4.0Keywords: Regression, TestBlocker
Target Release: ---Flags: pm-rhel: ovirt-4.4+
aoconnor: blocker-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 20:00:04 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:
Attachments:
Description Flags
Logs none

Description Shir Fishbain 2020-04-16 18:27:03 UTC
Description of problem:
After succeeded to install the python-3parclient, 4.2.11 version, on the engine. Didn't succeed to create an MBD from 3PAR-ISCSI driver via REST API.

Version-Release number of selected component (if applicable):
ovirt-engine-4.4.0-0.29.master.el8ev.noarch
vdsm-4.40.7-1.el8ev.x86_64
python-3parclient, Version: 4.2.11

How reproducible:
Always

Steps to Reproduce:
1. Create a managed block storage domain with the properties of 3PAR-ISCSI driver via REST api:
Method: POST , https://<<FQDN>>/ovirt-engine/api/storagedomains
Body:
<storage_domain>
   <name>cinder-hp3par2</name>
   <type>managed_block_storage</type>
   <storage>
      <type>managed_block_storage</type>
      <driver_options>
      	<property>
            <name>hpe3par_api_url</name>
            <value>https://3par-cli.mgmt.lab3.tlv.redhat.com:8080/api/v1</value>
         </property>
      	<property>
            <name>san_ip</name>
            <value>10.35.84.14</value>
         </property>
      	<property>
            <name>san_login</name>
            <value>root</value>
         </property>
         <property>
            <name>san_password</name>
            <value>Qum!0net</value>
         </property>
         <property>
            <name>hpe3par_username</name>
            <value>3paredit</value>
         </property>
         <property>
            <name>hpe3par_password</name>
            <value>123456</value>
         </property>
         <property>
            <name>hpe3par_cpg</name>
            <value>[CPG_name]</value>
         </property>
         <property>
            <name>volume_driver</name>
            
     <value>cinder.volume.drivers.hpe.hpe_3par_iscsi.HPE3PARISCSIDriver</value>
         </property>
         <property>
            <name>hpe3par_debug</name>
            <value>False</value>
         </property>
         <property>
            <name>hpe3par_iscsi_chap_enabled</name>
            <value>False</value>
         </property>
         <property>
            <name>max_over_subscription_ratio</name>
            <value>20.0</value>
         </property>
         <property>
            <name>reserved_percentage</name>
            <value>15</value>
         </property>
         <property>
            <name>hpe3par_iscsi_ips</name>
            <value>[10.35.146.1,10.35.146.2,10.35.146.3,10.35.146.4]</value>
         </property>
      </driver_options>
   </storage>
   <host>
      <name>host_mixed_1</name>
   </host>
</storage_domain>

Actual results:
Response:
<fault>
  <detail>[Cannot add Storage. Failed to connect to the managed block domain.]</detail>
  <reason>Operation Failed</reason>
</fault>

from engine.log:
2020-04-16 21:00:29,759+03 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-13) [44370a7d] EVENT_ID: USER_VDC_LOGIN(30), User admin@internal-authz connecting from '10.35.206.237' using session 'Tot69OqXuWXQtgs1tXk+UZWwFkHiEv0liGzbFfNBFPJwioYKtdTdWGncRTyLYKbEBP6Pc3qlXn8HBB+B90lfUQ==' logged in.
2020-04-16 21:00:29,898+03 INFO  [org.ovirt.engine.core.bll.storage.domain.GetManagedBlockStorageStatsCommand] (default task-13) [fc6117d8-19ae-4983-bdcc-36bb117945dc] Running command: GetManagedBlockStorageStatsCommand internal: true.
2020-04-16 21:00:30,509+03 ERROR [org.ovirt.engine.core.common.utils.cinderlib.CinderlibExecutor] (default task-13) [fc6117d8-19ae-4983-bdcc-36bb117945dc] cinderlib execution failed: 
2020-04-16 21:00:30,527+03 ERROR [org.ovirt.engine.core.bll.storage.domain.GetManagedBlockStorageStatsCommand] (default task-13) [fc6117d8-19ae-4983-bdcc-36bb117945dc] Transaction rolled-back for command 'org.ovirt.engine.core.bll.storage.domain.GetManagedBlockStorageStatsCommand'.
2020-04-16 21:00:30,527+03 WARN  [org.ovirt.engine.core.bll.storage.domain.AddManagedBlockStorageDomainCommand] (default task-13) [fc6117d8-19ae-4983-bdcc-36bb117945dc] Validation of action 'AddManagedBlockStorageDomain' failed for user admin@internal-authz. Reasons: VAR__TYPE__STORAGE__DOMAIN,VAR__ACTION__ADD,FAILED_TO_CONNECT_MANAGED_BLOCK_DOMAIN
2020-04-16 21:00:30,530+03 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-13) [] Operation Failed: [Cannot add Storage. Failed to connect to the managed block domain.]
2020-04-16 21:00:30,544+03 INFO  [org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-13) [1b684d98] Running command: LogoutSessionCommand internal: false.
2020-04-16 21:00:30,558+03 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-13) [1b684d98] EVENT_ID: USER_VDC_LOGOUT(31), User admin@internal-authz connected from '10.35.206.237' using session 'Tot69OqXuWXQtgs1tXk+UZWwFkHiEv0liGzbFfNBFPJwioYKtdTdWGncRTyLYKbEBP6Pc3qlXn8HBB+B90lfUQ==' logged out.

Expected results:
The creation of MBD with the 3PAR-ISCSI driver should success vis REST API.

Comment 1 Shir Fishbain 2020-04-16 18:39:48 UTC
Created attachment 1679459 [details]
Logs

Comment 2 RHEL Program Management 2020-04-20 10:23:09 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Avihai 2020-04-20 10:26:53 UTC
Marked as regression as this(CinderLib/Managed storage domain creation on 3PAR storage backend) worked in 4.3.
Marked as test blocker as we can not manually test CinderLib on 3PAR storage tests due to this bug.

Comment 5 Sandro Bonazzola 2020-05-20 20:00:04 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 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.