Ask Your Question
0

You are not authorized to complete publicize_image action.

asked 2016-12-20 04:52:27 -0500

vathanlal gravatar image

Hello,

I have Openstack newton cluster and when I tried to upload images using horizon as admin user everything is seems to be fine. But as demo user or any other user while uploading images Iam getting error like this in /var/log/apache2/error.log

[Tue Dec 20 11:41:24.408295 2016] [wsgi:error] [pid 11257:tid 140404796880640] Internal Server Error: /horizon/api/glance/images/
[Tue Dec 20 11:41:24.408346 2016] [wsgi:error] [pid 11257:tid 140404796880640] Traceback (most recent call last):
[Tue Dec 20 11:41:24.408353 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Tue Dec 20 11:41:24.408361 2016] [wsgi:error] [pid 11257:tid 140404796880640]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Dec 20 11:41:24.408368 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
[Tue Dec 20 11:41:24.408375 2016] [wsgi:error] [pid 11257:tid 140404796880640]     return self.dispatch(request, *args, **kwargs)
[Tue Dec 20 11:41:24.408382 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
[Tue Dec 20 11:41:24.408388 2016] [wsgi:error] [pid 11257:tid 140404796880640]     return handler(request, *args, **kwargs)
[Tue Dec 20 11:41:24.408395 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/rest/utils.py", line 187, in wrapper
[Tue Dec 20 11:41:24.408402 2016] [wsgi:error] [pid 11257:tid 140404796880640]     return func(self, request)
[Tue Dec 20 11:41:24.408420 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
[Tue Dec 20 11:41:24.408427 2016] [wsgi:error] [pid 11257:tid 140404796880640]     return view_func(*args, **kwargs)
[Tue Dec 20 11:41:24.408433 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/rest/glance.py", line 184, in post
[Tue Dec 20 11:41:24.408440 2016] [wsgi:error] [pid 11257:tid 140404796880640]     image = api.glance.image_create(request, **meta)
[Tue Dec 20 11:41:24.408446 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 415, in image_create
[Tue Dec 20 11:41:24.408452 2016] [wsgi:error] [pid 11257:tid 140404796880640]     image = glanceclient(request).images.create(**kwargs)
[Tue Dec 20 11:41:24.408458 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 235, in create
[Tue Dec 20 11:41:24.408464 2016] [wsgi:error] [pid 11257:tid 140404796880640]     resp, body = self.http_client.post(url, data=image)
[Tue Dec 20 11:41:24.408470 2016] [wsgi:error] [pid 11257:tid 140404796880640]   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 290, in post ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-20 08:20:12 -0500

This indicates that you want to make the image public, which requires the admin role by default.

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

1 follower

Stats

Asked: 2016-12-20 04:52:27 -0500

Seen: 1,268 times

Last updated: Dec 20 '16