[bug] Renaming image (case only) fails

Hi all,

it seems that there is an incorrect check for duplicate image names, which prohibits renaming images to a new name with different case:

$ oneimage create -d 100 --name test --type DATABLOCK --size 1
ID: 42
$ oneimage rename 42 xxx
$ oneimage rename 42 Xxx
[one.image.rename] image cannot be renamed to Xxx because it collides with image 42
$ oneimage delete 42

This is ONe 6.10.0 CE. Thanks,

-Yenya

Hello @Yenya,

Renaming an image to a name differing only by letter case results in a conflict error due to OpenNebula’s case-insensitive handling of image names.

You can find more information on the documentation

As a workaround, you can rename it by using an intermediate name. However, if you feel this shouldn’t be the behaviour, you are more than welcome to file an issue on the repo.

Let me know, so I can do a follow-up if needed.

Cheers,

Hi @FrancJP - issue created:

-Yenya

1 Like