← Back to team overview

openstack team mailing list archive

Re: [cinder] Issue with OpenStack installation on Ubuntu 12.04 LTS

 

I tried the following,
1) Rebooted server and restarted all services: Keystone, Glance, Cinder
2) Disabled SSL in keystone config and restarted service

But still I get the 401 error. I am able to run Keystone and Glance
commands successfully.
It will really helpful if any one can give a hint to debug this further.

Thanks
Sreejith

cinder --debug list

REQ: curl -i http://localhost:5000/v2.0/tokens -X POST -H "Content-Type:
application/json" -H "Accept: application/json" -H "User-Agent:
python-cinderclient" -d '{"auth": {"tenantName": "demo",
"passwordCredentials": {"username": "admin", "password": "secrete"}}}'

RESP: [200] {'date': 'Fri, 07 Jun 2013 06:20:00 GMT', 'content-type':
'application/json', 'content-length': '2467', 'vary': 'X-Auth-Token'}
RESP BODY: {"access": {"token": {"issued_at": "2013-06-07T06:20:00.106371",
"expires": "2013-06-08T06:20:00Z", "id":
"ee3a054d267e4470a6b539acb9226604", "tenant": {"description": "Default
Tenant", "enabled": true, "id": "38574792821d43d58bcecc7760149a90", "name":
"demo"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "
http://localhost:8774/v2/38574792821d43d58bcecc7760149a90";, "region":
"RegionOne", "internalURL": "
http://localhost:8774/v2/38574792821d43d58bcecc7760149a90";, "id":
"3958d10ac48643f7812265cc48dabc2b", "publicURL": "
http://localhost:8774/v2/38574792821d43d58bcecc7760149a90"}],
"endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
[{"adminURL": "http://localhost:9292";, "region": "RegionOne",
"internalURL": "http://localhost:9292";, "id":
"3ca52129990d4cc39e9733cdcb3cf9b1", "publicURL": "http://localhost:9292"}],
"endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints":
[{"adminURL": "http://localhost:8776/v1/38574792821d43d58bcecc7760149a90";,
"region": "RegionOne", "internalURL": "
http://localhost:8776/v1/38574792821d43d58bcecc7760149a90";, "id":
"58885f13d2794787b73e174386e1557b", "publicURL": "
http://localhost:8776/v1/38574792821d43d58bcecc7760149a90"}],
"endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints":
[{"adminURL": "http://localhost:8773/services/Admin";, "region":
"RegionOne", "internalURL": "http://localhost:8773/services/Cloud";, "id":
"9aa14a6266ca44ad9091edfd1726ffe3", "publicURL": "
http://localhost:8773/services/Cloud"}], "endpoints_links": [], "type":
"ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://localhost:8888/v1";,
"region": "RegionOne", "internalURL": "
http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90";, "id":
"a832b7b4ee5c417e8657aa5e35b8c6f5", "publicURL": "
http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90"}],
"endpoints_links": [], "type": "object-store", "name": "swift"},
{"endpoints": [{"adminURL": "http://localhost:35357/v2.0";, "region":
"RegionOne", "internalURL": "http://localhost:5000/v2.0";, "id":
"00996f2061524df898642b463b43a69e", "publicURL":
"http://localhost:5000/v2.0"}],
"endpoints_links": [], "type": "identity", "name": "keystone"}], "user":
{"username": "admin", "roles_links": [], "id":
"bcc02d66f571431daff8fc1c89ebb869", "roles": [{"name": "_member_"},
{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
["9fe2ff9ee4384b1894a90878d3e92bab", "e880a3ec7a464240b5c6b9718f201a34"]}}}


REQ: curl -i
http://localhost:8776/v1/38574792821d43d58bcecc7760149a90/volumes/detail -X
GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-cinderclient" -H
"Accept: application/json" -H "X-Auth-Token:
ee3a054d267e4470a6b539acb9226604"

RESP: [401] {'date': 'Fri, 07 Jun 2013 06:20:00 GMT', 'content-length':
'276', 'content-type': 'text/plain; charset=UTF-8', 'www-authenticate':
"Keystone uri='http://127.0.0.1:35357'"}
RESP BODY: 401 Unauthorized

Thanks
Sreejith

On Thu, Jun 6, 2013 at 6:36 PM, Sreejith N
<sreejith.naarakathil@xxxxxxxxx>wrote:

> Hi,
>            I am getting 'Unauthorized' response when trying to create a
> test volume with cinder. Looking at the traces, token request is authorized
> and successful.
>
> In the second request the "user_id" is null. Is it normal?
>
> $keystone user-list
> +----------------------------------+--------+---------+-------+
> |                id                |  name  | enabled | email |
> +----------------------------------+--------+---------+-------+
> | bcc02d66f571431daff8fc1c89ebb869 | admin  |   True  |       |
> | 614ff08b4f604dadbfb0f2bb66a5f0f4 |  ec2   |   True  |       |
> | 0abdaa883e744cfcb6bc6d011cdc0b82 | glance |   True  |       |
> | 73277295da634a13b21387bf60bfa634 |  nova  |   True  |       |
> | bd376af8d1a84a58ae98a378e32db29d | swift  |   True  |       |
> +----------------------------------+--------+---------+-------+
> Here should I also have a 'cinder' admin role user?
>
> I have verified cinder db connection with it's credentials. Any help or
> hint is greatly appreciated.
>
> Thanks
> Sreejith
>
> $cinder --debug create --display_name test 1
>
> REQ: curl -i http://localhost:5000/v2.0/tokens -X POST -H "Content-Type:
> application/json" -H "Accept: application/json" -H "User-Agent:
> python-cinderclient" -d '{"auth": {"tenantName": "demo",
> "passwordCredentials": {"username": "admin", "password": "secrete"}}}'
>
> RESP: [200] {'date': 'Thu, 06 Jun 2013 12:31:47 GMT', 'content-type':
> 'application/json', 'content-length': '6123', 'vary': 'X-Auth-Token'}
> RESP BODY: {"access": {"token": {"issued_at":
> "2013-06-06T12:31:46.911604", "expires": "2013-06-07T12:31:46Z", "id":
> "MIIKyAYJKoZIhvcNAQcCoIIKuTCCCrUCAQExCTAHBgUrDgMCGjCCCaEGCSqGSIb3DQEHAaCCCZIEggmOeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxMjozMTo0Ni45MTE2MDQiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA3VDEyOjMxOjQ2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkRlZmF1bHQgVGVuYW50IiwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiMzg1NzQ3OTI4MjFkNDNkNThiY2V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xh3Fy+584Achv-ooTi4XN-2LyZAxYnq6Xw0UJwplLIcxePpnJlZWalUWDxBV0NmQ50J5IEJc4ECmCtgXrgX3-wXovn8LHQvfGg0M8PpBmcj6UCyZ10YiW8yzeB8eWSEO2Ff0mplIi1MVP62iDGX+zw==",
> "tenant": {"description": "Default Tenant", "enabled": true, "id":
> "38574792821d43d58bcecc7760149a90", "name": "demo"}}, "serviceCatalog":
> [{"endpoints": [{"adminURL": "
> http://localhost:8774/v2/38574792821d43d58bcecc7760149a90";, "region":
> "RegionOne", "internalURL": "
> http://localhost:8774/v2/38574792821d43d58bcecc7760149a90";, "id":
> "3958d10ac48643f7812265cc48dabc2b", "publicURL": "
> http://localhost:8774/v2/38574792821d43d58bcecc7760149a90"}],
> "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints":
> [{"adminURL": "http://localhost:9292";, "region": "RegionOne",
> "internalURL": "http://localhost:9292";, "id":
> "3ca52129990d4cc39e9733cdcb3cf9b1", "publicURL": "http://localhost:9292"}],
> "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints":
> [{"adminURL": "http://localhost:8776/v1/38574792821d43d58bcecc7760149a90";,
> "region": "RegionOne", "internalURL": "
> http://localhost:8776/v1/38574792821d43d58bcecc7760149a90";, "id":
> "58885f13d2794787b73e174386e1557b", "publicURL": "
> http://localhost:8776/v1/38574792821d43d58bcecc7760149a90"}],
> "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints":
> [{"adminURL": "http://localhost:8773/services/Admin";, "region":
> "RegionOne", "internalURL": "http://localhost:8773/services/Cloud";, "id":
> "9aa14a6266ca44ad9091edfd1726ffe3", "publicURL": "
> http://localhost:8773/services/Cloud"}], "endpoints_links": [], "type":
> "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "
> http://localhost:8888/v1";, "region": "RegionOne", "internalURL": "
> http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90";, "id":
> "a832b7b4ee5c417e8657aa5e35b8c6f5", "publicURL": "
> http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90"}],
> "endpoints_links": [], "type": "object-store", "name": "swift"},
> {"endpoints": [{"adminURL": "http://localhost:35357/v2.0";, "region":
> "RegionOne", "internalURL": "http://localhost:5000/v2.0";, "id":
> "00996f2061524df898642b463b43a69e", "publicURL": "
> http://localhost:5000/v2.0"}], "endpoints_links": [], "type": "identity",
> "name": "keystone"}], "user": {"username": "admin", "roles_links": [],
> "id": "bcc02d66f571431daff8fc1c89ebb869", "roles": [{"name": "_member_"},
> {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles":
> ["9fe2ff9ee4384b1894a90878d3e92bab", "e880a3ec7a464240b5c6b9718f201a34"]}}}
>
>
> REQ: curl -i
> http://localhost:8776/v1/38574792821d43d58bcecc7760149a90/volumes -X POST
> -H "X-Auth-Project-Id: demo" -H "User-Agent: python-cinderclient" -H
> "Content-Type: application/json" -H "Accept: application/json" -H
> "X-Auth-Token:
> MIIKyAYJKoZIhvcNAQcCoIIKuTCCCrUCAQExCTAHBgUrDgMCGjCCCaEGCSqGSIb3DQEHAaCCCZIEggmOeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxMjozMTo0Ni45MTE2MDQiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA3VDEyOjMxOjQ2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkRlZmF1bHQgVGVuYW50IiwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiMzg1NzQ3OTI4MjFkNDNkNThiY2VjYzc3NjAxNDlhOTAiLCAibmFtZSI6ICJkZW1vIn19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vbG9jYWxob3N0Ojg3NzQvdjIvMzg1NzQ3OTI4MjFkNDNkNThiY2VjYzc3NjAxNDl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,
> "source_volid": null, "display_description": null, "snapshot_id": null,
> "user_id": null, "size": 1, "display_name": "test", "imageRef": null,
> "attach_status": "detached", "volume_type": null, "project_id": null,
> "metadata": {}}}'
>
> RESP: [401] {'date': 'Thu, 06 Jun 2013 12:31:47 GMT', 'content-length':
> '276', 'content-type': 'text/plain; charset=UTF-8', 'www-authenticate':
> "Keystone uri='http://127.0.0.1:35357'"}
> RESP BODY: 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
>
> Unauthorized, reauthenticating.
>
>
> On Wed, Jun 5, 2013 at 5:57 PM, Sreejith N <sreejith.naarakathil@xxxxxxxxx
> > wrote:
>
>> 'keystone-manage db_sync' was failing to create the keystone tables. When
>> I used root privileges, it succeeded and tenants, users and roles setup
>> succeeded.
>>
>> BR
>> Sreejith
>>
>>
>> On Wed, Jun 5, 2013 at 3:18 PM, Sreejith N <
>> sreejith.naarakathil@xxxxxxxxx> wrote:
>>
>>> I have the following line in keystone.conf:
>>> connection = mysql://keystone:keystone@localhost/keystone
>>>
>>> mysql> SHOW DATABASES;
>>> +--------------------+
>>> | Database           |
>>> +--------------------+
>>> | information_schema |
>>> | keystone           |
>>>
>>> mysql> select User from mysql.user;
>>> +------------------+
>>> | User             |
>>> +------------------+
>>> | keystone         |
>>>
>>> mysql> show grants for 'keystone'@'localhost';
>>>
>>> +-----------------------------------------------------------------------------------------------------------------+
>>> | Grants for keystone@localhost
>>> |
>>>
>>> +-----------------------------------------------------------------------------------------------------------------+
>>> | GRANT USAGE ON *.* TO 'keystone'@'localhost' IDENTIFIED BY PASSWORD
>>> '*936E8F7AB2E21B47F6C9A7E5D9FE14DBA2255E5A' |
>>> | GRANT ALL PRIVILEGES ON `keystone`.* TO 'keystone'@'localhost'
>>> |
>>>
>>> +-----------------------------------------------------------------------------------------------------------------+
>>>
>>> Also I verified the database connection with the keystone credentials.
>>> What else could go wrong?
>>>
>>> Thanks
>>> Sreejith
>>>
>>>
>>> On Wed, Jun 5, 2013 at 2:53 PM, K, Shanthakumar <shanthakumar.k@xxxxxx>wrote:
>>>
>>>>  Ensure you have provided the passwords correctly in the all the
>>>> configuration file.****
>>>>
>>>> ** **
>>>>
>>>> Its seems your keystone itself not working properly.****
>>>>
>>>> ** **
>>>>
>>>> Thanks****
>>>>
>>>> Shanthakumar K****
>>>>
>>>> ** **
>>>>
>>>> *From:* Openstack [mailto:openstack-bounces+sk13=
>>>> hp.com@xxxxxxxxxxxxxxxxxxx] *On Behalf Of *Sreejith N
>>>> *Sent:* Wednesday, June 05, 2013 2:49 PM
>>>> *To:* openstack@xxxxxxxxxxxxxxxxxxx
>>>> *Subject:* [Openstack] Issue with OpenStack installation on Ubuntu
>>>> 12.04 LTS****
>>>>
>>>> ** **
>>>>
>>>> Hi,****
>>>>
>>>>          I am trying to setup Openstack in a single node architecture
>>>> for evaluation. I am following the Openstack installation Guide for Ubuntu
>>>> 12.04 LTS. I am getting the following error when trying to setup tenants,
>>>> users and roles manually.
>>>>
>>>> OS: Ubuntu 12.04 LTS
>>>> Model: Single node (For trying out OpenStack)****
>>>>
>>>> ** **
>>>>
>>>> Error-1:****
>>>>
>>>> ~$ keystone --debug tenant-create --name demo --description "Default
>>>> Tenant"
>>>> REQ: curl -i http://localhost:35357/v2.0/tenants -X POST -H
>>>> "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H
>>>> "X-Auth-Token: 012345SECRET99TOKEN012345"
>>>> REQ BODY: {"tenant": {"enabled": true, "name": "demo", "description":
>>>> "Default Tenant"}}
>>>>
>>>> RESP: [500] {'date': 'Wed, 05 Jun 2013 09:06:35 GMT', 'content-type':
>>>> 'application/json', 'content-length': '401', 'vary': 'X-Auth-Token'}
>>>> RESP BODY: {"error": {"message": "An unexpected error prevented the
>>>> server from fulfilling your request. (ProgrammingError) (1146, \"Table
>>>> 'keystone.project' doesn't exist\") 'INSERT INTO project (id, name,
>>>> domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)'
>>>> ('9b7781a3a27c4ecaae86e0766999498c', 'demo', 'default', 'Default Tenant',
>>>> 1, '{}')", "code": 500, "title": "Internal Server Error"}}
>>>>
>>>> Request returned failure status: 500
>>>> Unable to communicate with identity service: {"error": {"message": "An
>>>> unexpected error prevented the server from fulfilling your request.
>>>> (ProgrammingError) (1146, \"Table 'keystone.project' doesn't exist\")
>>>> 'INSERT INTO project (id, name, domain_id, description, enabled, extra)
>>>> VALUES (%s, %s, %s, %s, %s, %s)' ('9b7781a3a27c4ecaae86e0766999498c',
>>>> 'demo', 'default', 'Default Tenant', 1, '{}')", "code": 500, "title":
>>>> "Internal Server Error"}}. (HTTP 500)****
>>>>
>>>> ** **
>>>>
>>>> Error-2:
>>>> ~$ keystone user-list
>>>> Unable to communicate with identity service: {"error": {"message": "An
>>>> unexpected error prevented the server from fulfilling your request.
>>>> (ProgrammingError) (1146, \"Table 'keystone.user' doesn't exist\") 'SELECT
>>>> user.id AS user_id, user.name AS user_name, user.domain_id AS
>>>> user_domain_id, user.password AS user_password, user.enabled AS
>>>> user_enabled, user.extra AS user_extra \\nFROM user' ()", "code": 500,
>>>> "title": "Internal Server Error"}}. (HTTP 500)****
>>>>
>>>> I am stuck here, any help or hint is greatly appreciated.****
>>>>
>>>> Thanks****
>>>>
>>>> Sreejith****
>>>>
>>>
>>>
>>
>