Ask Your Question
0

Multi node Havana set up Fedora 20. Keystone not working [closed]

asked 2014-01-19 07:39:32 -0500

dbaxps gravatar image

updated 2014-01-24 19:04:19 -0500

smaffulli gravatar image

Followed these instructions http://kashyapc.fedorapeople.org/virt/openstack/Two-node-Havana-setup.txt

Just a couple of days ago I had a problem on vm01-controller with /var/log/nova/api.log complains for connections to neutron-server . Neutron CLI worked and reported fine, but nova loaded instance didn't get any IP either on compute or on controller. Attempting to create fresh new VM iinstall . yum -y update as of today on VM F20 I get:

[root@ip-192-169-142-170 ~]$  openstack-db --init --service keystone
mysql-server is not installed.  Would you like to install it now? (y/n): y
[...]
        [... cutting a bunch of useless output from yum]
[...]
Complete!

[root@ip-192-169-142-170 ~]# export SERVICE_TOKEN=$(openssl rand -hex 10)

[root@ip-192-169-142-170 ~]# echo $SERVICE_TOKEN
2d6bd8a829c989af3dac

[root@ip-192-169-142-170 ~]# export SERVICE_ENDPOINT=http://192.168.142.170:35357/v2.0

[root@ip-192-169-142-170 ~]# echo $SERVICE_TOKEN > /tmp/ks_admin_token

[root@ip-192-169-142-170 ~]# openstack-config --set /etc/keystone/keystone.conf 
DEFAULT admin_token $SERVICE_TOKEN

[root@ip-192-169-142-170 ~]# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
2014-01-19 16:12:02.219 1727 INFO keystone.common.openssl [-] openssl genrsa -out /etc/keystone/ssl/certs/cakey.pem 2048

Generating RSA private key, 2048 bit long modulus
[...]
       [... more output cut to improve readibility]
[...]

Write out database with 1 new entries
Data Base Updated

Setting the ownership and starting the service

[root@ip-192-169-142-170 ~]# chown -R keystone:keystone /etc/keystone/ssl

[root@ip-192-169-142-170 ~]# for i in start enable status; \
>     do systemctl $i openstack-keystone; done
ln -s '/usr/lib/systemd/system/openstack-keystone.service' '/etc/systemd/system/multi-user.target.wants/openstack-keystone.service'

openstack-keystone.service - OpenStack Identity Service (code-named Keystone)
   Loaded: loaded (/usr/lib/systemd/system/openstack-keystone.service; enabled)
   Active: active (running) since Sun 2014-01-19 16:12:34 MSK; 589ms ago
 Main PID: 1741 (keystone-all)
   CGroup: /system.slice/openstack-keystone.service
           └─1741 /usr/bin/python /usr/bin/keystone-all --config-file /usr/share/keystone...

Jan 19 16:12:33 ip-192-169-142-170.ip.secureserver.net keystone-all[1741]: 2014-01-19 16:..
Jan 19 16:12:34 ip-192-169-142-170.ip.secureserver.net keystone-all[1741]: 2014-01-19 16:...
Jan 19 16:12:34 ip-192-169-142-170.ip.secureserver.net keystone-all[1741]: 2014-01-19 16:...
]Jan 19 16:12:34 ip-192-169-142-170.ip.secureserver.net systemd[1]: Started OpenStack Iden...
Hint: Some lines were ellipsized, use -l to show in full.

[root@ip-192-169-142-170 ~]# keystone service-create --name keystone --type identity \
>     --description "Keystone Identity Service"

**Unable to establish connection to http://192.168.142.170:35357/v2.0/OS-KSADM/services**
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-01-27 02:39:07.750539

Comments

Did you check anything ? Is it working ? Do you need help ? Do let me know.

dheeru gravatar imagedheeru ( 2014-01-26 06:16:43 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2014-01-20 02:51:20 -0500

dheeru gravatar image

This indicates that either keystone is not started or endpoints are not defined clearly.

edit flag offensive delete link more

Comments

Thank you. It's OK now.

dbaxps gravatar imagedbaxps ( 2014-01-26 09:49:57 -0500 )edit

What was the issue ? Keystone was not running ?

dheeru gravatar imagedheeru ( 2014-01-26 10:24:15 -0500 )edit

Yes, you gave me a correct advice. Keystone exited, I didn't check it Thank you once again

dbaxps gravatar imagedbaxps ( 2014-01-26 11:58:37 -0500 )edit

Need your favor. Can you accept the answer by clicking on right tick which exist next to my answer ? Please click only once. Post this I will close this request.

dheeru gravatar imagedheeru ( 2014-01-26 23:22:01 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-01-19 07:39:32 -0500

Seen: 259 times

Last updated: Jan 26 '14