Ask Your Question
0

HTTP exception thrown: The resource could not be found.

asked 2014-09-08 07:35:29 -0500

S.Bharath gravatar image

updated 2014-09-08 08:49:53 -0500

Hi,

UPDATE1: Keystone logs this message every time i get the unable to retrieve message, funny thing is I have added the project to the flavor and the user is associated to that project so it should inherit the permission but its not doing that and expects to have admin permission for the user to retrieve the flavor details.

2014-09-08 19:14:27.647 4069 WARNING keystone.common.wsgi [-] You are not authorized to perform the requested action, admin_required.

UPDATE: If i set the user's role as "admin" login as that user it will retrieve the flavor without any errors but this cannot be exercised as the user cannot have admin rights but i did this only for testing, problem still remains :(.

I was given a requirement to create 30 VM's, that is 1 VM for each user and total 30 users, they shouldn't see each other's VMs so one way i knew of doing was to create project, a user and assign user to that project and the project is added to a Flavor, while there was no issue initially but after deploying around 20 VMs...whenever i log into users between 1 to 20 up on clicking Instances from the left panel it throws the below errors;-

Error: Unable to retrieve details for instance "77521784-86a1-40e0-a083-ad0b560779dc

and

Error: Unable to retrieve instance size information.

It seems the user's instance list fails to fetch the flavor and then tries to get it via nova-api and that also fails, from the code's logic if it cannot fetch flavor then don't even allow to drill down to instance or show console, below is the exception given in nova-api if anyone can help identify if this is a BUG, if it is fixed. Apache2 log is also giving similar error of resource cannot be found.

2014-09-08 17:44:13.564 4902 INFO nova.osapi_compute.wsgi.server [req-43c1e991-f6a6-4a70-835c-76f6f7b0f25e 3f1474d0b016486c869e488b048ef5bb ab48d34b800545019fae208a43d8c254] 172.31.100.103 "GET /v2/ab48d34b800545019fae208a43d8c254/flavors/detail HTTP/1.1" status: 200 len: 704 time: 0.0099180 2014-09-08 17:44:13.634 4902 INFO nova.api.openstack.wsgi [req-ce6ba4bd-1ac1-4041-859b-7bcd131688ec 3f1474d0b016486c869e488b048ef5bb ab48d34b800545019fae208a43d8c254] HTTP exception thrown: The resource could not be found.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-09 05:15:19 -0500

S.Bharath gravatar image

Workaround: Seems this is a bug where the flavor once updated from horizon increment's the field "id" by +1 in a new row and marks the old record as deleted, when this happens the Instance's flavor id remains the same (is not updated when flavor is updated) work around was to update the instance_type_id in Nova.Instances table to the current version of the flavor's "id" and the problem was solved or just go to instance_types table and update the "is_public" to 1 where "deleted" is 0

edit flag offensive delete link more

Comments

is that a bug? why dont you post a link to it so that people could check if it is still the case

Al-stack gravatar imageAl-stack ( 2016-10-07 03:34:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-08 07:35:29 -0500

Seen: 1,774 times

Last updated: Sep 09 '14