Comment 5 for bug 907123

Revision history for this message
Hitesh Wadekar (hitesh-wadekar) wrote : Re: [Bug 907123] Re: Quantum cli gives an unhelpful error message if the attachment is is invalid

Thanks Brad and Maru,

I will fix it as soon as possible and will send the file for review soon.

Thanks once again.

Regards,
Hitesh Wadekar

On Tue, Apr 24, 2012 at 1:46 AM, Brad Hall <email address hidden>wrote:

> Hi Hitesh,
>
> If you use the plug_attachment quantum cli command with an attachment
> that is invalid [defined by the plugin] then the error message is
> unhelpful (just a 500). It would be better to have a new exception:
> InvalidAttachmentException (or something like that) to indicate what the
> problem was.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/907123
>
> Title:
> Quantum cli gives an unhelpful error message if the attachment is is
> invalid
>
> Status in OpenStack Quantum (virtual network service):
> Confirmed
>
> Bug description:
> Currently we get a 500, which as mentioned in another bug is
> unhelpful:
>
> Exception:<type 'exceptions.Exception'> - [{'status_code': 500,
> 'message': ''}]
> Command failed with error code: 500
> Error message:<missing>
>
> We could change the exception on an invalid attachment to be a new
> exception (with a new http status code) that will allow us to use the
> arguments passed in to attach_resource in the client_lib.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/quantum/+bug/907123/+subscriptions
>