分享

openstack【juno】入门 【keystone篇】五::Keystone部署及介绍

pig2 发表于 2015-1-27 17:47:58 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 27 155703
Jason_ZTbhU 发表于 2015-11-1 18:44:56
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
Unable to establish connection to http://localhost:35357/v2.0/tenants

我在建立租户时报如下错误。  大家有遇到的吗?
回复

使用道具 举报

Jason_ZTbhU 发表于 2015-11-1 20:30:05
nettman 发表于 2015-3-28 14:26
不成功的,看看网络

如第一次成功执行,建立表后, 再执行将无生成内容。
回复

使用道具 举报

Jason_ZTbhU 发表于 2015-11-1 20:43:44
cappuccino 发表于 2015-3-6 16:05
问题一:

按照楼主的操作出现错误

openstack JUNO 版本在执行租户命令:

root@controller:~# keystone tenant-create --name admin --description "Admin Tenant"  
Unable to establish connection to http://controller:35357/v2.0/tenants

前提keystone-manage db_sync 完成,表项也建立成功,共计18个表。

1,hosts 文件:

root@controller:~# cat /etc/hosts
#127.0.0.1      localhost
# controller
192.168.1.94     controller
#computer1
192.168.1.95     computer1

2,关于变量:
export  OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0"
export  OS_SERVICE_TOKEN="69c08416a921853870f6"

3,/etc/keystone/keystone.conf  修改的地方:
     . admin_token=69c08416a921853870f6
     .connection=mysql://keystone:keystone_pass@controller/keystone
     .verbose=true
4,数据库:
  create  database keystone;
grant all  privileges  on keystone.* to 'keystone'@'localhost'  identified by 'keystone_pass';
grant all  privileges  on keystone.* to 'keystone'@'l%'  identified by 'keystone_pass';
flush  privileges;


5, 开始建立 tenants,users,and roles
:~# keystone tenant-create --name admin --description "Admin Tenant"  
  Unable to establish connection to http://controller:35357/v2.0/tenants
一执行就报上面的错误,对照JUNO 的官方安装文档,没有发现问题。

   #tail  -f /var/log/syslog

Nov  1 07:41:14 controller kernel: [ 4717.097902] init: keystone main process ended, respawning
Nov  1 07:41:15 controller kernel: [ 4717.626426] init: keystone main process (7990) terminated with status 1
是否keystone 进程挂掉了? 但#PS -EF |GREP KEYSTONE,显示如下:

root@controller:~# ps -ef |grep keystone
keystone  8578     1  0 07:42 ?        00:00:00 /usr/bin/python /usr/bin/keystone-all
root      8583  4430  0 07:42 pts/3    00:00:00 grep --color=auto keystone











回复

使用道具 举报

wyy20006 发表于 2015-11-3 12:10:39
楼主,运行 su -s /bin/sh -c "keystone-manage db_sync" keystone同步keystone时,报错:“2003, "Can't connect to MySQL server on 'controller' (111)",我试了,以keystone身份可以登陆mysql。不知是何原因?
回复

使用道具 举报

Alkaloid0515 发表于 2015-11-3 12:12:05
wyy20006 发表于 2015-11-3 12:10
楼主,运行 su -s /bin/sh -c "keystone-manage db_sync" keystone同步keystone时,报错:“2003, "Can't c ...

先把mysql安装正常
about云8-mysql安装
http://www.aboutyun.com/thread-14027-1-1.html



回复

使用道具 举报

wyy20006 发表于 2015-11-3 12:20:44
mysql安装好了,按照文中所述也修改了设置,还是
不能远程连接mysql
回复

使用道具 举报

stream_c 发表于 2016-5-29 18:32:06
keystone-manage db_sync 同步不能连接数据库+1,用数据库客户端连接是没有问题的,在keystone.conf的连接字段中将主机名改成localhost就能同步成功了,之前安装所有软件包都是在root账号下的,现在还是找不出原因,等高手指导了。
回复

使用道具 举报

stream_c 发表于 2016-5-29 18:33:01
之前在centos下配置没出现过这个问题,很奇怪。
回复

使用道具 举报

123
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条