2017-10-11 52 views
0

我的项目和管理控制台的资源无法检索,但可以在检索到身份资源后使用该openstacksdk更改密码:我的项目和管理面板的资源无法检索,但可以检索身份资源,使用openstacksdk后更改密码

conn.identity.update_user(user_id, password=new_password) # after this step, the Project and Admin resources can not be retrieved. 

现在我的计划和管理的资源不能被检索:

enter image description here

但身份资源可以检索:

enter image description here

而且请注意,当我登录了OpenStack的仪表盘,我还是用OLD_PASSWORD,不能使用NEW_PASSWORD登陆OpenStack的仪表板。

而且,如果我使用conn.identity.update_user方法更改为old_password,那么问题就会消失,就会变得正常。


编辑-1

我用命令:

openstack role assignment list --names

检查角色分配列表:

[[email protected] ~]# openstack role assignment list --names +-------+-------------------+-------+-----------------+--------+-----------+ | Role | User | Group | Project | Domain | Inherited | +-------+-------------------+-------+-----------------+--------+-----------+ | user | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | | admin | [email protected] | | [email protected] | | False | +-------+-------------------+-------+-----------------+--------+-----------+

回答

0

钍是听起来像角色问题。我将使用OpenStack CLI之一来检查角色:

openstack role assignment list --names 

类似于假定最新版本的OpenStack。我不太了解Horizo​​n,知道需要角色来查看这些页面。

相关问题