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

core: Uploading an image with an existing disk id #507

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

ArtiomDivak
Copy link
Member

@ArtiomDivak ArtiomDivak commented Jun 30, 2022

While uploading users can choose disk-id for their upload and if
the disk-id was already exists the engine will make a new image
in lock state and fail the process. now it will check the disk-id before
creating and will fail if there is another disk-id with the same number.

Bug-Url: https://bugzilla.redhat.com/2095215
Signed-off-by: Artiom Divak adivak@redhat.com

@ahadas
Copy link
Member

ahadas commented Jun 30, 2022

@ArtiomDivak I didn't look at the code changes but I've noticed that the commit here also doesn't point to the bug, please take a look at how it was done here

@ArtiomDivak ArtiomDivak force-pushed the bug-2095215 branch 2 times, most recently from e21a85b to 83f4e4d Compare July 5, 2022 08:53
@ArtiomDivak ArtiomDivak force-pushed the bug-2095215 branch 2 times, most recently from 8302bd2 to 0dd453b Compare July 6, 2022 06:34
Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestion, besides that looks good

@sandrobonazzola sandrobonazzola added this to the ovirt-4.5.2 milestone Jul 6, 2022
@ArtiomDivak ArtiomDivak force-pushed the bug-2095215 branch 2 times, most recently from b988608 to 5aece15 Compare July 7, 2022 06:25
Copy link
Contributor

@ljelinkova ljelinkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot to add ACTION_TYPE_FAILED_DISK_ALREADY_EXISTS to AppErrors.java

@ahadas
Copy link
Member

ahadas commented Jul 14, 2022

I think you forgot to add ACTION_TYPE_FAILED_DISK_ALREADY_EXISTS to AppErrors.java

indeed

While uploading users can choose disk-id for thier uplaod and if
the disk-id was already existing the engine will make a new image
in lock state and fail the prosces. now it will check the disk-id before
creating and will fail if there is another disk-id with the same number.

Bug-Url: https://bugzilla.redhat.com/2095215
Signed-off-by: Artiom Divak <adivak@redhat.com>
@ahadas
Copy link
Member

ahadas commented Jul 17, 2022

/ost

@ahadas ahadas merged commit d4dbacf into oVirt:master Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants