Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong FS format on empty image creation #5810

Closed
3 tasks
dann1 opened this issue Apr 28, 2022 · 0 comments · Fixed by OpenNebula/docs#2243
Closed
3 tasks

Wrong FS format on empty image creation #5810

dann1 opened this issue Apr 28, 2022 · 0 comments · Fixed by OpenNebula/docs#2243

Comments

@dann1
Copy link
Contributor

dann1 commented Apr 28, 2022

Description
Image creation creates ext2 empty datablock if XFS format is passed

To Reproduce
Create an empty datablock using the optional FS parameter. For example:

root@minione-6:~# oneimage create --size 200 --type datablock --name db_xfs --fs xfs -d 1
ID: 2
root@minione-6:~# oneimage show 2 | grep -i source
SOURCE         : /var/lib/one//datastores/1/5aa8e005041c1cc24dbf9550be4bfcae
root@minione-6:~# file -sL /var/lib/one//datastores/1/5aa8e005041c1cc24dbf9550be4bfcae
/var/lib/one//datastores/1/5aa8e005041c1cc24dbf9550be4bfcae: QEMU QCOW2 Image (v3), 209715200 bytes
root@minione-6:~# modprobe nbd
root@minione-6:~# qemu-nbd -c /dev/nbd0 /var/lib/one//datastores/1/5aa8e005041c1cc24dbf9550be4bfcae
root@minione-6:~# file -sL /dev/nbd0
/dev/nbd0: Linux rev 1.0 ext2 filesystem data, UUID=64eb69ab-77c0-48b2-b400-7609fd497ddc (large files)

Expected behavior
The empty datablock should get an XFS filesystem.

Details

  • Version: 6.0+

Additional context
The datastore driver at some point runs an mkfs -t $FS command. This command by default fails with the following error in the output of mkfs

Your mke2fs.conf file does not define the xfs filesystem type.

However mkfs doesn't fail and instead it defaults to ext2

Progress Status

  • Code commited
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant