Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

glance image-create: Invalid OpenStack Identity credentials.

hello,

I'm performing an OpenStack manual installation, and I got stuck on the "glance" part. I'm follow the guide: http://docs.openstack.org/kilo/install-guide/install/apt/content/glance-install.html

now when I execute:glance image-create --property name "cirros-0.3.3-x86_64" --property disk-format=qcow2 --property container-format=bare --property is-public=False --progress --file /tmp/images/cirros-0.3.3-x86_64-disk.img report err in this part: Invalid OpenStack Identity credentials.

in glance-api.log: 2015-05-15 12:18:36.818 12185 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

2015-05-15 12:18:36.846 12185 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

2015-05-15 12:18:36.846 12185 WARNING keystonemiddleware.auth_token [-] Authorization failed for token 2015-05-15 12:18:36.847 12185 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/image HTTP/1.1" 401 542 0.057455

2015-05-15 12:18:36.849 12185 WARNING keystonemiddleware.auth_token [-] Authorization failed for token

2015-05-15 12:18:36.850 12185 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/metadefs/namespace HTTP/1.1" 401 542 0.000815 2015-05-15 12:18:36.851 12185 WARNING keystonemiddleware.auth_token [-] Authorization failed for token

2015-05-15 12:18:36.851 12185 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/metadefs/resource_type HTTP/1.1" 401 542 0.000776

2015-05-15 12:18:36.953 12184 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

2015-05-15 12:18:36.981 12184 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

2015-05-15 12:18:36.982 12184 WARNING keystonemiddleware.auth_token [-] Authorization failed for token

2015-05-15 12:18:36.982 12184 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/image HTTP/1.1" 401 542 0.068133

I have set enverment variable:

export OS_PROJECT_DOMAIN_ID=default

export OS_USER_DOMAIN_ID=default

export OS_PROJECT_NAME=admin

export OS_TENANT_NAME=admin

export OS_USERNAME=admin

export OS_PASSWORD=admin

export OS_AUTH_URL=http://controller:35357/v2.0

export OS_IMAGE_API_VERSION=2

in glancepapi.conf glance-register.conf:

auth_uri = http://controller:5000

auth_url = http://controller:35357

auth_plugin = password

project_domain_id = default

user_domain_id = default

project_name = service

username = glance

password =glance_pass

controller@controller-Precision-T1700:/var/cache/glance$ openstack user show glance

+----------+----------------------------------+

| Field | Value |

+----------+----------------------------------+

| email | None |

| enabled | True |

| id | c98baebb8a7c4a9ab9d71a6bcd0f4a86 |

| name | glance |

| username | glance |

+----------+----------------------------------+

controller@controller-Precision-T1700:/var/cache/glance$ openstack project show admin

+-------------+----------------------------------+

| Field | Value |

+-------------+----------------------------------+

| description | Admin Project |

| enabled | True |

| id | 2e83a9c4d0c142b1ac81cf2080ce5e77 |

| name | admin |

+-------------+----------------------------------+

controller@controller-Precision-T1700:/var/cache/glance$ openstack service show glance

+-------------+----------------------------------+

| Field | Value |

+-------------+----------------------------------+

| description | OpenStack Image service |

| enabled | True |

| id | 32368916c55b46a38da87658e8f37383 |

| name | glance |

| type | image |

controller@controller-Precision-T1700:/var/cache/glance$ openstack role show admin

+-------+----------------------------------+

| Field | Value |

+-------+----------------------------------+

| id | 37c60ca68c00465aa43684bbd003ece2 |

| name | admin |

+-------+----------------------------------+

glance image-create: Invalid OpenStack Identity credentials.

hello,

I'm performing an OpenStack manual installation, and I got stuck on the "glance" part. I'm follow the guide: http://docs.openstack.org/kilo/install-guide/install/apt/content/glance-install.htmlguide

now when I execute:glance execute:glance image-create --property name "cirros-0.3.3-x86_64" --property disk-format=qcow2 --property container-format=bare --property is-public=False --progress --file /tmp/images/cirros-0.3.3-x86_64-disk.img report err in this part: Invalid OpenStack Identity credentials.

in glance-api.log: glance-api.log:

2015-05-15 12:18:36.818 12185 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

"Unauthorized"}} 2015-05-15 12:18:36.846 12185 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

"Unauthorized"}} 2015-05-15 12:18:36.846 12185 WARNING keystonemiddleware.auth_token [-] Authorization failed for token 2015-05-15 12:18:36.847 12185 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/image HTTP/1.1" 401 542 0.057455

0.057455 2015-05-15 12:18:36.849 12185 WARNING keystonemiddleware.auth_token [-] Authorization failed for token

token 2015-05-15 12:18:36.850 12185 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/metadefs/namespace HTTP/1.1" 401 542 0.000815 2015-05-15 12:18:36.851 12185 WARNING keystonemiddleware.auth_token [-] Authorization failed for token

token 2015-05-15 12:18:36.851 12185 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/metadefs/resource_type HTTP/1.1" 401 542 0.000776

0.000776 2015-05-15 12:18:36.953 12184 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

"Unauthorized"}} 2015-05-15 12:18:36.981 12184 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

"Unauthorized"}} 2015-05-15 12:18:36.982 12184 WARNING keystonemiddleware.auth_token [-] Authorization failed for token

token 2015-05-15 12:18:36.982 12184 INFO eventlet.wsgi.server [-] 10.0.0.11 - - [15/May/2015 12:18:36] "GET /v2/schemas/image HTTP/1.1" 401 542 0.068133

0.068133

I have set enverment variable:

export OS_PROJECT_DOMAIN_ID=default

OS_PROJECT_DOMAIN_ID=default export OS_USER_DOMAIN_ID=default

OS_USER_DOMAIN_ID=default export OS_PROJECT_NAME=admin

OS_PROJECT_NAME=admin export OS_TENANT_NAME=admin

OS_TENANT_NAME=admin export OS_USERNAME=admin

OS_USERNAME=admin export OS_PASSWORD=admin

OS_PASSWORD=admin export OS_AUTH_URL=http://controller:35357/v2.0

OS_AUTH_URL=http://controller:35357/v2.0 export OS_IMAGE_API_VERSION=2

OS_IMAGE_API_VERSION=2

in glancepapi.conf glance-register.conf:

auth_uri = http://controller:5000

http://controller:5000 auth_url = http://controller:35357

http://controller:35357 auth_plugin = password

password project_domain_id = default

default user_domain_id = default

default project_name = service

service username = glance

glance password =glance_pass

=glance_pass controller@controller-Precision-T1700:/var/cache/glance$ openstack user show glance

+----------+----------------------------------+

glance +----------+----------------------------------+ | Field | Value |

+----------+----------------------------------+

| +----------+----------------------------------+ | email | None |

| | enabled | True |

| | id | c98baebb8a7c4a9ab9d71a6bcd0f4a86 |

| | name | glance |

| | username | glance |

+----------+----------------------------------+

| +----------+----------------------------------+ controller@controller-Precision-T1700:/var/cache/glance$ openstack project show admin

+-------------+----------------------------------+

admin +-------------+----------------------------------+ | Field | Value |

+-------------+----------------------------------+

| +-------------+----------------------------------+ | description | Admin Project |

| | enabled | True |

| | id | 2e83a9c4d0c142b1ac81cf2080ce5e77 |

| | name | admin |

+-------------+----------------------------------+

| +-------------+----------------------------------+ controller@controller-Precision-T1700:/var/cache/glance$ openstack service show glance

+-------------+----------------------------------+

glance +-------------+----------------------------------+ | Field | Value |

+-------------+----------------------------------+

| +-------------+----------------------------------+ | description | OpenStack Image service |

| | enabled | True |

| | id | 32368916c55b46a38da87658e8f37383 |

| | name | glance |

| | type | image |

| controller@controller-Precision-T1700:/var/cache/glance$ openstack role show admin

+-------+----------------------------------+

admin +-------+----------------------------------+ | Field | Value |

+-------+----------------------------------+

| +-------+----------------------------------+ | id | 37c60ca68c00465aa43684bbd003ece2 |

| | name | admin |

+-------+----------------------------------+

| +-------+----------------------------------+