yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #59369
[Bug 1646829] [NEW] handle ImageNotAuthorized in API layer
Public bug reported:
a image is not authoried will lead to deploy have this error:
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 631, in create
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions **create_kwargs)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1527, in create
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1111, in _create_instance
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions image_id, boot_meta = self._get_image(context, image_href)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 777, in _get_image
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions image = self.image_api.get(context, image_href)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 475, in show
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions raise exception.ImageNotAuthorized(image_id=1)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions ImageNotAuthorized: Not authorized for image 1.
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions
2016-12-02 13:20:33.423 8679 INFO nova.api.openstack.wsgi [req-d48f57c1-2be4-4c3b-8216-2e87fcae2cb3 704e9da3c19e4cefa59e900f65f3cd60 ba73b7d1ad274dafaf4d0e49d347d446 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
** Affects: nova
Importance: Undecided
Assignee: jichenjc (jichenjc)
Status: New
** Tags: api
** Changed in: nova
Assignee: (unassigned) => jichenjc (jichenjc)
** Tags added: api
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1646829
Title:
handle ImageNotAuthorized in API layer
Status in OpenStack Compute (nova):
New
Bug description:
a image is not authoried will lead to deploy have this error:
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 631, in create
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions **create_kwargs)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1527, in create
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1111, in _create_instance
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions image_id, boot_meta = self._get_image(context, image_href)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 777, in _get_image
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions image = self.image_api.get(context, image_href)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 475, in show
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions raise exception.ImageNotAuthorized(image_id=1)
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions ImageNotAuthorized: Not authorized for image 1.
2016-12-02 13:20:33.422 8679 ERROR nova.api.openstack.extensions
2016-12-02 13:20:33.423 8679 INFO nova.api.openstack.wsgi [req-d48f57c1-2be4-4c3b-8216-2e87fcae2cb3 704e9da3c19e4cefa59e900f65f3cd60 ba73b7d1ad274dafaf4d0e49d347d446 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1646829/+subscriptions
Follow ups