我刚刚从 OSA-Rocky 升级到 OSA-Stein,一切似乎都运行良好,除非我尝试通过 python-openstackclient CLI 上传图像。我们正在运行 ceph nautilus 作为我们的存储。在命令上运行 --debug 选项会给出以下结果:
###删除大部分调试消息###
Starting new HTTPS connection (2): xxx.xxx.xxx.xxx:9292
[> ] 1%https://xxx.xxx.xxx.xxx:9292 "PUT /v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5/file HTTP/1.1" 409 79
RESP: [409] Connection: close Content-Length: 79 Content-Type: text/plain; charset=UTF-8 x-openstack-request-id: req-bf01af04-aa24-4ba6-bf93-7f909f442f37
RESP BODY: Omitted, Content-Type is set to text/plain; charset=UTF-8. Only application/json responses have their bodies logged.
PUT call to image for https://xxx.xxx.xxx.xxx:9292/v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5/file used request id req-bf01af04-aa24-4ba6-bf93-7f909f442f37
Deleting failed upload of image ubuntu-server-20.04-focal
REQ: curl -g -i --insecure -X DELETE https://xxx.xxx.xxx.xxx:9292/v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5 -H "User-Agent: openstacksdk/0.59.0 keystoneauth1/4.4.0 python-requests/2.26.0 CPython/3.6.8" -H "X-Auth-Token: {SHA256}7413f5abcbdc45993c0b64c560665f198387e1d3a4fa58549b55ba12dc25d03a"
Resetting dropped connection: xxx.xxx.xxx.xxx
https://xxx.xxx.xxx.xxx:9292 "DELETE /v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5 HTTP/1.1" 204 0
RESP: [204] Connection: close Content-Length: 0 Content-Type: text/html; charset=UTF-8 x-openstack-request-id: req-631ee055-77ce-4b6a-8374-d53e3ab0e984
RESP BODY: Omitted, Content-Type is set to text/html; charset=UTF-8. Only application/json responses have their bodies logged.
DELETE call to image for https://xxx.xxx.xxx.xxx:9292/v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5 used request id req-631ee055-77ce-4b6a-8374-d53e3ab0e984
Image creation failed
Traceback (most recent call last):
File "/home/rkruck/.local/lib/python3.6/site-packages/openstack/image/v2/_proxy.py", line 235, in _upload_image
**kwargs)
File "/home/rkruck/.local/lib/python3.6/site-packages/openstack/image/v2/_proxy.py", line 293, in _upload_image_put
exceptions.raise_from_response(response)
File "/home/rkruck/.local/lib/python3.6/site-packages/openstack/exceptions.py", line 238, in raise_from_response
http_status=http_status, request_id=request_id
openstack.exceptions.ConflictException: ConflictException: 409: Client Error for url: https://xxx.xxx.xxx.xxx:9292/v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5/file, Conflict
ConflictException: 409: Client Error for url: https://xxx.xxx.xxx.xxx:9292/v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5/file, Conflict
Traceback (most recent call last):
File "/home/rkruck/.local/lib/python3.6/site-packages/cliff/app.py", line 407, in run_subcommand
result = cmd.run(parsed_args)
File "/home/rkruck/.local/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, in run
return super(Command, self).run(parsed_args)
File "/home/rkruck/.local/lib/python3.6/site-packages/cliff/display.py", line 115, in run
column_names, data = self.take_action(parsed_args)
File "/home/rkruck/.local/lib/python3.6/site-packages/openstackclient/image/v2/image.py", line 502, in take_action
image = image_client.create_image(**kwargs)
File "/home/rkruck/.local/lib/python3.6/site-packages/openstack/image/_base_proxy.py", line 213, in create_image
**image_kwargs)
File "/home/rkruck/.local/lib/python3.6/site-packages/openstack/image/v2/_proxy.py", line 235, in _upload_image
**kwargs)
File "/home/rkruck/.local/lib/python3.6/site-packages/openstack/image/v2/_proxy.py", line 293, in _upload_image_put
exceptions.raise_from_response(response)
File "/home/rkruck/.local/lib/python3.6/site-packages/openstack/exceptions.py", line 238, in raise_from_response
http_status=http_status, request_id=request_id
openstack.exceptions.ConflictException: ConflictException: 409: Client Error for url: https://xxx.xxx.xxx.xxx:9292/v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5/file, Conflict
clean_up CreateImage: ConflictException: 409: Client Error for url: https://xxx.xxx.xxx.xxx:9292/v2/images/395b1140-c0e3-48a9-872e-8b535cb237e5/file, Conflict
END return value: 1
很高兴提供其他任何东西,因为我一直在努力克服这一点。如果我登录到 Horizon,我确实看到了保存图像的尝试,所以我不认为这是身份验证/访问问题。