yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #33562
[Bug 1463310] [NEW] image share to tenant cause internal server error if you execute member-create, member- delete, and member-create again
Public bug reported:
1. Source with user: haozd, tenant Sol-Test.
2. Upload and image :glance image-create --disk-format qcow2 --container-format bare --property architecture=s390x --min-disk 3 --min-ram 1024 --is-public False --file rhel7_small_cloudinit.qcow2 --name rhel7_sharetest
3. Open horizon create 1 new tenant "holly-share" with no user .
4 Create a new user "holly" and add it to tenant "holly-share". https://9.12.35.142/project/images/
4. Run cmd to add-share the image to tenant "holly-share".glance member-create --can-share 52d5d42c-a9bb-40eb-a143-2f0e92559285 9f96d45084f347b9bd2dd24cc02a8b5c
5. Log in with holly, check the image "rhel7_sharetest" is under "shared with me" tab on image-list page.
6. Run cmd to remove the shared image from the tenant. glance member-delete 52d5d42c-a9bb-40eb-a143-2f0e92559285 9f96d45084f347b9bd2dd24cc02a8b5c
7. Log in with holly, check the "shared with me" tab on image-list page is empty.
8. Run cmd to add-share the image to tenant "holly-share" again. Cause Error.
[root@xoc02u28 ˜]# glance member-create 52d5d42c-a9bb-40eb-a143-2f0e92559285 9f96d45084f347b9bd2dd24cc02a8b5c
HTTPInternalServerError (HTTP 500)
9.Check log under /var/log/glance/api.log
2015-06-02 03:45:53.941 6225 ERROR glance.registry.client.v1.client [req-4e7e378f-1980-4382-95f1-c8da30ec53c6 9c8dfcd7ce4c403d8d66f7fbb41c323f a0bfd24eb059416cad239e93aa0474a1 - - -] Registry client request PUT /images/52d5d42c-a9bb-40eb-a143-2f0e92559285/members/9f96d45084f347b9bd2dd24cc02a8b5c raised ServerError
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client Traceback (most recent call last):
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/registry/client/v1/client.py", line 117, in do_request
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client **kwargs)
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 71, in wrapped
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client return func(self, *args, **kwargs)
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 376, in do_request
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client headers=copy.deepcopy(headers))
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 88, in wrapped
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client return func(self, method, url, body, headers)
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 534, in _do_request
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client raise exception.ServerError()
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client ServerError: The request returned 500 Internal Server Error.
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1463310
Title:
image share to tenant cause internal server error if you execute
member-create, member- delete, and member-create again
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
1. Source with user: haozd, tenant Sol-Test.
2. Upload and image :glance image-create --disk-format qcow2 --container-format bare --property architecture=s390x --min-disk 3 --min-ram 1024 --is-public False --file rhel7_small_cloudinit.qcow2 --name rhel7_sharetest
3. Open horizon create 1 new tenant "holly-share" with no user .
4 Create a new user "holly" and add it to tenant "holly-share". https://9.12.35.142/project/images/
4. Run cmd to add-share the image to tenant "holly-share".glance member-create --can-share 52d5d42c-a9bb-40eb-a143-2f0e92559285 9f96d45084f347b9bd2dd24cc02a8b5c
5. Log in with holly, check the image "rhel7_sharetest" is under "shared with me" tab on image-list page.
6. Run cmd to remove the shared image from the tenant. glance member-delete 52d5d42c-a9bb-40eb-a143-2f0e92559285 9f96d45084f347b9bd2dd24cc02a8b5c
7. Log in with holly, check the "shared with me" tab on image-list page is empty.
8. Run cmd to add-share the image to tenant "holly-share" again. Cause Error.
[root@xoc02u28 ˜]# glance member-create 52d5d42c-a9bb-40eb-a143-2f0e92559285 9f96d45084f347b9bd2dd24cc02a8b5c
HTTPInternalServerError (HTTP 500)
9.Check log under /var/log/glance/api.log
2015-06-02 03:45:53.941 6225 ERROR glance.registry.client.v1.client [req-4e7e378f-1980-4382-95f1-c8da30ec53c6 9c8dfcd7ce4c403d8d66f7fbb41c323f a0bfd24eb059416cad239e93aa0474a1 - - -] Registry client request PUT /images/52d5d42c-a9bb-40eb-a143-2f0e92559285/members/9f96d45084f347b9bd2dd24cc02a8b5c raised ServerError
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client Traceback (most recent call last):
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/registry/client/v1/client.py", line 117, in do_request
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client **kwargs)
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 71, in wrapped
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client return func(self, *args, **kwargs)
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 376, in do_request
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client headers=copy.deepcopy(headers))
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 88, in wrapped
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client return func(self, method, url, body, headers)
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 534, in _do_request
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client raise exception.ServerError()
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client ServerError: The request returned 500 Internal Server Error.
2015-06-02 03:45:53.941 6225 TRACE glance.registry.client.v1.client
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1463310/+subscriptions
Follow ups
References