resizeNotAllowed incorrectly raised

Bug #949444 reported by justinsb
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Anthony Young

Bug Description

While doing a /images/detail request, I got back the error at the bottom of this report. There are two problems:

1) The element is resizeNotAllowed, but I think it's just an auth problem. I'm not asking for a resize!
2) The code in the error and the response code is 403, but the Details says "401..."

If it's relevant, I updated devstack by doing a manual 'git pull' in each directory, and then restarted the services; when this doesn't fail catastrophically (e.g. because of a DB change) it often shows up these problems. I think glance & nova have a different idea on what the auth token should be, and so glance is returning a 401 to nova:

2012-03-07 13:53:32 351 DEBUG [eventlet.wsgi.server] 192.168.71.1 - - [07/Mar/2012 13:53:32] "GET /v1/images/detail?is_public=none HTTP/1.1" 401 464 0.001091

The circumstances that cause this to happen are a different bug though, I think...

---

1 > GET http://192.168.71.1:8774/v2/d4d71f552a20479db094ab44fd9dd7f9/images/detail
1 > X-Auth-Token: b599fcbdf42f4bfeb96818184f650638
1 > Accept: application/xml
1 > Content-Type: application/xml
1 * Client in-bound response
1 < 403
1 < Date: Wed, 07 Mar 2012 21:53:32 GMT
1 < Content-Length: 451
1 < Content-Type: application/xml; charset=UTF-8
1 < Connection: keep-alive
1 < X-Compute-Request-Id: req-7dbc5e6c-e72b-483a-9ea9-5472384d8a78
1 <
<resizeNotAllowed code="403" xmlns="http://docs.openstack.org/compute/api/v1.1"><message>You are not authorized to complete this action.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

 Authentication required </message></resizeNotAllowed>

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Joe Breu (breu) wrote :

Can you add the following to nova.conf and restart nova-api?

auth_strategy=keystone

I was able to resolve this same error in my lab by making this change.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/5740

Changed in nova:
assignee: nobody → Anthony Young (sleepsonthefloor)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/5740
Committed: http://github.com/openstack/nova/commit/71172ac4bb190496c4ef668c3cba6fa9bf5834aa
Submitter: Jenkins
Branch: master

commit 71172ac4bb190496c4ef668c3cba6fa9bf5834aa
Author: Anthony Young <email address hidden>
Date: Fri Mar 23 09:50:39 2012 -0700

    Send a more appropriate error response for 403 in osapi

     * Don't use resizeNotAllowed for 403
     * Fixes bug 949444

    Change-Id: Ib2b5acba291a04e0c0296fa5e8438019983dda20

Changed in nova:
status: In Progress → Fix Committed
tags: added: essex-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/5772

Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-rc2
tags: removed: essex-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (milestone-proposed)

Reviewed: https://review.openstack.org/5772
Committed: http://github.com/openstack/nova/commit/52f3ba8b6d73b894147b753db900dce676b1187e
Submitter: Jenkins
Branch: milestone-proposed

commit 52f3ba8b6d73b894147b753db900dce676b1187e
Author: Anthony Young <email address hidden>
Date: Fri Mar 23 09:50:39 2012 -0700

    Send a more appropriate error response for 403 in osapi

     * Don't use resizeNotAllowed for 403
     * Fixes bug 949444

    Change-Id: Ib2b5acba291a04e0c0296fa5e8438019983dda20

Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.