由于测试时间长,本人keystone 1小时后token超期,本人ubuntu系统。
失败方法:
用openstack-cofig来扩展token,根本找不到openstack-config命令,有博客说centos下安装openstack-utils即可,但是在ubuntu下我没找到
成功方法:
参考 https://access.redhat.com/solutions/1527533
修改 /etc/keystone/keystone.conf 下
# Amount of time a token should remain valid (in seconds). # (integer value) expiration=86400 重启keystone服务,本人直接重启了机器
===================================以下是我个人想保存一下网页内容===================================================================
You can safely change it to a new value in order to fit in your needs, for instance 7200 or another value:
Raw # Amount of time a token should remain valid (in seconds). # (integer value) expiration=7200Since openstack-keynote doesn't have a "reload" method in the systemctl openstack-keystone neither the keystone-all command could be used to reload since this is only used to start the keystone:
Raw NAME keystone-all - Keystone Startup Command ... DESCRIPTION keystone-all starts both the service and administrative APIs in a sin‐ gle process to provide catalog, authorization, and authentication ser‐ vices for OpenStack.You should restart the service using the following command:
Raw # systemctl restart openstack-keystone.serviceNote: If you have more than one controller and runs it behind an HAProxy, you can safely change the parameter expiration in the keystone.conf in each controller and then restart each one separately. HAProxy will take care to redirect the services to a active service.