[ERROR] ./stack.sh:326 keystone did not start

Asked by Jim Pherson

Trying to setup the devstack environment in Ubuntu 12.04

Can't seem to get past this issue - it appears that this is a similar problem to 192113

+ screen -S stack -p key -X stuff 'cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keys'one.conf --log-config /etc/keystone/logging.conf -d --debug || touch "/opt/stack/status/stack/key.failure"
+ echo 'Waiting for keystone to start...'
Waiting for keystone to start...
+ timeout 60 sh -c 'while ! http_proxy= curl -s http://10.2.13.125:5000/v2.0/ >/dev/null; do sleep 1; done'
+ die 326 'keystone did not start'
+ local exitcode=0
+ '[' 0 == 0 ']'
+ exitcode=1
+ set +o xtrace
[ERROR] ./stack.sh:326 keystone did not start
jpherson@ubuntu:~/Downloads/Openstack/devstack$ ps aux | grep keystone
jpherson 4578 0.9 1.0 117044 42368 pts/2 S+ 13:47 0:01 python /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug
jpherson 4587 0.0 0.0 8104 920 pts/0 S+ 13:49 0:00 grep --color=auto keystone
jpherson@ubuntu:~/Downloads/Openstack/devstack$

jpherson@ubuntu:~/Downloads/Openstack/devstack$ cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug
(keystone-all): 2013-04-05 12:37:23,998 DEBUG cfg log_opt_values ********************************************************************************
(keystone-all): 2013-04-05 12:37:23,998 DEBUG cfg log_opt_values Configuration options gathered from:
(keystone-all): 2013-04-05 12:37:23,998 DEBUG cfg log_opt_values command line args: ['--config-file', '/etc/keystone/keystone.conf', '--log-config', '/etc/keystone/logging.conf', '-d', '--debug']
(keystone-all): 2013-04-05 12:37:23,999 DEBUG cfg log_opt_values config files: ['/etc/keystone/keystone.conf']
(keystone-all): 2013-04-05 12:37:23,999 DEBUG cfg log_opt_values ================================================================================
(keystone-all): 2013-04-05 12:37:23,999 DEBUG cfg log_opt_values admin_endpoint = http://localhost:%(admin_port)d/
(keystone-all): 2013-04-05 12:37:23,999 DEBUG cfg log_opt_values admin_port = 35357
(keystone-all): 2013-04-05 12:37:23,999 DEBUG cfg log_opt_values admin_token = password
(keystone-all): 2013-04-05 12:37:24,000 DEBUG cfg log_opt_values auth_admin_prefix =
(keystone-all): 2013-04-05 12:37:24,000 DEBUG cfg log_opt_values bind_host = 0.0.0.0
(keystone-all): 2013-04-05 12:37:24,000 DEBUG cfg log_opt_values compute_port = 8774
(keystone-all): 2013-04-05 12:37:24,000 DEBUG cfg log_opt_values config_dir = None
(keystone-all): 2013-04-05 12:37:24,000 DEBUG cfg log_opt_values config_file = ['/etc/keystone/keystone.conf']
(keystone-all): 2013-04-05 12:37:24,001 DEBUG cfg log_opt_values crypt_strength = 40000
(keystone-all): 2013-04-05 12:37:24,001 DEBUG cfg log_opt_values debug = True
(keystone-all): 2013-04-05 12:37:24,001 DEBUG cfg log_opt_values log_config = /etc/keystone/logging.conf
(keystone-all): 2013-04-05 12:37:24,001 DEBUG cfg log_opt_values log_date_format = %Y-%m-%d %H:%M:%S
(keystone-all): 2013-04-05 12:37:24,001 DEBUG cfg log_opt_values log_dir = None
(keystone-all): 2013-04-05 12:37:24,001 DEBUG cfg log_opt_values log_file = None
(keystone-all): 2013-04-05 12:37:24,002 DEBUG cfg log_opt_values log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
(keystone-all): 2013-04-05 12:37:24,002 DEBUG cfg log_opt_values max_param_size = 64
(keystone-all): 2013-04-05 12:37:24,002 DEBUG cfg log_opt_values max_request_body_size = 114688
(keystone-all): 2013-04-05 12:37:24,002 DEBUG cfg log_opt_values max_token_size = 8192
(keystone-all): 2013-04-05 12:37:24,002 DEBUG cfg log_opt_values member_role_id = 9fe2ff9ee4384b1894a90878d3e92bab
(keystone-all): 2013-04-05 12:37:24,002 DEBUG cfg log_opt_values member_role_name = _member_
(keystone-all): 2013-04-05 12:37:24,003 DEBUG cfg log_opt_values onready = None
(keystone-all): 2013-04-05 12:37:24,003 DEBUG cfg log_opt_values policy_default_rule = None
(keystone-all): 2013-04-05 12:37:24,003 DEBUG cfg log_opt_values policy_file = policy.json
(keystone-all): 2013-04-05 12:37:24,003 DEBUG cfg log_opt_values public_endpoint = http://localhost:%(public_port)d/
(keystone-all): 2013-04-05 12:37:24,003 DEBUG cfg log_opt_values public_port = 5000
(keystone-all): 2013-04-05 12:37:24,003 DEBUG cfg log_opt_values pydev_debug_host = None
(keystone-all): 2013-04-05 12:37:24,004 DEBUG cfg log_opt_values pydev_debug_port = None
(keystone-all): 2013-04-05 12:37:24,004 DEBUG cfg log_opt_values standard_threads = False
(keystone-all): 2013-04-05 12:37:24,004 DEBUG cfg log_opt_values syslog_log_facility = LOG_USER
(keystone-all): 2013-04-05 12:37:24,004 DEBUG cfg log_opt_values use_syslog = False
(keystone-all): 2013-04-05 12:37:24,004 DEBUG cfg log_opt_values verbose = False
(keystone-all): 2013-04-05 12:37:24,005 DEBUG cfg log_opt_values signing.ca_certs = /etc/keystone/ssl/certs/ca.pem
(keystone-all): 2013-04-05 12:37:24,005 DEBUG cfg log_opt_values signing.ca_password = None
(keystone-all): 2013-04-05 12:37:24,005 DEBUG cfg log_opt_values signing.certfile = /etc/keystone/ssl/certs/signing_cert.pem
(keystone-all): 2013-04-05 12:37:24,005 DEBUG cfg log_opt_values signing.key_size = 1024
(keystone-all): 2013-04-05 12:37:24,005 DEBUG cfg log_opt_values signing.keyfile = /etc/keystone/ssl/private/signing_key.pem
(keystone-all): 2013-04-05 12:37:24,005 DEBUG cfg log_opt_values signing.token_format = PKI
(keystone-all): 2013-04-05 12:37:24,005 DEBUG cfg log_opt_values signing.valid_days = 3650
(keystone-all): 2013-04-05 12:37:24,006 DEBUG cfg log_opt_values stats.driver = keystone.contrib.stats.backends.kvs.Stats
(keystone-all): 2013-04-05 12:37:24,006 DEBUG cfg log_opt_values ldap.alias_dereferencing = default
(keystone-all): 2013-04-05 12:37:24,006 DEBUG cfg log_opt_values ldap.allow_subtree_delete = False
(keystone-all): 2013-04-05 12:37:24,006 DEBUG cfg log_opt_values ldap.domain_allow_create = True
(keystone-all): 2013-04-05 12:37:24,007 DEBUG cfg log_opt_values ldap.domain_allow_delete = True
(keystone-all): 2013-04-05 12:37:24,007 DEBUG cfg log_opt_values ldap.domain_allow_update = True
(keystone-all): 2013-04-05 12:37:24,007 DEBUG cfg log_opt_values ldap.domain_attribute_ignore =
(keystone-all): 2013-04-05 12:37:24,007 DEBUG cfg log_opt_values ldap.domain_desc_attribute = description
(keystone-all): 2013-04-05 12:37:24,007 DEBUG cfg log_opt_values ldap.domain_enabled_attribute = enabled
(keystone-all): 2013-04-05 12:37:24,007 DEBUG cfg log_opt_values ldap.domain_enabled_emulation = False
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.domain_enabled_emulation_dn = None
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.domain_filter = None
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.domain_id_attribute = cn
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.domain_member_attribute = member
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.domain_name_attribute = ou
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.domain_objectclass = groupOfNames
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.domain_tree_dn = None
(keystone-all): 2013-04-05 12:37:24,008 DEBUG cfg log_opt_values ldap.dumb_member = cn=dumb,dc=nonexistent
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_allow_create = True
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_allow_delete = True
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_allow_update = True
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_attribute_ignore =
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_desc_attribute = description
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_domain_id_attribute = businessCategory
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_filter = None
(keystone-all): 2013-04-05 12:37:24,009 DEBUG cfg log_opt_values ldap.group_id_attribute = cn
(keystone-all): 2013-04-05 12:37:24,010 DEBUG cfg log_opt_values ldap.group_member_attribute = member
(keystone-all): 2013-04-05 12:37:24,010 DEBUG cfg log_opt_values ldap.group_name_attribute = ou
(keystone-all): 2013-04-05 12:37:24,010 DEBUG cfg log_opt_values ldap.group_objectclass = groupOfNames
(keystone-all): 2013-04-05 12:37:24,010 DEBUG cfg log_opt_values ldap.group_tree_dn = None
(keystone-all): 2013-04-05 12:37:24,010 DEBUG cfg log_opt_values ldap.page_size = 0
(keystone-all): 2013-04-05 12:37:24,010 DEBUG cfg log_opt_values ldap.password = None
(keystone-all): 2013-04-05 12:37:24,010 DEBUG cfg log_opt_values ldap.query_scope = one
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_allow_create = True
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_allow_delete = True
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_allow_update = True
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_attribute_ignore =
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_filter = None
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_id_attribute = cn
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_member_attribute = roleOccupant
(keystone-all): 2013-04-05 12:37:24,011 DEBUG cfg log_opt_values ldap.role_name_attribute = ou
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.role_objectclass = organizationalRole
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.role_tree_dn = None
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.suffix = cn=example,cn=com
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.tenant_allow_create = True
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.tenant_allow_delete = True
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.tenant_allow_update = True
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.tenant_attribute_ignore =
(keystone-all): 2013-04-05 12:37:24,012 DEBUG cfg log_opt_values ldap.tenant_desc_attribute = description
(keystone-all): 2013-04-05 12:37:24,013 DEBUG cfg log_opt_values ldap.tenant_domain_id_attribute = businessCategory
(keystone-all): 2013-04-05 12:37:24,013 DEBUG cfg log_opt_values ldap.tenant_enabled_attribute = enabled
(keystone-all): 2013-04-05 12:37:24,013 DEBUG cfg log_opt_values ldap.tenant_enabled_emulation = False
(keystone-all): 2013-04-05 12:37:24,013 DEBUG cfg log_opt_values ldap.tenant_enabled_emulation_dn = None
(keystone-all): 2013-04-05 12:37:24,013 DEBUG cfg log_opt_values ldap.tenant_filter = None
(keystone-all): 2013-04-05 12:37:24,013 DEBUG cfg log_opt_values ldap.tenant_id_attribute = cn
(keystone-all): 2013-04-05 12:37:24,013 DEBUG cfg log_opt_values ldap.tenant_member_attribute = member
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.tenant_name_attribute = ou
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.tenant_objectclass = groupOfNames
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.tenant_tree_dn = None
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.url = ldap://localhost
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.use_dumb_member = False
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.user = None
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.user_allow_create = True
(keystone-all): 2013-04-05 12:37:24,014 DEBUG cfg log_opt_values ldap.user_allow_delete = True
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_allow_update = True
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_attribute_ignore = tenant_id,tenants
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_domain_id_attribute = businessCategory
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_enabled_attribute = enabled
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_enabled_default = True
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_enabled_emulation = False
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_enabled_emulation_dn = None
(keystone-all): 2013-04-05 12:37:24,015 DEBUG cfg log_opt_values ldap.user_enabled_mask = 0
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values ldap.user_filter = None
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values ldap.user_id_attribute = cn
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values ldap.user_mail_attribute = email
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values ldap.user_name_attribute = sn
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values ldap.user_objectclass = inetOrgPerson
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values ldap.user_pass_attribute = userPassword
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values ldap.user_tree_dn = None
(keystone-all): 2013-04-05 12:37:24,016 DEBUG cfg log_opt_values token.driver = keystone.token.backends.sql.Token
(keystone-all): 2013-04-05 12:37:24,017 DEBUG cfg log_opt_values auth.methods = ['password', 'token']
(keystone-all): 2013-04-05 12:37:24,017 DEBUG cfg log_opt_values auth.password = keystone.auth.plugins.password.Password
(keystone-all): 2013-04-05 12:37:24,017 DEBUG cfg log_opt_values auth.token = keystone.auth.plugins.token.Token
(keystone-all): 2013-04-05 12:37:24,017 DEBUG cfg log_opt_values ssl.ca_certs = None
(keystone-all): 2013-04-05 12:37:24,017 DEBUG cfg log_opt_values ssl.cert_required = False
(keystone-all): 2013-04-05 12:37:24,017 DEBUG cfg log_opt_values ssl.certfile = None
(keystone-all): 2013-04-05 12:37:24,017 DEBUG cfg log_opt_values ssl.enable = False
(keystone-all): 2013-04-05 12:37:24,018 DEBUG cfg log_opt_values ssl.keyfile = None
(keystone-all): 2013-04-05 12:37:24,018 DEBUG cfg log_opt_values catalog.driver = keystone.catalog.backends.sql.Catalog
(keystone-all): 2013-04-05 12:37:24,018 DEBUG cfg log_opt_values ec2.driver = keystone.contrib.ec2.backends.sql.Ec2
(keystone-all): 2013-04-05 12:37:24,022 DEBUG cfg log_opt_values sql.connection = *****************************************************
(keystone-all): 2013-04-05 12:37:24,022 DEBUG cfg log_opt_values sql.idle_timeout = 200
(keystone-all): 2013-04-05 12:37:24,023 DEBUG cfg log_opt_values policy.driver = keystone.policy.backends.sql.Policy
(keystone-all): 2013-04-05 12:37:24,023 DEBUG cfg log_opt_values trust.driver = keystone.trust.backends.sql.Trust
(keystone-all): 2013-04-05 12:37:24,023 DEBUG cfg log_opt_values trust.enabled = True
(keystone-all): 2013-04-05 12:37:24,023 DEBUG cfg log_opt_values pam.password = None
(keystone-all): 2013-04-05 12:37:24,023 DEBUG cfg log_opt_values pam.url = None
(keystone-all): 2013-04-05 12:37:24,023 DEBUG cfg log_opt_values pam.userid = None
(keystone-all): 2013-04-05 12:37:24,024 DEBUG cfg log_opt_values identity.default_domain_id = default
(keystone-all): 2013-04-05 12:37:24,024 DEBUG cfg log_opt_values identity.driver = keystone.identity.backends.sql.Identity
(keystone-all): 2013-04-05 12:37:24,024 DEBUG cfg log_opt_values ********************************************************************************
(eventlet.wsgi.server): 2013-04-05 12:37:24,384 DEBUG wsgi write (6933) wsgi starting up on http://0.0.0.0:35357/

(eventlet.wsgi.server): 2013-04-05 12:37:24,384 DEBUG wsgi write (6933) wsgi starting up on http://0.0.0.0:5000/

^C(root): 2013-04-05 12:48:30,978 DEBUG keystone-all sigint_handler SIGINT received, stopping servers.

root@ubuntu:/home/jpherson/Downloads/Pkgs# if ! timeout 60 sh -c "while ! http_proxy= wget -q -O- http://localhost:5000/v2.0/; do sleep 1; done"; then
> echo "keystone did not start"
> exit 1
> fi
{"version": {"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://localhost:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/", "type": "text/html", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf", "type": "application/pdf", "rel": "describedby"}]}}root@ubuntu:/home/jpherson/Downloads/Pkgs#

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Jim Pherson
Solved:
Last query:
Last reply:
Revision history for this message
Sahdev Zala (spzala) said :
#1

Hi Jim, in the devstack root dir, where stack.sh is, you should see localrc file. One of the reason you see the 'keystone did not start' issue is due to wrong value of 'HOST_IP' in the localrc file or if you have set it in any other way. Make sure that that the value to HOST_IP is set to the correct ip address, if you haven't already tried it, and run the stack.sh again. I ran into this in past and this was the solution for my problem. Thanks!

Revision history for this message
Jim Pherson (jim-pherson) said :
#2

I wish that were the case, but perhaps because I didn't understand some of the other variables in localrc, something else is interfering.
eth0 Link encap:Ethernet HWaddr 00:0c:29:5d:c9:41
          inet addr:10.2.13.125 Bcast:10.2.255.255 Mask:255.255.0.0

HOST_IP=10.2.13.125
FLAT_INTERFACE=eth0
FIXED_RANGE=10.2.25.0/24
FIXED_NETWORK_SIZE=256
FLOATING_RANGE=10.2.13.224/27

I am setting this up on a VM, if I create another network say eth1 and use that exclusively for devstack since I don't control the 10.2.13.125 range.

Revision history for this message
Jim Pherson (jim-pherson) said :
#3

Also, there is a proxy on the 10.2.13.125 address, don't know if that would cause an issue

Revision history for this message
Liang Chen (cbjchen) said :
#4

(eventlet.wsgi.server): 2013-04-05 12:37:24,384 DEBUG wsgi write (6933) wsgi starting up on http://0.0.0.0:5000/

^C(root): 2013-04-05 12:48:30,978 DEBUG keystone-all sigint_handler SIGINT received, stopping servers.

Seems keystone was launched successfully from your shell.

run devstack/rejoin-stack.sh to attach back to the screen session and switch to keystone window to have a look at the console output. That would give you more clues.

Revision history for this message
Jim Pherson (jim-pherson) said :
#5

I'm not sure all that you are suggesting, in the rejoin terminal it stops printing with the following

(eventlet.wsgi.server): 2013-04-09 15:37:57,783 DEBUG wsgi write (3310) wsgi starting up on http://0.0.0.0:35357/

(eventlet.wsgi.server): 2013-04-09 15:37:57,784 DEBUG wsgi write (3310) wsgi starting up on http://0.0.0.0:5000/

I am not sure when you say to "switch to keystone window to have a look at the console output" what I should be doing. I appreciate your help.

Revision history for this message
Jim Pherson (jim-pherson) said :
#6

Can someone tell me what happens when I run the following script? And possibly why or what I have done wrong such that stack.sh will not work correctly. Essentially curl won't work and wget seems to work.

Script-----------------------------------------------------------------------------------------------------
#!/bin/bash

echo 'Waiting for keystone to start with curl at 10.2.13.128...'

timeout 60 sh -c 'while ! http_proxy= curl -s http://10.2.13.128:5000/v2.0/ >/dev/null; do sleep 1; done'
echo 'keystone did not start'

echo "Waiting for keystone to start with wget at 10.2.13.128..."
if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- http://10.2.13.128:5000;
do sleep 1; done"; then
        echo "keystone did not start"
        exit 1
fi
echo "Done."

echo 'Waiting for keystone to start with curl at 192.168.79.6...'

timeout 60 sh -c 'while ! http_proxy= curl -s http://192.168.79.6:5000/v2.0/ >/dev/null; do sleep 1; done'
echo 'keystone did not start'

echo "Waiting for keystone to start with wget at 192.168.79.6..."
if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- http://192.168.79.6:5000;
do sleep 1; done"; then
        echo "keystone did not start"
        exit 1
fi
echo "Done."
endOfScript---------------------------------------------------------------------------------------------

results------------------------------------------------------------------------------------------------------
Waiting for keystone to start with curl at 10.2.13.128...
keystone did not start
Waiting for keystone to start with wget at 10.2.13.128...
{"versions": {"values": [{"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v3+xml"}], "id": "v3.0", "links": [{"href": "http://localhost:5000/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://localhost:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/", "type": "text/html", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf", "type": "application/pdf", "rel": "describedby"}]}]}}Done.
Waiting for keystone to start with curl at 192.168.79.6...
keystone did not start
Waiting for keystone to start with wget at 192.168.79.6...
{"versions": {"values": [{"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v3+xml"}], "id": "v3.0", "links": [{"href": "http://localhost:5000/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://localhost:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/", "type": "text/html", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf", "type": "application/pdf", "rel": "describedby"}]}]}}Done.

Revision history for this message
Liang Chen (cbjchen) said :
#7

press CTRL + a + n to switch to the next window in your screen session each time util you reach "key" window

Revision history for this message
Jim Pherson (jim-pherson) said :
#8

I believe that it was that localrc was not pointing to the right IP areas. I did something completely different and it worked, so it is not conclusive.

Revision history for this message
Tracy Jones (tjones-i) said :
#9

I have the same issue - what did you change that caused it to work?

on the console i have this

(eventlet.wsgi.server): 2013-05-02 16:06:04,911 DEBUG wsgi write (47964) wsgi starting up on http://0.0.0.0:35357/

(eventlet.wsgi.server): 2013-05-02 16:06:04,911 DEBUG wsgi write (47964) wsgi starting up on http://0.0.0.0:5000/

and it fails with this

2013-05-02 16:05:42 + timeout 60 sh -c 'while ! http_proxy= curl -s http://192.168.140.127:5000/v2.0/ >/dev/null; do sleep 1; done'
2013-05-02 16:06:37 + die 326 'keystone did not start'

Revision history for this message
Jim Pherson (jim-pherson) said :
#10

Ok, there were several things that were changed at the same time. I found this web site helpful, but it did not fix the problem. http://www.stackgeek.com/blog/kordless/post/taking-openstack-for-a-spin - but it might have moved me in the forward direction. Pay attention to setting up the localrc file.
1. If you are behind a proxy several things will not work depending if http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY are all not set up and Acquire::http::Proxy "your proxy:8080/"; setup in your apt.conf file
2. Also set no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,<ip address of local machine>"
3. There were firewalls that had to be shutdown
4. run visudo
•Add the following line.
•Defaults env_keep += "no_proxy http_proxy https_proxy HTTP_PROXY HTTPS_PROXY"
5. Add the stack user and run openstack as the stack user
•sudo adduser stack
•sudo apt-get install sudo -y
•echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers
•sudo apt-get install git -y
•login as stack user sudo su - stack and change the password passwd

I would say that 2, 4 or 5 were the most likely issues that I had.

Good Luck

Revision history for this message
Naveed (12msccsnahmad) said :
#11

where you changes following setting ? mean in which file?

 Also set no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,<ip address of local machine>"