Icehouse initial setup, error creating admin in keystone
following the documentation and running:
keystone user-create --name=admin --pass=myadminpasss --email=myadmin@myemail.com
An unexpected error prevented the server from fulfilling your request. (HTTP 500)
i see this in the keystone.log
also, this is my db config in keystone.conf
[database]
connection = mysql://keystone:keystonespasswd@controller/keystone # is this correct?
Did you follow all steps on the keystone installation guide (specifically DB creation, step 4 and DB init step 5)?
http://docs.openstack.org/icehouse/in...
The DB config line is correct if you chosen 'keystonespasswd' as 'KEYSTONE_DBPASS' in the previosly referenced guide.
the password is different, i put it in as generic. I followed these steps, per openstack RHEL/Centos installation
yum install openstack-keystone python-keystoneclient
# openstack-config --set /etc/keystone/keystone.conf \ database connection mysql://keystone:KEYSTONE_DBPASS@controller/ keystone ( replacing, keystone_dbpass, with mh own pass)
created mysql and granted privileges, per the doc, cut and paste pretty much, minus password changes
mysql -u root -p mysql> CREATE DATABASE keystone; mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \ IDENTIFIED BY 'KEYSTONE_DBPASS'; mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \ IDENTIFIED BY 'KEYSTONE_DBPASS'; mysql> exit
4.
su -s /bin/sh -c "keystone-manage db_sync" keystone
admin token # ADMIN_TOKEN=$(openssl rand -hex 10)
echo $AD
pki tokens
# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
chown -R keystone:keystone /etc/keystone/ssl # chmod -R o-rwx /etc/keystone/
ok, be sure to do not have spaces in this command (after controller/):
check it in keystone.conf file
the issue was that my server name was not controller, since I'm doing this in a VM, i rolled back the image and renamed it. I no longer get that error, thank you
For me the problem was a few steps back in the installation procedure - Keystone database configuraiton file setup.
for me the fix was to change the line in /etc/keystone/keystone.com from: connection = mysql://keystone:mypass@controller/keystone to: connection = mysql://keystone:mypass@locahost/keystone
I've tried to debug why the name controller is not usefull in my machine, it can be pinged. It is not the HOSTNAME - but when I tried to change my Linux HOSTNAME to controller this didn't seem to fix it and just substituting localhost did. As I understand it this database and keystone instance will only be acessed form this 1 node so this is OK for me.
I was then able to go onto step 5 and create the Keystone database successfully (which is a point I must have either skipped or failed before).