An auth plugin is required to fetch a token

Posted 抛物线.

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了An auth plugin is required to fetch a token相关的知识,希望对你有一定的参考价值。

使用openstack命令时,出现下面问题

         An auth plugin is required to fetch a token

我们的解决办法是:

openstack token issue

若继续出现下面的报错

[root@controller ~]# openstack token issue
Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username
Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url

那么我们就source命令一下

[root@controller ~]# source /etc/keystone/admin-openrc.sh

[root@controller ~]# openstack token issue
±-----------±-----------------------------------------------------------------------------------------------------+
| Field | Value |
±-----------±-----------------------------------------------------------------------------------------------------+
| expires | 2018-10-27T03:14:21.916611Z |
| id | gAAAAABb08n90lfvJy8rR0mu49QIukweMXPETm2o0RaObrOHU3WamCy_Mkf5IWYVj1xyGk_IMyw2xY8YCyXntNTICCyRNZYV3A87 |
| | -shi5pRi3NYxmM2i7WRxLdNOq0z54ImgPEPr131W4VP12jSjiFC_YvvLOjdoMwi_ELWIgbfvDY-jXepL3Xk |
| project_id | 104bfea725504210919af3d3a6633fbb |
| user_id | ab3cce75c67b4c41a5010a38bf46bea2 |
±-----------±-----------------------------------------------------------------------------------------------------+

以上是关于An auth plugin is required to fetch a token的主要内容,如果未能解决你的问题,请参考以下文章

SpringBoot集成Mycat时异常:CLIENT_PLUGIN_AUTH is required

springboot启动提示连接mysql报错:java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required(

Missing value auth-url required for auth plugin password

Missing value auth-url required for auth plugin password

Missing value auth-url required for auth plugin password

ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded