-1

我正在尝试使用 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)
4

1 回答 1

0

我正在使用删除脚本,它基本上会删除 Cf 和 bosh 安装。脚本中存在缺陷,在删除 bosh 图像之前先删除了密钥对,bosh 导演。这可能导致了这个问题。

此外,我从 /root 和 /home/ubuntu 文件夹中删除了 .bosh_config 和 .bosh_deploy_config 文件。这帮助我删除了第三个 bosh 图像。

..第二个仍然无法删除。出于兼容性原因,我正在使用 1.1.0 版本的 Glance。似乎这个版本有一些图像创建/删除的错误......希望这在 1.2.0 版本中得到纠正......对此不确定..:)

于 2015-11-28T18:11:38.853 回答