Got error from Swift: Container PUT failed: http://172.16.1.59:8080/v1/AUTH_bc790972a6e3411481b675675d2f2ca5/glance 403 Forbidden

Bug #1626346 reported by gengchc2 on 2016-09-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Swift Authentication
Undecided
Unassigned

Bug Description

Install trove by trove-integration,There is a error below:
openstack --os-cloud=devstack-admin --os-region-name=RegionOne image create cirros-0.3.4-x86_64-uec --public --container-format ami --disk-format ami < /opt/stack/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-blank.img

2016-09-22 09:45:47.525 ERROR swiftclient [req-dfddd43d-82fd-4867-a6ce-9833d792cf5c f7d9b374b64d40848da28ca7233c983f dd8332df48d24baa879f44dbdfc9cc66] Container PUT failed: http://172.16.1.59:8080/v1/AUTH_bc790972a6e3411481b675675d2f2ca5/glance 403 Forbidden [first 60 chars of response] <html><head><title>Apache Tomcat/7.0.52 (Ubuntu) - Error rep
2016-09-22 09:45:47.525 TRACE swiftclient Traceback (most recent call last):
2016-09-22 09:45:47.525 TRACE swiftclient File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1647, in _retry
2016-09-22 09:45:47.525 TRACE swiftclient service_token=self.service_token, **kwargs)
2016-09-22 09:45:47.525 TRACE swiftclient File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1005, in put_container
2016-09-22 09:45:47.525 TRACE swiftclient raise ClientException.from_response(resp, 'Container PUT failed', body)
2016-09-22 09:45:47.525 TRACE swiftclient ClientException: Container PUT failed: http://172.16.1.59:8080/v1/AUTH_bc790972a6e3411481b675675d2f2ca5/glance 403 Forbidden [first 60 chars of response] <html><head><title>Apache Tomcat/7.0.52 (Ubuntu) - Error rep
2016-09-22 09:45:47.525 TRACE swiftclient
2016-09-22 09:45:47.527 DEBUG oslo_messaging._drivers.amqpdriver [req-dfddd43d-82fd-4867-a6ce-9833d792cf5c f7d9b374b64d40848da28ca7233c983f dd8332df48d24baa879f44dbdfc9cc66] CAST unique_id: ce29be487f724226b85b5382829042d1 NOTIFY exchange 'glance' topic 'notifications.error' from (pid=29980) _send /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:432
2016-09-22 09:45:47.529 ERROR glance.api.v2.image_data [req-dfddd43d-82fd-4867-a6ce-9833d792cf5c f7d9b374b64d40848da28ca7233c983f dd8332df48d24baa879f44dbdfc9cc66] Failed to upload image data due to internal error
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data Traceback (most recent call last):
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/opt/stack/glance/glance/api/v2/image_data.py", line 115, in upload
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data image.set_data(data, size)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 195, in set_data
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data self.base.set_data(data, size)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/opt/stack/glance/glance/notifier.py", line 479, in set_data
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data _send_notification(notify_error, 'image.upload', msg)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data self.force_reraise()
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data six.reraise(self.type_, self.value, self.tb)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/opt/stack/glance/glance/notifier.py", line 426, in set_data
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data self.repo.set_data(data, size)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/opt/stack/glance/glance/api/policy.py", line 185, in set_data
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data return self.image.set_data(*args, **kwargs)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/opt/stack/glance/glance/quota/__init__.py", line 304, in set_data
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data self.image.set_data(data, size=size)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/opt/stack/glance/glance/location.py", line 440, in set_data
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data verifier=verifier)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 447, in add_to_backend
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data verifier)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 420, in store_add_to_backend
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data verifier=verifier)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/usr/local/lib/python2.7/dist-packages/glance_store/capabilities.py", line 225, in op_checker
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data return store_op_fun(store, *args, **kwargs)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/usr/local/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py", line 839, in add
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data manager.get_connection())
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data File "/usr/local/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py", line 1047, in _create_container_if_missing
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data raise glance_store.BackendException(msg)
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data BackendException: Failed to add container to Swift.
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data Got error from Swift: Container PUT failed: http://172.16.1.59:8080/v1/AUTH_bc790972a6e3411481b675675d2f2ca5/glance 403 Forbidden [first 60 chars of response] <html><head><title>Apache Tomcat/7.0.52 (Ubuntu) - Error rep.
2016-09-22 09:45:47.529 TRACE glance.api.v2.image_data
2016-09-22 09:45:47.761 DEBUG oslo_messaging._drivers.amqpdriver [req-dfddd43d-82fd-4867-a6ce-9833d792cf5c f7d9b374b64d40848da28ca7233c983f dd8332df48d24baa879f44dbdfc9cc66] CAST unique_id: 0d937374141e4cba96e01cf71a18a21b NOTIFY exchange 'glance' topic 'notifications.info' from (pid=29980) _send /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:432
2016-09-22 09:45:47.764 ERROR glance.common.wsgi [req-dfddd43d-82fd-4867-a6ce-9833d792cf5c f7d9b374b64d40848da28ca7233c983f dd8332df48d24baa879f44dbdfc9cc66] Caught error: Failed to add container to Swift.
Got error from Swift: Container PUT failed: http://172.16.1.59:8080/v1/AUTH_bc790972a6e3411481b675675d2f2ca5/glance 403 Forbidden [first 60 chars of response] <html><head><title>Apache Tomcat/7.0.52 (Ubuntu) - Error rep.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers