keystone can't be connected outside localhost
I have a new installed keystone with version G.
I can successfully run command :
keystone --token ADMIN --endpoint http://
But, when I change "localhost" to the physical machine's IP address, the command stalled.
I add debug to run the command, it stops at:
keystone --debug --token ADMIN --endpoint http://
REQ: curl -i http://
Anyone know why ?
Thanks.
-chen
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- li,chen
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
is that possible to paste your keystone.conf and log here? not sure if you can ping this physical ip
Revision history for this message
|
#2 |
I'm sure the IP is correct.
I only edit the sql connection part in keystone.conf.
All other things are default.
And, no log in keystone.
I guess the request stalled at :
REQ: curl -i http://
Looks like keystone never received the request.
Keystone should working fine:
netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
......
tcp 0 0 0.0.0.0:35357 0.0.0.0:* LISTEN
......
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN
IPtables is configured correct, I think:
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:35357
ACCEPT tcp -- anywhere anywhere tcp dpt:5000
......
Revision history for this message
|
#3 |
is there any bind_host attribute set in the config file, or you may try to set bind_host=
Revision history for this message
|
#4 |
Keystone log start :
2013-05-10 09:49:31 DEBUG [keystone-all] *******
2013-05-10 09:49:31 DEBUG [keystone-all] Configuration options gathered from:
2013-05-10 09:49:31 DEBUG [keystone-all] command line args: []
2013-05-10 09:49:31 DEBUG [keystone-all] config files: ['/etc/
2013-05-10 09:49:31 DEBUG [keystone-all] =======
2013-05-10 09:49:31 DEBUG [keystone-all] admin_endpoint = http://
2013-05-10 09:49:31 DEBUG [keystone-all] admin_port = 35357
2013-05-10 09:49:31 DEBUG [keystone-all] admin_token = ADMIN
2013-05-10 09:49:31 DEBUG [keystone-all] auth_admin_prefix =
2013-05-10 09:49:31 DEBUG [keystone-all] bind_host = 0.0.0.0
2013-05-10 09:49:31 DEBUG [keystone-all] compute_port = 8774
2013-05-10 09:49:31 DEBUG [keystone-all] config_dir = None
2013-05-10 09:49:31 DEBUG [keystone-all] config_file = ['/etc/
2013-05-10 09:49:31 DEBUG [keystone-all] crypt_strength = 40000
2013-05-10 09:49:31 DEBUG [keystone-all] debug = True
2013-05-10 09:49:31 DEBUG [keystone-all] log_config = None
2013-05-10 09:49:31 DEBUG [keystone-all] log_date_format = %Y-%m-%d %H:%M:%S
2013-05-10 09:49:31 DEBUG [keystone-all] log_dir = /var/log/keystone
2013-05-10 09:49:31 DEBUG [keystone-all] log_file = keystone.log
2013-05-10 09:49:31 DEBUG [keystone-all] log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
2013-05-10 09:49:31 DEBUG [keystone-all] max_param_size = 64
2013-05-10 09:49:31 DEBUG [keystone-all] max_request_
2013-05-10 09:49:31 DEBUG [keystone-all] max_token_size = 8192
2013-05-10 09:49:31 DEBUG [keystone-all] member_role_id = 9fe2ff9ee4384b1
2013-05-10 09:49:31 DEBUG [keystone-all] member_role_name = _member_
2013-05-10 09:49:31 DEBUG [keystone-all] onready = None
2013-05-10 09:49:31 DEBUG [keystone-all] policy_default_rule = None
2013-05-10 09:49:31 DEBUG [keystone-all] policy_file = policy.json
2013-05-10 09:49:31 DEBUG [keystone-all] public_endpoint = http://
2013-05-10 09:49:31 DEBUG [keystone-all] public_port = 5000
2013-05-10 09:49:31 DEBUG [keystone-all] pydev_debug_host = None
2013-05-10 09:49:31 DEBUG [keystone-all] pydev_debug_port = None
2013-05-10 09:49:31 DEBUG [keystone-all] standard_threads = False
2013-05-10 09:49:31 DEBUG [keystone-all] syslog_log_facility = LOG_USER
2013-05-10 09:49:31 DEBUG [keystone-all] use_syslog = False
2013-05-10 09:49:31 DEBUG [keystone-all] verbose = True
2013-05-10 09:49:31 DEBUG [keystone-all] signing.ca_certs = /etc/keystone/
2013-05-10 09:49:31 DEBUG [keystone-all] signing.ca_password = None
2013-05-10 09:49:31 DEBUG [keystone-all] signing.certfile = /etc/keystone/
2013-05-10 09:49:31 DEBUG [keystone-all] signing.key_size = 1024
2013-05-10 09:49:31 DEBUG [keystone-all] signing.keyfile = /etc/keystone/
2013-05-10 09:49:31 DEBUG [keystone-all] signing.
2013-05-10 09:49:31 DEBUG [keystone-all] signing.valid_days = 3650
2013-05-10 09:49:31 DEBUG [keystone-all] stats.driver = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.alias_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.allow_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_filter = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.domain_tree_dn = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.dumb_member = cn=dumb,
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_filter = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.group_tree_dn = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.page_size = 0
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.password = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.query_scope = one
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_filter = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.role_tree_dn = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.suffix = cn=example,cn=com
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_filter = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.tenant_tree_dn = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.url = ldap://localhost
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.use_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_filter = None
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_
2013-05-10 09:49:31 DEBUG [keystone-all] ldap.user_tree_dn = None
2013-05-10 09:49:31 DEBUG [keystone-all] token.driver = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] auth.methods = ['password', 'token']
2013-05-10 09:49:31 DEBUG [keystone-all] auth.password = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] auth.token = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] ssl.ca_certs = None
2013-05-10 09:49:31 DEBUG [keystone-all] ssl.cert_required = False
2013-05-10 09:49:31 DEBUG [keystone-all] ssl.certfile = None
2013-05-10 09:49:31 DEBUG [keystone-all] ssl.enable = False
2013-05-10 09:49:31 DEBUG [keystone-all] ssl.keyfile = None
2013-05-10 09:49:31 DEBUG [keystone-all] catalog.driver = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] ec2.driver = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] sql.connection = mysql:/
2013-05-10 09:49:31 DEBUG [keystone-all] sql.idle_timeout = 200
2013-05-10 09:49:31 DEBUG [keystone-all] policy.driver = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] trust.driver = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] trust.enabled = True
2013-05-10 09:49:31 DEBUG [keystone-all] pam.password = None
2013-05-10 09:49:31 DEBUG [keystone-all] pam.url = None
2013-05-10 09:49:31 DEBUG [keystone-all] pam.userid = None
2013-05-10 09:49:31 DEBUG [keystone-all] identity.
2013-05-10 09:49:31 DEBUG [keystone-all] identity.driver = keystone.
2013-05-10 09:49:31 DEBUG [keystone-all] *******
2013-05-10 09:49:31 DEBUG [keystone.
2013-05-10 09:49:31 DEBUG [keystone.
2013-05-10 09:49:31 DEBUG [eventlet.
2013-05-10 09:49:31 DEBUG [eventlet.
The part ask user-list from localhost:
2013-05-10 09:51:35 DEBUG [eventlet.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 INFO [sqlalchemy.
FROM user
2013-05-10 09:51:35 INFO [sqlalchemy.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 DEBUG [keystone.
2013-05-10 09:51:35 INFO [access] 127.0.0.1 - - [10/May/
2013-05-10 09:51:35 DEBUG [eventlet.
Revision history for this message
|
#5 |
Default in keystone.conf:
bind_host = 0.0.0.0
In log, after keystone start, it print out :
2013-05-10 09:49:31 DEBUG [eventlet.
2013-05-10 09:49:31 DEBUG [eventlet.
And netstat shows:
tcp 0 0 0.0.0.0:35357 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN
I edit keystone.conf:
public_endpoint = http://
admin_endpoint = http://
(Default they're using localhost)
Not working.
Thanks.
-chen
Revision history for this message
|
#6 |
I forgot to unset the proxy on the node.
Really sorry.
Thanks.
-chen
Revision history for this message
|
#7 |
re #6, I thought the default conf should be comment out, not sure whether this is different in product env and dev env.