Ask Your Question
0

Glance configuration Identity credentials

asked 2015-02-17 10:40:44 -0500

oscar gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2015-02-17 13:33:30 -0500

By seeing your logs sheepdog file is not found once install sheepdog with python cinderclient as given below

# apt-get install sheepdog python-cinderclient

After installing sheepdog restart the glance api and registry services

# service glance-api restart

# service glance-registry restart
edit flag offensive delete link more
0

answered 2015-02-17 14:51:22 -0500

oscar gravatar image

Hello. Thank you for your answer.

It was because I didn’t use the latest version of Juno from the Ubuntu ppa.

I was just able to fix it through the following commands: “apt-get install python-software-properties” “add-apt-repository cloud-archive:juno” “apt-get update && apt-get dist-upgrade”

service glance-api restat && service glance-registry restart

sudo /bin/sh -c "keystone-manage db_sync" keystone

sudo /bin/sh -c "glance-manage db_sync" glance

This solved it for me.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-17 10:40:44 -0500

Seen: 338 times

Last updated: Feb 17 '15