Generic driver displays incorrect cinder volume capacity

Bug #2060776 reported by Duy Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Triaged
Low
Unassigned

Bug Description

Hello team,

Description
===========

I will manila with generic driver + ceph cinder volume. When I create 1 file share 10G and mount nfs from client. Check with command df -h then mount path displays incorrect size.

On instance server:
/dev/sdb 9.8G 24K 9.3G 1% /shares/6ae1bfcb-a23e-4734-83a8-fda6e39115af

On client mount nfs:
192.168.0.5:/shares/6ae1bfcb-a23e-4734-83a8-fda6e39115af 9.8G 256K 9.3G 1% /mnt/data

Expected result
===============
I have checked with file code generic.py and function _format_device()

def _format_device(self, server_details, volume):
        """Formats device attached to the service vm."""
        self._is_device_file_available(server_details, volume)
        command = ['sudo', 'mkfs.%s' % self.configuration.share_volume_fstype,
                   volume['mountpoint']]
        self._ssh_exec(server_details, command)

and I have read 1 topic as below :
https://askubuntu.com/questions/1348780/why-is-my-disk-size-reduced-after-creating-an-ext4-partition

So I hope we can add command tune2fs after format partition for volume.

This problem maybe not bug on system but i still hope we have update it in next time

Thanks you team

Vida Haririan (vhariria)
tags: added: generic
Vida Haririan (vhariria)
Changed in manila:
status: New → Triaged
Vida Haririan (vhariria)
Changed in manila:
importance: Undecided → Low
tags: added: low-hanging-fruit
Revision history for this message
Vida Haririan (vhariria) wrote :
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.