← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1483353] Re: v1: Updates using x-image-meta-id header provoke E500 or 200

 

** Summary changed:

- v1: incorrect x-image-meta-id header provokes E500
+ v1:  Updates using x-image-meta-id header provoke E500 or 200

** Description changed:

- (Niall)This bug addresses the problem where the id is incorrect.
- 
  $ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439  -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042'  -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8'
  * Hostname was NOT found in DNS cache
  *   Trying 127.0.0.1...
  * Connected to 127.0.0.1 (127.0.0.1) port 9292 (#0)
  > PUT /v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 HTTP/1.1
  > User-Agent: curl/7.35.0
  > Host: 127.0.0.1:9292
  > Accept: */*
  > X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042
  > x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8
  >
  < HTTP/1.1 500 Internal Server Error
  < Content-Type: text/plain
  < Content-Length: 0
  < Date: Mon, 10 Aug 2015 17:00:00 GMT
  < Connection: close
  <
  * Closing connection 0
+ 
+ and
+ 
+ 
+ $ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042' -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8'
+ * Hostname was NOT found in DNS cache
+ * Trying 127.0.0.1...
+ * Connected to 127.0.0.1 (127.0.0.1) port 9292 (#0)
+ > PUT /v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 HTTP/1.1
+ > User-Agent: curl/7.35.0
+ > Host: 127.0.0.1:9292
+ > Accept: */*
+ > X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042
+ > x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8
+ >
+ < HTTP/1.1 500 Internal Server Error
+ < Content-Type: text/plain
+ < Content-Length: 0
+ < Date: Mon, 10 Aug 2015 17:00:00 GMT
+ < Connection: close
+ <
+ * Closing connection 0
+ 
+ Should return 403

** Changed in: glance
    Milestone: None => mitaka-1

** Changed in: glance
   Importance: Undecided => Medium

** Also affects: glance/liberty
   Importance: Undecided
       Status: New

** Changed in: glance/liberty
   Importance: Undecided => Medium

** Changed in: glance/liberty
     Assignee: (unassigned) => Flavio Percoco (flaper87)

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

Title:
  v1:  Updates using x-image-meta-id header provoke E500 or 200

Status in Glance:
  In Progress
Status in Glance liberty series:
  In Progress

Bug description:
  $ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439  -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042'  -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8'
  * Hostname was NOT found in DNS cache
  *   Trying 127.0.0.1...
  * Connected to 127.0.0.1 (127.0.0.1) port 9292 (#0)
  > PUT /v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 HTTP/1.1
  > User-Agent: curl/7.35.0
  > Host: 127.0.0.1:9292
  > Accept: */*
  > X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042
  > x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8
  >
  < HTTP/1.1 500 Internal Server Error
  < Content-Type: text/plain
  < Content-Length: 0
  < Date: Mon, 10 Aug 2015 17:00:00 GMT
  < Connection: close
  <
  * Closing connection 0

  and

  
  $ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042' -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8'
  * Hostname was NOT found in DNS cache
  * Trying 127.0.0.1...
  * Connected to 127.0.0.1 (127.0.0.1) port 9292 (#0)
  > PUT /v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 HTTP/1.1
  > User-Agent: curl/7.35.0
  > Host: 127.0.0.1:9292
  > Accept: */*
  > X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042
  > x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8
  >
  < HTTP/1.1 500 Internal Server Error
  < Content-Type: text/plain
  < Content-Length: 0
  < Date: Mon, 10 Aug 2015 17:00:00 GMT
  < Connection: close
  <
  * Closing connection 0

  Should return 403

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


References