Ask Your Question
0

Can't access volume detail as user (ERROR:Unable to retrieve volume details.)

asked 2019-06-10 13:23:30 -0500

Patg13 gravatar image

updated 2019-06-11 07:38:24 -0500

Hi,

I've got a problem on the openstack web interface. If i'm connected as a user (no admin rights) I can't access any volume details or launch a volume as an instance (ERROR:Unable to retrieve volume details)

If i'm connected as admin, it's working fine.

Sorry if there is informations missing, it's my first question on the forum

Here is the cinder API journal

Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24347]: 2019-06-10 17:50:18.784 24347 INFO cinder.api.openstack.wsgi [req-b779676a-6fa9-4a3f-b2a7-d60832bb79d7 - - - - -] GET http://10.200.10.5:8776/ Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24347]: 2019-06-10 17:50:18.785 24347 DEBUG cinder.api.openstack.wsgi [req-b779676a-6fa9-4a3f-b2a7-d60832bb79d7 - - - - -] Empty body provided in request get_body /openstack/venvs/cinder-18.1.2/lib/python2.7/site-packages/cinder/api/openstack/wsgi.py:718 Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 uwsgi[24339]: /openstack/venvs/cinder-18.1.2/lib/python2.7/site-packages/webob/acceptparse.py:972: DeprecationWarning: The behavior of AcceptValidHeader.best_match is currently being maintained for backward compatibility, but it will be deprecated in the future, as it does not conform to the RFC. Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 uwsgi[24339]: DeprecationWarning, Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24347]: 2019-06-10 17:50:18.786 24347 DEBUG cinder.api.openstack.wsgi [req-b779676a-6fa9-4a3f-b2a7-d60832bb79d7 - - - - -] Calling method 'all' _process_stack /openstack/venvs/cinder-18.1.2/lib/python2.7/site-packages/cinder/api/openstack/wsgi.py:872 Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24347]: 2019-06-10 17:50:18.787 24347 INFO cinder.api.openstack.wsgi [req-b779676a-6fa9-4a3f-b2a7-d60832bb79d7 - - - - -] http://10.200.10.5:8776/ returned with HTTP 300 Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 uwsgi[24339]: [pid: 24347|app: 0|req: 2/31] 10.200.10.11 () {34 vars in 430 bytes} [Mon Jun 10 17:50:18 2019] GET / => generated 750 bytes in 4 msecs (HTTP/1.1 300) 5 headers in 169 bytes (1 switches on core 0) Jun 10 17:50:18 infra1-cinder-api-container-ff4efd95 uwsgi[24339]: [uwsgi-http key: 10.200.10.5:8776 client_addr: 10.200.10.11 client_port: 55472] hr_read(): Connection reset by peer [plugins/http/http.c line 917] Jun 10 17:50:19 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24354]: 2019-06-10 17:50:19.554 24354 DEBUG oslo_policy.policy [req-08b24a80-3ade-426a-afab-ee607d844a28 f4048f45961b7abcb4bef0d34df7b4c8f04b0caa908534bd2f4d49a064fedc4b 14486fbcafa74e37af038b52e354575d - 315a8f841ae94868b716a1d5838d4b97 315a8f841ae94868b716a1d5838d4b97] The policy file policy.yaml could not be found. load_rules /openstack/venvs/cinder-18.1.2/lib/python2.7/site-packages/oslo_policy/policy.py:559 Jun 10 17:50:19 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24354]: 2019-06-10 17:50:19.803 24354 INFO cinder.api.openstack.wsgi [req-08b24a80-3ade-426a-afab-ee607d844a28 f4048f45961b7abcb4bef0d34df7b4c8f04b0caa908534bd2f4d49a064fedc4b 14486fbcafa74e37af038b52e354575d - 315a8f841ae94868b716a1d5838d4b97 315a8f841ae94868b716a1d5838d4b97] GET http://10.200.10.5:8776/v3/14486fbcafa74e37af038b52e354575d/snapshots/detail?volume_id=84764643-c8f2-48e0-ae0d-bd5c9a2af984 (http://10.200.10.5:8776/v3/14486fbcaf...) Jun 10 17:50:19 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24354]: 2019-06-10 17:50:19.803 24354 DEBUG cinder.api.openstack.wsgi [req-08b24a80-3ade-426a-afab-ee607d844a28 f4048f45961b7abcb4bef0d34df7b4c8f04b0caa908534bd2f4d49a064fedc4b 14486fbcafa74e37af038b52e354575d - 315a8f841ae94868b716a1d5838d4b97 315a8f841ae94868b716a1d5838d4b97] Empty body provided in request get_body /openstack/venvs/cinder-18.1.2/lib/python2.7/site-packages/cinder/api/openstack/wsgi.py:718 Jun 10 17:50:19 infra1-cinder-api-container-ff4efd95 cinder-wsgi[24354]: 2019-06-10 17:50:19.803 ...

(more)
edit retag flag offensive close merge delete

Comments

I've got an error in horizon log when I try to access a volume details :

Recoverable error: Invalid filters volume_id are found in query options. (HTTP 400) (Request-ID: req-c44f3e56-6133-4edb-8292-d79d894a0adb)

This error is not there when I'm on the admin account

Patg13 gravatar imagePatg13 ( 2019-06-11 09:50:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-11 13:49:45 -0500

Patg13 gravatar image

After a lot of research, I've found the solution It was a policy problem between cinder and horizon. A patch was created to fix it :

https://github.com/openstack/openstack-ansible-os_cinder/commit/7c90daa9097f816aac797a0d93cabff23bdd7edd (https://github.com/openstack/openstac...)

After fetching it, I've re-run the os-cinder-install.yml playbook.

I am now able to access volume detail as a user and launch instances using only a volume

edit flag offensive delete link more

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

Stats

Asked: 2019-06-10 13:18:04 -0500

Seen: 10 times

Last updated: Jun 11