essex: glance and swift intergration question.
I have a swift and glance intergration question.
I varified swift was working with: [root@core01 swift]# swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swift -K verybadpass stat StorageURL: http://127.0.0.1:8080/v1/AUTH_c67bdd38c56f4ca0956cf5ca8d47ff41 (http://127.0.0.1:8080/v1/AUTH_c67bdd3...) Auth Token: 6d844c5299a44ac48aaa7d02af3565d9 Account: AUTH_c67bdd38c56f4ca0956cf5ca8d47ff41 Containers: 1 Objects: 0 Bytes: 0 Accept-Ranges: bytes X-Trans-Id: tx75a4e1ca2465493582aebbf465a95cd1 [root@core01 swift]# swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swift -K verybadpass list glance:
my glance-api.conf looks like
============ Swift Store Options =============================
swift_store_auth_version = 2 swift_store_auth_address = http://127.0.0.1:8080/v1.0/ swift_store_user = service:swift swift_store_key = a19c602bc5f8c10c47ea swift_store_container = glance swift_store_create_container_on_put = True swift_store_large_object_size = 5120 swift_store_large_object_chunk_size = 200
swift_enable_snet = False
I do not know how to setup "swift_store_key" , so I copied the keystone's admin_token.
[root@core01 ~]# glance --os_auth_token=a19c602bc5f8c10c47ea add name=f16-heos is_public=true disk_format=qcow2 container_format=ovf copy_from=http://berrange.fedorapeople.org/images/2012-02-29/f16-x86_64-openstack-sda.qcow2 Failed to add image. Got error: You are not authenticated. Details: 401 Unauthorized
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
Authentication required
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
Any help is greatly appreciated.