Bug #3256

Internal Server Error when deleting USED images

Added by Boris Parak over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:10/21/2014
Priority:NormalDue date:
Assignee:Carlos Martín% Done:

0%

Category:Core & System
Target version:Release 4.10.1
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.4, OpenNebula 4.6, OpenNebula 4.8

Description

An attempt to delete an image associated with running VMs will produce Internal Server Error, OpenNebula::Error::EINTERNAL in Ruby OCA.

Associated revisions

Revision 526ec6bc
Added by Carlos Martín over 6 years ago

Bug #3256: Change RMDelete return code

Revision 7d95bc09
Added by Carlos Martín over 6 years ago

Bug #3256: Change RMDelete return code

(cherry picked from commit 3484b252233d1e0afa64188b43dc18f09b33e5b9)

History

#1 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Pending to Closed
  • Resolution set to worksforme

This is the expected behavior, in order to not delete an image actively used by a VM. Maybe a non-persistent image could be deleted but we opted to implement the same behavior for every image type.

#2 Updated by Boris Parak over 6 years ago

Ruben S. Montero wrote:

This is the expected behavior, in order to not delete an image actively used by a VM. Maybe a non-persistent image could be deleted but we opted to implement the same behavior for every image type.

I agree, but Internal Server Error is definitely not the right error to report back to the client. It makes sensible error handling by third-party services very difficult. Wouldn't EACTION make much more sense?

#3 Updated by Boris Parak over 6 years ago

Any comments on this? Should the server respond with HTTP 500 which is Internal Server Error usually reserved for unexpected errors?

#4 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Closed to New
  • Assignee set to Carlos Martín
  • Target version set to Release 4.10.1
  • Resolution deleted (worksforme)

re-opening it to look at it...

#5 Updated by Carlos Martín over 6 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

It makes sense, now it's changed to ACTION.
Thanks.

Also available in: Atom PDF