keystone tenant-list
+----------------------------------+----------------------------------+---------+
| id | name | enabled |
+----------------------------------+----------------------------------+---------+
| d026c21dfe154e0ab572253c584e67ed | admin | True |
keystone tenant-delete d026c21dfe154e0ab572253c584e67ed
The request you have made requires authentication. (HTTP 401)
原本只想删除部分数据,结果顺手把 admin 也删了,还有救吗
1
tempdban 2017-07-17 22:46:34 +08:00 via Android 1
有救,直接去 MySQL 里加回来
|
2
Ouyangan 2017-07-17 22:52:30 +08:00
看你这头像 , 作死是没救的
|
3
lolizeppelin 2017-07-17 23:14:57 +08:00 via Android 1
开那个 admin token 配置
|
4
ysicing OP @lolizeppelin 开了,keystone tenant-list
The request you have made requires authentication. (HTTP 401) @tempdban 重新目测在 keystone 里添加了 insert into project(id,name,enabled,extra,domain_id) values ('d026c21dfe154e0ab572253c584e67ed','admin',1,'{}','default'); Query OK, 1 row affected (0.01 sec) 还是 401 @Ouyangan 哎,我的锅自己背 |
6
ysicing OP @tempdban
+-----------------------+ | Tables_in_keystone | +-----------------------+ | assignment | | credential | | domain | | endpoint | | group | | id_mapping | | migrate_version | | policy | | project | | region | | revocation_event | | role | | service | | token | | trust | | trust_role | | user | | user_group_membership | +-----------------------+ 好像没看到权限相关的哎 |
8
lolizeppelin 2017-07-18 11:18:26 +08:00
没有 admin 的时候就是用 admin token 去添加 admin 的
需要 admin 的 domain 话说你是什么版本的 openstack |
9
ysicing OP |
10
sphawkcn 2017-07-18 12:16:38 +08:00
删数据之前不先做个备份?这是直接操作服务器的第一原则吧。
|