Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1688248 - Umanaged volumes don't show up on Cinder's manageable-list with 3par FC/iscsi
Summary: Umanaged volumes don't show up on Cinder's manageable-list with 3par FC/iscsi
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Cinder Bugs List
QA Contact: Tzach Shefi
Tana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-13 11:58 UTC by Tzach Shefi
Modified: 2019-03-14 08:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-13 13:41:55 UTC
Target Upstream Version:


Attachments (Terms of Use)
CInder logs (deleted)
2019-03-13 11:58 UTC, Tzach Shefi
no flags Details


Links
System ID Priority Status Summary Last Updated
Launchpad 1819903 None None None 2019-03-13 12:10:15 UTC

Description Tzach Shefi 2019-03-13 11:58:54 UTC
Created attachment 1543607 [details]
CInder logs

Description of problem: Umnaged Cinder volumes don't show up on manageable-list, when testing with 3par FC/iSCSI backend, LVM iSCSI works fine. 

Version-Release number of selected component (if applicable):
python-cinderclient-1.9.0-6.el7ost.noarch
python-cinder-9.1.4-44.el7ost.noarch
openstack-cinder-9.1.4-44.el7ost.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Configure a system with 3par FC or iSCSI backend
cinder service-list
| cinder-volume    | hostgroup@3parfc        | nova | enabled | up    | 2019-03-13T11:39:01.000000 | -               |

The backend config section:
[3parfc]
volume_backend_name = 3parfc
hpe3par_api_url = https://....:8080/api/v1
hpe3par_username = admin
hpe3par_password = .......
hpe3par_cpg = SSD_r5
san_ip = .......
san_login = admin
san_password = ......
volume_driver = cinder.volume.drivers.hpe.hpe_3par_fc.HPE3PARFCDriver
hpe3par_debug = true
hpe3par_snapshot_retention = 0
hpe3par_snapshot_expiration = 1
max_over_subscription_ratio = 20.0
reserved_percentage = 15
use_multipath_for_image_xfer = true
image_volume_cache_enabled = false



2. Create a Cinder volume 
cinder create 1 --name vol1
+--------------------------------+--------------------------------------+
| Property                       | Value                                |
+--------------------------------+--------------------------------------+
| attachments                    | []                                   |
| availability_zone              | nova                                 |
| bootable                       | false                                |
| consistencygroup_id            | None                                 |
| created_at                     | 2019-03-13T11:41:01.000000           |
| description                    | None                                 |
| encrypted                      | False                                |
| id                             | bb75366c-c428-4fb7-81b7-1d6c3f4caccc |
| metadata                       | {}                                   |
| migration_status               | None                                 |
| multiattach                    | False                                |
| name                           | vol1                                 |
| os-vol-host-attr:host          | None                                 |
| os-vol-mig-status-attr:migstat | None                                 |
| os-vol-mig-status-attr:name_id | None                                 |
| os-vol-tenant-attr:tenant_id   | 1fba79e9f1a54ba6bb0f49053a4e9857     |
| replication_status             | disabled                             |
| size                           | 1                                    |
| snapshot_id                    | None                                 |
| source_volid                   | None                                 |
| status                         | creating                             |
| updated_at                     | None                                 |
| user_id                        | 65a72bf00f3e4f9fa1566c027dae6f39     |
| volume_type                    | None                                 |
+--------------------------------+--------------------------------------+

cinder show bb75366c-c428-4fb7-81b7-1d6c3f4caccc
+--------------------------------+--------------------------------------+
| Property                       | Value                                |
+--------------------------------+--------------------------------------+
| attachments                    | []                                   |
| availability_zone              | nova                                 |
| bootable                       | false                                |
| consistencygroup_id            | None                                 |
| created_at                     | 2019-03-13T11:41:01.000000           |
| description                    | None                                 |
| encrypted                      | False                                |
| id                             | bb75366c-c428-4fb7-81b7-1d6c3f4caccc |
| metadata                       | {}                                   |
| migration_status               | None                                 |
| multiattach                    | False                                |
| name                           | vol1                                 |
| os-vol-host-attr:host          | hostgroup@3parfc#SSD_r5              |
| os-vol-mig-status-attr:migstat | None                                 |
| os-vol-mig-status-attr:name_id | None                                 |
| os-vol-tenant-attr:tenant_id   | 1fba79e9f1a54ba6bb0f49053a4e9857     |
| replication_status             | disabled                             |
| size                           | 1                                    |
| snapshot_id                    | None                                 |
| source_volid                   | None                                 |
| status                         | available                            |
| updated_at                     | 2019-03-13T11:41:03.000000           |
| user_id                        | 65a72bf00f3e4f9fa1566c027dae6f39     |
| volume_type                    | None                                 |
+--------------------------------+--------------------------------------+

3. Even before I unmanage the ^volume, we see and issue I should have already seen several volumes here. Might be part of the same issue. 

cinder manageable-list hostgroup@3parfc#SSD_r5
+-----------+------+----------------+-----------------+-----------+------------+
| reference | size | safe_to_manage | reason_not_safe | cinder_id | extra_info |
+-----------+------+----------------+-----------------+-----------+------------+
+-----------+------+----------------+-----------------+-----------+------------+

4. Now I'll unmanage the volume we created on step2
cinder  unmanage bb75366c-c428-4fb7-81b7-1d6c3f4caccc

5. Recheck manageable-list, again it's empty. We should have at least gotten this volume we unmanged on step 3. 

cinder manageable-list hostgroup@3parfc#SSD_r5 
+-----------+------+----------------+-----------------+-----------+------------+
| reference | size | safe_to_manage | reason_not_safe | cinder_id | extra_info |
+-----------+------+----------------+-----------------+-----------+------------+
+-----------+------+----------------+-----------------+-----------+------------+


Actual results:
Manageable list returns no volumes which we can import. 

Expected results:
I should get a list of volumes on the backend that I can import. 
I tested this on another system same version but with LVM iSCSI and it worked fine, the unmanaged volume would shouldup on the managelable list.  


Additional info: Unsure if it's either a config or 3par specific bug.

https://docs.openstack.org/cinder/rocky/configuration/block-storage/drivers/hpe-3par-driver.html   

supported operation include:
Manage and unmanage a volume.
Manage and unmanage a snapshot.

Comment 1 Eric Harney 2019-03-13 13:41:17 UTC
3par hasn't implemented get_manageable_volumes() yet.


Note You need to log in before you can comment on or make changes to this bug.