Error: Unable to retrieve the flavors.

Bug #1634453 reported by XuRong
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
devstack
Expired
Undecided
Unassigned

Bug Description

devstack, When I click on the button "Launch Instance",there is an error: Unable to retrieve the flavors.

Revision history for this message
Syed Ahsan Shamim Zaidi (ahsanmohsin04) wrote :

Seems like there is a miss between Nova and keystone authentication, since keystone talks to nova to get those.

Are you getting a 401 unauthorized ? In that case you might need to check the logs to nova and keystone

Revision history for this message
Syed Ahsan Shamim Zaidi (ahsanmohsin04) wrote :

Also try to run rejoin-stack.sh, maybe that might help

Changed in devstack:
status: New → Invalid
status: Invalid → Incomplete
Revision history for this message
Bernd Bausch (berndbausch) wrote :

I am getting the same error from a devstack I just created. As demo user and admin user, whenever I bring up a launch instance dialog from the instance page or the images page, I get this error message.

No problem when using the CLI "openstack flavor list". As admin, in the Admin->flavors page in Horizon, I see all flavors as well.

Under /var/log/apache2, I find no error around the time I try to launch the instance. horizon_error.log does mention cookies being too large and recommends switching to "file or database-backed sessions". I don't know how to do that, though. It also has a warning:

oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference

Where should I look for errors?

Revision history for this message
Bernd Bausch (berndbausch) wrote :

Another bit of information: n-api.log shows a number of GETs - os-availability-zone, os-keypairs, limits and os-server-groups. There seems to be no attempt from Horizon to get the list of flavors, however.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
Revision history for this message
Aravind (a4aravind) wrote :

I too got the same error from devstack, not able to launch an instance. I'm not getting anything listed under flavors and finally there's an Error:Unable to retrieve the flavors. Since adding the flavor is mandatory I'm not able to move ahead.
Please note that under Admin->Flavors, I see all the flavors listed

Any fix or workaround for this, please ?

Revision history for this message
james wangjz (wangjz) wrote :
Download full text (6.2 KiB)

i got the same error,but not got the error from the start when i use the dashboard.
i used the dashboard without any error when i finished install the openstack enviroment.
i got the error when i launch the instance after i delete the instances、network、router and created the new network and router.
i compared the keystone_access.log with another normal enviroment,it lost the api request about flavor.

the correct api request about flavor is like this:
192.168.1.159 - - [02/Mar/2017:17:55:13 +0800] "GET /dashboard/api/nova/flavors/?get_extras=true&is_public=true HTTP/1.1" 200 4704 "http://172.24.4.168/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"

and there was no any flavor request in the wrong enviroment:
192.168.1.159 - - [02/Mar/2017:17:51:08 +0800] "GET /dashboard/api/keystone/user-session/ HTTP/1.1" 200 601 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:08 +0800] "GET /dashboard/api/keystone/svc-catalog/ HTTP/1.1" 200 4158 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:08 +0800] "GET /dashboard/api/settings/ HTTP/1.1" 200 456 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:08 +0800] "GET /dashboard/api/nova/keypairs/ HTTP/1.1" 200 13 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:08 +0800] "GET /dashboard/api/nova/availzones/ HTTP/1.1" 200 82 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:09 +0800] "GET /dashboard/api/nova/limits/?reserved=true HTTP/1.1" 200 476 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:09 +0800] "GET /dashboard/api/network/securitygroups/ HTTP/1.1" 200 3855 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:08 +0800] "POST /dashboard/api/policy/ HTTP/1.1" 200 17 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:08 +0800] "POST /dashboard/api/policy/ HTTP/1.1" 200 17 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:09 +0800] "GET /dashboard/api/nova/extensions/ HTTP/1.1" 200 22695 "http://172.24.4.100/dashboard/project/instances/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.159 - - [02/Mar/2017:17:51:09 +0800] "GET /dashboard/api/cinder/volumesnapshots/?status=available HTTP/1.1" 200 13 "http:/...

Read more...

Revision history for this message
Michael (aserak) wrote :

I had the issue with IE, while Edge worked.

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.