← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1490599] Re: Glance returned 500 status code when we add in "depend_on" yourself

 

Reviewed:  https://review.openstack.org/220587
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=7a1bf2ea490645e575f9a57116c530d6cf2d9462
Submitter: Jenkins
Branch:    master

commit 7a1bf2ea490645e575f9a57116c530d6cf2d9462
Author: Darja Shakhray <dshakhray@xxxxxxxxxxxx>
Date:   Fri Sep 4 19:45:17 2015 +0300

    Fix 500 status code when we add in "depend_on" yourself
    
    Forbidden to add yourself on dependence.
    
    ApiImpact
    FastTrack
    
    Closes-bug: #1490599
    Change-Id: If5c60c373c326961aae6fa6ce9c160e1c1e83e55


** Changed in: glance
       Status: In Progress => Fix Released

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

Title:
  Glance returned 500 status code when we add in "depend_on" yourself

Status in Glance:
  Fix Released

Bug description:
  ENVIRONMENT: devstack, Glance (master, 30.08.2015)

  STEPS TO REPRODUCE:
  We have the artifact:
  {"description": null, "published_at": null, "tags": [], "depends_on": null, "created_at": "2015-08-31T10:30:24.000000", "type_name": "MyArtifact", "updated_at": "2015-08-31T10:30:24.000000", "visibility": "private", "id": "3f931cb3-8715-4dff-9d79-639a6853ed14", "type_version": "2.0", "state": "creating", "version": "11.0.0", "references": [], "prop1": null, "prop2": null, "owner": "a82a48dc05df447baab0afe1770c2be8", "image_file": null, "deleted_at": null, "screenshots": [], "int_list": null, "name": "art"}

  Send request:
  curl -H "X-Auth-Token:e9d6e4a533ba4d40b37ebbb7bbe3a1e5" -H "Content-Type:application/json" -X POST -d '{"data":"3f931cb3-8715-4dff-9d79-639a6853ed14"}' http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/05b88273-b7b1-4689-ab1d-130c5c93e280/depends_on -i

  ACTUAL RESULT
  HTTP/1.1 500 Internal Server Error
  Content-Length: 228
  Content-Type: text/html; charset=UTF-8
  X-Openstack-Request-Id: req-2593f86a-83a3-47df-b129-1341e62cfecd
  Date: Mon, 31 Aug 2015 13:20:24 GMT

  <html>
   <head>
    <title>500 Internal Server Error</title>
   </head>
   <body>
    <h1>500 Internal Server Error</h1>
    The server has either erred or is incapable of performing the requested operation.<br /><br />


   </body>

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


References