我正在尝试使用glace image-delete命令删除bosh图像。
| b0e05888-9179-491c-b6c8-b8dde4d59d78 | BOSH-5b01cc67-c45d-498f-892f-965e3a003906 |
| b1a57b88-6487-4b31-afac-7b4e9cac40cb | BOSH-704b5bdc-cffa-4420-8a93-8489e7c5d1c7 |
| c99b9f15-7515-42ea-944d-76654dcdf319 | BOSH-a7f99575-96d1-4c0b-b385-3e48ce6debd1 |
我可以删除第一张图片,但最后两张是丢错httpinternalservererror(http 500)无法删除图片
我正在使用命令glance image-delete imageid
所有这些图片来自同一个人19070bc010034455ac2d8c52f1ba0f36。 扫视版本是1.1.0
请帮我解决这个问题。
我再次在调试模式下运行此命令。我发布了部分日志
root@vms-inception-2:/opt/cisco/vms-installer/scripts# glance --debug image-delete 897bbe11-0d25-4509-9e01-ef2402c7b1a7
curl -g -i -X DELETE -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}985eb4e6477f217212bb66a91ea5d9979996cdac' -H 'Content-Type: application/octet-stream' --cert None --key None https://us-virginia-1.cloud.cisco.com:9292/v2/images/897bbe11-0d25-4509-9e01-ef2402c7b1a7
Request returned failure status 500.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 700, in main
args.func(client, args)
File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/shell.py", line 321, in do_image_delete
gc.images.delete(args.id)
File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 222, in delete
self.http_client.delete(url)
File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 292, in delete
return self._request('DELETE', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 272, in _request
resp, body_iter = self._handle_response(resp)
File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 93, in _handle_response
raise exc.from_response(resp, resp.content)
HTTPInternalServerError: HTTPInternalServerError (HTTP 500)
HTTPInternalServerError (HTTP 500)
答案 0 :(得分:0)
我使用删除脚本基本上会删除Cf和bosh安装。脚本中有缺陷,在删除波什图像之前先删除了密钥对,波什导演。这可能导致了这个问题。
此外,我从/ root和/ home / ubuntu文件夹中删除了.bosh_config和.bosh_deploy_config文件。这帮我删除了第三个波什图像。
..第二个仍然无法删除。 我正在使用1.1.0版本的兼容性原因。看来这个版本有一些图像创建/删除的错误...希望这在1.2.0版本中得到纠正...不确定这个..:)