Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 应使用通过服务令牌的身份验证方法_Linux_Ubuntu_Openstack - Fatal编程技术网

Linux 应使用通过服务令牌的身份验证方法

Linux 应使用通过服务令牌的身份验证方法,linux,ubuntu,openstack,Linux,Ubuntu,Openstack,对不起,我的初级问题 我已经安装了OpenStack。当我尝试执行此命令时 keystone user-list 我明白了 Expecting authentication method via either a service token, --os-token or env[OS_SERVICE_TOKEN], or credentials, --os-username or env[OS_USERNAME]. 如何指定令牌?根据您安装OpenStack的方式不同,您需要获

对不起,我的初级问题

我已经安装了OpenStack。当我尝试执行此命令时

keystone user-list
我明白了

  Expecting authentication method via
  either a service token, --os-token or env[OS_SERVICE_TOKEN], 
  or credentials, --os-username or env[OS_USERNAME].

如何指定令牌?

根据您安装OpenStack的方式不同,您需要获取权限文件的来源

如果您安装了devstack,那么它的“
cddevstack
后跟
sourceopenrc

如果您确实安装了packstack的
/root/keysterc\u admin

,则在使用服务令牌创建管理员用户时也会出现相同的错误。