[Openstack] Keystone Curl can't get tokens by credentials

Dolph Mathews dolph.mathews at gmail.com
Sat Jan 14 16:14:14 UTC 2012


How did you install MySQL? What permissions does keystone's MySQL user have over the database?

-Dolph Mathews

On Jan 14, 2012, at 5:51 AM, Xuyun Zhang <xyzhanggz at gmail.com> wrote:

> I set the database by running ./sampledata
> 
> Then I tried to use curl to get tokens, the command is: 
> 
> $ curl -d '{"auth":{"passwordCredentials":{"username": "admin", "password": "secrete"}}}' -H "Content-type: application/json" http://localhost:35357/v2.0/tokens
> 
> The result is :
> $ {"IdentityFault": {"message": "Unhandled error", "code": "500", "details": "(OperationalError) attempt to write a readonly database u'INSERT INTO tokens (id, user_id, tenant_id, expires) VALUES (?, ?, ?, ?)' ('ce9cc482-7ab5-4785-9152-3cab95e12833', 1, None, '2012-01-15 22:41:14.794615')"}}
> 
> it seemed that the token had been generated yet can't be written to the database.
> 
> my environment:
> swift version: 1.4.3-0ubuntu2 (installed by apt-get install command)
> keystone version: keystone 2012.1-dev (installation directory: /home/chang/keystone)
> 
> Any helpful information is highly appreciated! 
> 
> Regards,
> Sean
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120114/7c2d569b/attachment.html>


More information about the Openstack mailing list