ibm_storage driver: the "OSvol:" prefix should be optional in the volume name

Bug #1908181 reported by dyyang@cn.ibm.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Tushar Trambak Gite

Bug Description

The volumes created on DS8K by the ibm_storage driver all have a prefix "OSvol:" in the name.
And the DS8K storage has a limitation of maximum length of 16 for the volume name:
https://www.ibm.com/support/knowledgecenter/ST5GLJ_8.4.0/com.ibm.storage.ssic.help.doc/f2c_climkfbvol_1kywzf.html
https://www.ibm.com/support/knowledgecenter/ST5GLJ_8.4.0/com.ibm.storage.DS8000.msg/msg_CMUG00269E.html

The current behavior in ibm_storage driver is to add a "OSVol:" prefix and truncate the name if the combined name length is greater than 16.
/usr/lib/python3.6/site-packages/cinder/volume/drivers/ibm/ibm_storage/ds8k_proxy.py
```
            self.ds_name = (
                "OS%s:%s" % ('vol', helper.filter_alnum(self.cinder_name))
            )[:16]
```

In some case, we have common template for the volume name and the truncate will make the volumes created in DS8K backend all with the same name except the last few bits.

The "OSvol:" name prefix makes the customizable bits available less under the limitation of maximum length of 16.

Can we make this prefix as optional?

Revision history for this message
dyyang@cn.ibm.com (dyyang) wrote :
tags: added: ds8k volume-naming
Changed in cinder:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Tushar Trambak Gite (tushargite96) wrote :
Changed in cinder:
status: Triaged → Fix Released
assignee: nobody → Tushar Trambak Gite (tushargite96)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.