Bug #4325

Misleading error message in network delete

Added by Dionysis Grigoropoulos over 10 years ago. Updated over 10 years ago.

Status:Closed Start date:09/18/2013
Priority:Low Due date:
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 1.00 hour
Target version:v0.11

Description

When issuing a delete command for a network ID that is owned by another user or a network ID that doesn't exist, kamaki prints a misleading error message. At the moment, there is no error handling for 404 in network delete, so 404 errors are handled as 421 (Network In Use).

kamaki network delete ID_NUMBER
(404) Network with id ID_NUMBER is in use
|  Disconnect all nics/VMs of this network first
|  * to get nics: /network info ID_NUMBER
|  .  (under "attachments" section)
|  * to disconnect: /network disconnect <nic id>
|  NOT FOUND itemNotFound (Network not found.)

Associated revisions

Revision ef3488a7
Added by Stavros Sachtouris over 10 years ago

Gracefuly raise 404 error in network delete

Refs: #4325

History

#1 Updated by Stavros Sachtouris over 10 years ago

  • Target version changed from v0.10 to v0.11

#2 Updated by Stavros Sachtouris over 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by Stavros Sachtouris over 10 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF