First time here? Check out the FAQ!
![]() | 1 | initial version |
Thanks Dzung for the answer, but I'm still have some trouble to configure. Can you give more help?
On Swift host: root@saio:/home/swiftdemo# export ST_AUTH=https://172.17.1.125:443/auth/v1.0 root@saio:/home/swiftdemo# export ST_USER=test:tester root@saio:/home/swiftdemo# export ST_KEY=testing root@saio:/home/swiftdemo# swift stat -v StorageURL: https://172.17.1.125:443/v1/AUTH_3852a9fd-b1e5-4498-8aa4-3a557cebff2e Auth Token: AUTH_tk1a85a0af81364aa3ad104c9e035027c6 Account: AUTH_3852a9fd-b1e5-4498-8aa4-3a557cebff2e Containers: 3 Objects: 1 Bytes: 0 Accept-Ranges: bytes
On Glance node:
default_store = swift
swift_store_auth_address = 172.17.1.125:443/v1.0/
swift_store_user = test:tester
swift_store_key = AUTH_tk1a85a0af81364aa3ad104c9e035027c6
swift_store_container = CONTAINER
swift_store_create_container_on_put = True
#
swift_store_auth_address
with 'snet-'.swift_enable_snet = False
Then on glance node, try to add an image. root@glance-node:~# glance add name="swift2" is_public=true < /tmp/test.iso Failed to add image. Got error: 400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Error uploading image: global name 'swift_client' is not defined
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.