CLI 'tenant-update' fails to disable tenant
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Darren Birkett |
Bug Description
First,I use CLI 'keystone tenant-create ' to create a tenant named 'test'.And the 'enabled' property of tenant 'test' is 'True'!
root@key:~# keystone tenant-create --name test --enabled True
+------
| Property | Value |
+------
| description | None |
| enabled | True |
| id | 07ab61a14ab748f
| name | test |
+------
root@key:~# keystone tenant-list
+------
| id | name | enabled |
+------
| 07ab61a14ab748f
| 1861a7f94cd7430
| 34b1c3bf50e54ad
| 86c28dad39c443f
| c794f1a77c1049b
+------
From above,we can see that the 'enabled' property of tenant 'test' is 'True'.Now,I'll use CLI 'keystone tenant-update' to change the 'enabled' property of tenant 'test'. The results are shown below.
root@key:~# keystone tenant-update --enabled False 07ab61a14ab748f
root@key:~# keystone tenant-list
+------
| id | name | enabled |
+------
| 07ab61a14ab748f
| 1861a7f94cd7430
| 34b1c3bf50e54ad
| 86c28dad39c443f
| c794f1a77c1049b
+------
From the results,we can see that the 'enabled' property of tenant 'test' is also 'True'!When I go to view the database, the database does not work!
Now,I use CLI 'keystone tenant-create ' to create a tenant named 'test1'.But the 'enabled' property of tenant 'test1' is 'False'!
root@key:~# keystone tenant-create --name test1 --enabled False
+------
| Property | Value |
+------
| description | None |
| enabled | False |
| id | a475dc734c44494
| name | test1 |
+------
root@key:~# keystone tenant-list
+------
| id | name | enabled |
+------
| 07ab61a14ab748f
| 1861a7f94cd7430
| 34b1c3bf50e54ad
| 86c28dad39c443f
| a475dc734c44494
| c794f1a77c1049b
+------
From above,we know that the 'enabled' property of tenant 'test1' is 'False'.Now,I'll use CLI 'keystone tenant-update' to change the property of the tenant 'test1'!
root@key:~# keystone tenant-update --enabled True a475dc734c44494
root@key:~# keystone tenant-list
+------
| id | name | enabled |
+------
| 07ab61a14ab748f
| 1861a7f94cd7430
| 34b1c3bf50e54ad
| 86c28dad39c443f
| a475dc734c44494
| c794f1a77c1049b
+------
It works well!Now I want to change the 'enabled' property of tenant 'test' from 'True' to 'False'.
root@key:~# keystone tenant-update --enabled False a475dc734c44494
root@key:~# keystone tenant-list
+------
| id | name | enabled |
+------
| 07ab61a14ab748f
| 1861a7f94cd7430
| 34b1c3bf50e54ad
| 86c28dad39c443f
| a475dc734c44494
| c794f1a77c1049b
+------
It doesn't work!And I go to view the database,the database doesn't work !
However,when I do all the operations in the dashboard,it works well!
summary: |
- Error in using CLI 'keystone tenant-update' + CLI 'tenant-update' fails to disable tenant |
Changed in keystone: | |
assignee: | nobody → Darren Birkett (darren-birkett) |
Changed in keystone: | |
status: | Confirmed → In Progress |
affects: | keystone → python-keystoneclient |
Changed in python-keystoneclient: | |
milestone: | folsom-1 → none |
affects: | python-keystoneclient → keystone |
Was able to reproduce, but I'm unclear on what you mean by "When I go to view the database, the database does not work!"; I'm going to assume that's extraneous to this issue, however.