openvstorage / framework

The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.
Other
27 stars 23 forks source link

Create new disk from GUI with name uppercase letter, changes its device name to lowercase. #928

Closed nhonnavar closed 8 years ago

nhonnavar commented 8 years ago

Issue: Created a disk with name “win2008R2” and in the vpool it shows device name as win2008r2.raw, uppercase R changed to lowercase. This is causing an issue when I connect the vdisk on ISCSI target (kernsafe) server as device name of the vdisk is different than name in the GUI.

Possible fix I tried
Removed lower() function at line number 1170 of /opt/OpenvStorage/ovs/lib/vdisk.py
name = name.strip('/').replace(' ', '_').lower()

Does it causes any issue if device name has uppercase+lowercase letter..?

khenderick commented 8 years ago

Removing the lower/uppercase should not introduce any issues, so it might be a good idea.

wimpers commented 8 years ago

@khenderick should be a small one?

khenderick commented 8 years ago

Fixed by #982, packaged in openvstorage-2.7.3-rev.4061.083329a

JeffreyDevloo commented 8 years ago

Steps

Output

The name is no longer lowercased: selection_002

Packages