Ask Your Question
0

openstack service create (HTTP 504)

asked 2015-09-29 22:48:53 -0500

navinnuk gravatar image

updated 2015-10-01 16:28:59 -0500

Hello Everyone,

I am currently trying to install Openstack in our test environment on Fedora 22. I am following the manual:

http://docs.openstack.org/kilo/install-guide/install/yum/content/keystone-services.html (http://docs.openstack.org/kilo/instal...)

And I am at the step:

"To create the service entity and API endpoint"

At this step when I issue the following command:

openstack service create --name keystone --description "OpenStack Identity" identity

I get the following error:

ERROR: openstack Gateway Timeout (HTTP 504)

I am not sure whats wrong here. I did some research online and I am not behind a proxy. In fact I am just trying to install the environment. I am not sure what to check. All help and guidance is greatly appreciated.

Navin

==============================================================================================

As Requested

# openstack service create   --name keystone --description "OpenStack Identity" identity --debug

DEBUG: cliff.commandmanager found command 'hypervisor_stats_show'
DEBUG: cliff.commandmanager found command 'security_group_create'
DEBUG: cliff.commandmanager found command 'security_group_rule_list'
DEBUG: cliff.commandmanager found command 'keypair_list'
DEBUG: cliff.commandmanager found command 'flavor_unset'
DEBUG: cliff.commandmanager found command 'keypair_delete'
DEBUG: cliff.commandmanager found command 'host_list'
DEBUG: cliff.commandmanager found command 'keypair_create'
DEBUG: cliff.commandmanager found command 'server_pause'
DEBUG: cliff.commandmanager found command 'server_reboot'
DEBUG: cliff.commandmanager found command 'server_migrate'
DEBUG: cliff.commandmanager found command 'server_set'
DEBUG: cliff.commandmanager found command 'host_show'
DEBUG: cliff.commandmanager found command 'server_unrescue'
DEBUG: cliff.commandmanager found command 'usage_list'
DEBUG: cliff.commandmanager found command 'server_add_volume'
DEBUG: cliff.commandmanager found command 'server_unlock'
DEBUG: cliff.commandmanager found command 'security_group_set'
DEBUG: cliff.commandmanager found command 'compute_agent_create'
DEBUG: cliff.commandmanager found command 'server_rescue'
DEBUG: cliff.commandmanager found command 'server_add_security_group'
DEBUG: cliff.commandmanager found command 'console_log_show'
DEBUG: cliff.commandmanager found command 'compute_agent_delete'
DEBUG: cliff.commandmanager found command 'server_ssh'
DEBUG: cliff.commandmanager found command 'server_lock'
DEBUG: cliff.commandmanager found command 'server_unset'
DEBUG: cliff.commandmanager found command 'server_show'
DEBUG: cliff.commandmanager found command 'server_suspend'
DEBUG: cliff.commandmanager found command 'keypair_show'
DEBUG: cliff.commandmanager found command 'server_image_create'
DEBUG: cliff.commandmanager found command 'flavor_list'
DEBUG: cliff.commandmanager found command 'server_remove_volume'
DEBUG: cliff.commandmanager found command 'security_group_delete'
DEBUG: cliff.commandmanager found command 'aggregate_add_host'
DEBUG: cliff.commandmanager found command 'aggregate_remove_host'
DEBUG: cliff.commandmanager found command 'server_remove_security_group'
DEBUG: cliff.commandmanager found command 'ip_floating_remove'
DEBUG: cliff.commandmanager found command 'aggregate_create'
DEBUG: cliff.commandmanager found command 'hypervisor_show'
DEBUG: cliff.commandmanager found command 'ip_floating_list'
DEBUG: cliff.commandmanager found command 'aggregate_delete'
DEBUG: cliff.commandmanager found command 'flavor_set'
DEBUG: cliff.commandmanager found command 'security_group_rule_create'
DEBUG: cliff.commandmanager found command 'compute_agent_set'
DEBUG: cliff.commandmanager found command 'server_rebuild'
DEBUG: cliff.commandmanager found command 'flavor_delete'
DEBUG: cliff.commandmanager found command 'server_delete'
DEBUG: cliff.commandmanager found command 'server_resume'
DEBUG: cliff.commandmanager found command 'usage_show'
DEBUG: cliff.commandmanager found command 'availability_zone_list'
DEBUG: cliff.commandmanager found command 'hypervisor_list'
DEBUG: cliff.commandmanager found command 'flavor_create'
DEBUG: cliff.commandmanager found command 'console_url_show'
DEBUG: cliff.commandmanager found command 'ip_fixed_add'
DEBUG: cliff.commandmanager found command 'server_create'
DEBUG: cliff.commandmanager found command 'aggregate_show'
DEBUG: cliff.commandmanager found command 'compute_agent_list'
DEBUG: cliff.commandmanager found command 'flavor_show'
DEBUG: cliff.commandmanager found command 'ip_fixed_remove'
DEBUG: cliff.commandmanager found command 'ip_floating_create'
DEBUG: cliff.commandmanager ...
(more)
edit retag flag offensive close merge delete

Comments

Please, paste logs from /var/log/keystone/keystone.log and add --debug when issuing the command

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-30 15:55:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-10-01 03:10:26 -0500

Hi,

as the logs says Unable to establish connection to http://controller:35357 and ConnectionRefused, probably you have something like a firewall blocking that connection, the name controller is not in /etc/hosts or the service is not up and running properly.

Regards

edit flag offensive delete link more

Comments

Thanks for the answer but I confirmed that firewall or the host resolution is not the problem. I was able to telnet to controller:35357 and it connects. However I did realize that the keystone service is down and I cannot restart it!

navinnuk gravatar imagenavinnuk ( 2015-10-01 13:13:23 -0500 )edit

Maybe keystone is running under httpd

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-10-01 13:25:01 -0500 )edit

Yes it is! I just confirmed that. At this point, I really don't know what this Internal Server Error is about. The logs are not pointing to any problem.

navinnuk gravatar imagenavinnuk ( 2015-10-01 14:04:57 -0500 )edit

Paste keystone.conf and ensure you have sourced the file with the OS_TOKEN or user information. Also check if rabbitmq is OK and can telnet to his port, and if the databases are properly created

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-10-01 15:27:36 -0500 )edit

I am using the same OS_TOKEN in both keystone.conf and then environment. rabbitmq is working fine and the status is up. I can telnet to port 25672 and 4369 both. I checked and confirmed there is a database by the name keystone in mysql. I have added keystone.conf output to the question

navinnuk gravatar imagenavinnuk ( 2015-10-01 16:19:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-09-29 22:48:53 -0500

Seen: 2,414 times

Last updated: Oct 01 '15