← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1403422] [NEW] Running "glance --os-image-api-version 2 image-list --visibility test" with incorrect --visibility option throws unclear error.

 

Public bug reported:

I was trying to check image-list based on visibility by using the
following command:

glance --os-image-api-version 2 image-list --visibility test

But I got output:

<html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  Invalid visibility value: test<br /><br />

 </body>
</html> (HTTP 400)

which does not provide any clear information.

Expected result:
Glance should throw an exception with proper message.

** Affects: glance
     Importance: Undecided
     Assignee: Kanchan Gupta (kanchan-gupta1)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Kanchan Gupta (kanchan-gupta1)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1403422

Title:
  Running "glance --os-image-api-version 2 image-list --visibility test"
  with incorrect --visibility option throws unclear error.

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  I was trying to check image-list based on visibility by using the
  following command:

  glance --os-image-api-version 2 image-list --visibility test

  But I got output:

  <html>
   <head>
    <title>400 Bad Request</title>
   </head>
   <body>
    <h1>400 Bad Request</h1>
    Invalid visibility value: test<br /><br />

   </body>
  </html> (HTTP 400)

  which does not provide any clear information.

  Expected result:
  Glance should throw an exception with proper message.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1403422/+subscriptions


Follow ups

References