Glance configuration Identity credentials
Hi I've been stucked with this for a while... I have read every other questions here related to the issue but none has solved this.
I have set the environment variables for authentication:
# set | grep OS_
OS_AUTH_URL=http://controller:35357/v2.0
OS_PASSWORD=123456
OS_TENANT_NAME=admin
OS_USERNAME=admin
I am able to ping controller (keystone works just fine).
My configuration files for glance are:
#glance-api.conf
# set | grep OS_ [DEFAULT] verbose = True
debug = True
default_store = file
bind_host = 0.0.0.0
bind_port = 9292
log_file = /var/log/glance/api.log
backlog = 4096
workers = 1
================= Syslog Options ============================
================= SSL Options ===============================
================= Security Options ==========================
============ Registry Options ===============================
registry_host = 0.0.0.0
registry_port = 9191
registry_client_protocol = http
============ Notification System Options =====================
notification_driver = noop
rabbit_host = localhost rabbit_port = 5672 rabbit_use_ssl = false rabbit_userid = guest rabbit_password = guest rabbit_virtual_host = / rabbit_notification_exchange = glance rabbit_notification_topic = notifications rabbit_durable_queues = False
qpid_notification_exchange = glance qpid_notification_topic = notifications qpid_hostname = localhost qpid_port = 5672 qpid_username = qpid_password = qpid_sasl_mechanisms = qpid_reconnect_timeout = 0 qpid_reconnect_limit = 0 qpid_reconnect_interval_min = 0 qpid_reconnect_interval_max = 0 qpid_reconnect_interval = 0 qpid_heartbeat = 5 qpid_protocol = tcp qpid_tcp_nodelay = True
============ Filesystem Store Options ========================
filesystem_store_datadir = /var/lib/glance/images/
============ Swift Store Options =============================
swift_store_auth_version = 2
swift_store_auth_address = 127.0.0.1:5000/v2.0/
swift_store_user = jdoe:jdoe
swift_store_key = a86850deb2742ec3cb41518e26aa2d89
swift_store_container = glance
swift_store_create_container_on_put = False
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_enable_snet = False
============ S3 Store Options =============================
s3_store_host = 127.0.0.1:8080/v1.0/
s3_store_access_key = <20-char AWS access key>
s3_store_secret_key = <40-char AWS secret key>
s3_store_bucket = <lowercased 20-char="" aws="" access="" key="">glance
s3_store_create_bucket_on_put = False
============ RBD Store Options =============================
============ Sheepdog Store Options =============================
sheepdog_store_address = localhost
sheepdog_store_port = 7000
sheepdog_store_chunk_size = 64
============ Cinder Store Options ===============================
============ VMware Datastore Store Options =====================
============ Delayed Delete Options =============================
delayed_delete = False
scrub_time = 43200
scrubber_datadir = /var/lib/glance/scrubber
=============== Quota Options ==================================
=============== Image Cache Options =============================
image_cache_dir = /var/lib/glance/image-cache/
=============== Manager Options =================================
=============== Database Options =================================
[database]
sqlite_db = /var/lib/glance/glance.sqlite
backend = sqlalchemy
connection =mysql://glance:123456@controller/glance
[keystone_authtoken] auth_uri=http://controller:5000/v2.0 identity_uri=http://controller:35357 admin_tenant_name = service admin_user = glance admin_password = 123456
[paste_deploy]
flavor=keystone
[store_type_location_strategy]
#glance-registry.conf
[DEFAULT]
bind_host = 0.0.0.0
bind_port = 9191
log_file = /var/log/glance/registry.log
backlog = 4096
api_limit_max = 1000
limit_param_default = 25
================= Syslog Options ============================
================= SSL Options ===============================
================= Database Options ==========================
[database] sqlite_db = /var/lib/glance/glance.sqlite
backend = sqlalchemy
connection =mysql://glance:123456@controller/glance
[keystone_authtoken] auth_uri=http://controller:5000/v2.0 identity_uri=http://controller:35357 admin_tenant_name = service admin_user = glance admin_password = 123456
[paste_deploy]
flavor=keystone
The users have been created, and I have deleted and re created the user multiple times (I am sure I am using the correct password).
Checking the api and registry logs: #registry
2015-02-17 09:56:19.113 1076 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
#api
2015-02-17 07:23:36.810 964 ERROR glance.store.sheepdog [-] Error in store configuration: [Errno 2] No such file or directory
2015-02-17 07:23:36.940 964 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: [Errno 2] No such file or directory Disabling add method.
2015-02-17 07:23:36.940 964 WARNING ...