Comment 10 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

Hi Vinay,

Use this command from cli 'plug_iface'. Attach the invalide attachment.

Please look at the code, python-quantumclient->quantum->client->cli_lib.py

I am also fixing this.

Thanks,
Hitesh

On Tue, May 15, 2012 at 8:39 PM, dan wendlandt <email address hidden>wrote:

> Hi Vinay,
>
> I'm not sure what plugin was used to create the bug, but you should
> easily recreate the circumstances by tweaking the SamplePlugin to raise
> an exception any time plug_attachment is called.
>
> I will note that in the v2.0 version of the API, the use of an explicit
> "plug_attachment" call will go away, so this bug may soon become less
> important.
>
> --
> 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
>