# Pastebin xIKvnUmd DEBUG:keystoneauth.session:REQ: curl -g -i -X PATCH http://glance.openstack.svc.cluster.local:80/v2/images/6e6ddf0a-93f2-4817-aa42-cdbb75ae76a1 -H "b'Content-Type': b'application/openstack-images-v2.1-json-patch'" -H "X-Auth-Token: {SHA1}08b6214cead980e419374e72fb456a8762513365" -H "User-Agent: python-glanceclient" -d '[{"op": "add", "path": "/locations/-", "value": {"url": "cinder://f647b442-076c-4b1c-85c1-a778717e4024", "metadata": {}}}]' DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): glance.openstack.svc.cluster.local DEBUG:urllib3.connectionpool:http://glance.openstack.svc.cluster.local:80 "PATCH /v2/images/6e6ddf0a-93f2-4817-aa42-cdbb75ae76a1 HTTP/1.1" 500 228 DEBUG:keystoneauth.session:RESP: [500] Server: nginx/1.15.5 Date: Mon, 09 Sep 2019 12:24:05 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 228 Connection: keep-alive X-Openstack-Request-Id: req-82b8c7fa-0775-4750-8e78-7a665059322e RESP BODY: Omitted, Content-Type is set to text/html; charset=UTF-8. Only application/json responses have their bodies logged. DEBUG:keystoneauth.session:PATCH call to image for http://glance.openstack.svc.cluster.local:80/v2/images/6e6ddf0a-93f2-4817-aa42-cdbb75ae76a1 used request id req-82b8c7fa-0775-4750-8e78-7a665059322e Request returned failure status 500. DEBUG:glanceclient.common.http:Request returned failure status 500. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/glanceclient/shell.py", line 699, in main OpenStackImagesShell().main(argv) File "/usr/lib/python3/dist-packages/glanceclient/shell.py", line 603, in main args.func(client, args) File "/usr/lib/python3/dist-packages/glanceclient/v2/shell.py", line 519, in do_location_add image = gc.images.add_location(args.id, args.url, metadata) File "/usr/lib/python3/dist-packages/glanceclient/v2/images.py", line 370, in add_location response = self._send_image_update_request(image_id, add_patch) File "/usr/lib/python3/dist-packages/glanceclient/common/utils.py", line 545, in inner return RequestIdProxy(wrapped(*args, **kwargs)) File "/usr/lib/python3/dist-packages/glanceclient/v2/images.py", line 354, in _send_image_update_request data=json.dumps(patch_body)) File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 316, in patch return self.request(url, 'PATCH', **kwargs) File "/usr/lib/python3/dist-packages/glanceclient/common/http.py", line 349, in request return self._handle_response(resp) File "/usr/lib/python3/dist-packages/glanceclient/common/http.py", line 98, in _handle_response raise exc.from_response(resp, resp.content) glanceclient.exc.HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500) 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)