Activity log for bug #1603905

Date Who What changed Old value New value Message
2016-07-18 09:06:20 Dave Chen bug added bug
2016-07-18 09:07:43 Dave Chen description Enable user =========== PUT /v2.0/users/{userId}/OS-KSADM/enabled The above API doesn't work, there are two issue here. 1. The API unnecessarily need a request body url -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"error": {"message": "set_user_enabled() takes exactly 4 arguments (3 given)", "code": 400, "title": "Bad Request"}} 2. If we pass a request body without 'enabled' property, it could make the user enabled. openstack user show acc163d0efa14fe5b84e1dcc62ff6404 +--------------------+----------------------------------+ | Field | Value | +--------------------+----------------------------------+ | default_project_id | e9b5b0575cad498f8fce9e39ef209411 | | domain_id | default | | enabled | False | | id | acc163d0efa14fe5b84e1dcc62ff6404 | | name | test_user | +--------------------+----------------------------------+ curl -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"user": {"username": "test_user", "name": "test_user", "extra": {}, "enabled": false, "id": "acc163d0efa14fe5b84e1dcc62ff6404", "tenantId": "e9b5b0575cad498f8fce9e39ef209411"}} Nothing changed, the user is still disabled. Enable user =========== PUT /v2.0/users/{userId}/OS-KSADM/enabled The above API doesn't work, there are two issue here. 1. The API unnecessarily need a request body url -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"error": {"message": "set_user_enabled() takes exactly 4 arguments (3 given)", "code": 400, "title": "Bad Request"}} 2. If we pass a request body without 'enabled' property, it cannot enable the user. openstack user show acc163d0efa14fe5b84e1dcc62ff6404 +--------------------+----------------------------------+ | Field | Value | +--------------------+----------------------------------+ | default_project_id | e9b5b0575cad498f8fce9e39ef209411 | | domain_id | default | | enabled | False | | id | acc163d0efa14fe5b84e1dcc62ff6404 | | name | test_user | +--------------------+----------------------------------+ curl -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"user": {"username": "test_user", "name": "test_user", "extra": {}, "enabled": false, "id": "acc163d0efa14fe5b84e1dcc62ff6404", "tenantId": "e9b5b0575cad498f8fce9e39ef209411"}} Nothing is changed, the user is still disabled.
2016-07-18 09:15:27 Dave Chen description Enable user =========== PUT /v2.0/users/{userId}/OS-KSADM/enabled The above API doesn't work, there are two issue here. 1. The API unnecessarily need a request body url -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"error": {"message": "set_user_enabled() takes exactly 4 arguments (3 given)", "code": 400, "title": "Bad Request"}} 2. If we pass a request body without 'enabled' property, it cannot enable the user. openstack user show acc163d0efa14fe5b84e1dcc62ff6404 +--------------------+----------------------------------+ | Field | Value | +--------------------+----------------------------------+ | default_project_id | e9b5b0575cad498f8fce9e39ef209411 | | domain_id | default | | enabled | False | | id | acc163d0efa14fe5b84e1dcc62ff6404 | | name | test_user | +--------------------+----------------------------------+ curl -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"user": {"username": "test_user", "name": "test_user", "extra": {}, "enabled": false, "id": "acc163d0efa14fe5b84e1dcc62ff6404", "tenantId": "e9b5b0575cad498f8fce9e39ef209411"}} Nothing is changed, the user is still disabled. Enable user =========== PUT /v2.0/users/{userId}/OS-KSADM/enabled The above API doesn't work, there are two issue here. 1. The API unnecessarily need a request body url -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"error": {"message": "set_user_enabled() takes exactly 4 arguments (3 given)", "code": 400, "title": "Bad Request"}} 2. If we pass a request body without 'enabled' property, it cannot enable the user. openstack user show acc163d0efa14fe5b84e1dcc62ff6404 +--------------------+----------------------------------+ | Field | Value | +--------------------+----------------------------------+ | default_project_id | e9b5b0575cad498f8fce9e39ef209411 | | domain_id | default | | enabled | False | | id | acc163d0efa14fe5b84e1dcc62ff6404 | | name | test_user | +--------------------+----------------------------------+ curl -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: e2fde9a73eb743e298e3d10aabebe5e0" -d '{"user": {"name": "test_user"}}' {"user": {"username": "test_user", "name": "test_user", "extra": {}, "enabled": false, "id": "acc163d0efa14fe5b84e1dcc62ff6404", "tenantId": "e9b5b0575cad498f8fce9e39ef209411"}} Nothing is changed, the user is still disabled.
2016-07-18 13:57:51 Dave Chen description Enable user =========== PUT /v2.0/users/{userId}/OS-KSADM/enabled The above API doesn't work, there are two issue here. 1. The API unnecessarily need a request body url -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {"error": {"message": "set_user_enabled() takes exactly 4 arguments (3 given)", "code": 400, "title": "Bad Request"}} 2. If we pass a request body without 'enabled' property, it cannot enable the user. openstack user show acc163d0efa14fe5b84e1dcc62ff6404 +--------------------+----------------------------------+ | Field | Value | +--------------------+----------------------------------+ | default_project_id | e9b5b0575cad498f8fce9e39ef209411 | | domain_id | default | | enabled | False | | id | acc163d0efa14fe5b84e1dcc62ff6404 | | name | test_user | +--------------------+----------------------------------+ curl -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: e2fde9a73eb743e298e3d10aabebe5e0" -d '{"user": {"name": "test_user"}}' {"user": {"username": "test_user", "name": "test_user", "extra": {}, "enabled": false, "id": "acc163d0efa14fe5b84e1dcc62ff6404", "tenantId": "e9b5b0575cad498f8fce9e39ef209411"}} Nothing is changed, the user is still disabled. Enable user =========== PUT /v2.0/users/{userId}/OS-KSADM/enabled The above API doesn't work, there are two issue here. 1. The API unnecessarily need a request body url -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: e2fde9a73eb743e298e3d10aabebe5e0" {"error": {"message": "set_user_enabled() takes exactly 4 arguments (3 given)", "code": 400, "title": "Bad Request"}} 2. If we pass a request body without 'enabled' property, it cannot enable the disabled user. openstack user show acc163d0efa14fe5b84e1dcc62ff6404 +--------------------+----------------------------------+ | Field | Value | +--------------------+----------------------------------+ | default_project_id | e9b5b0575cad498f8fce9e39ef209411 | | domain_id | default | | enabled | False | | id | acc163d0efa14fe5b84e1dcc62ff6404 | | name | test_user | +--------------------+----------------------------------+ curl -g -i -X PUT http://10.239.159.68/identity_v2_admin/v2.0/users/acc163d0efa14fe5b84e1dcc62ff6404/OS-KSADM/enabled -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: e2fde9a73eb743e298e3d10aabebe5e0" -d '{"user": {"name": "test_user"}}' {"user": {"username": "test_user", "name": "test_user", "extra": {}, "enabled": false, "id": "acc163d0efa14fe5b84e1dcc62ff6404", "tenantId": "e9b5b0575cad498f8fce9e39ef209411"}} Nothing is changed, the user is still disabled.
2016-07-19 07:06:35 OpenStack Infra keystone: status New In Progress
2016-07-19 07:06:35 OpenStack Infra keystone: assignee Dave Chen (wei-d-chen)
2016-07-19 09:34:04 Steve Martinelli keystone: milestone newton-3
2016-07-19 09:34:10 Steve Martinelli keystone: importance Undecided High
2016-07-21 03:08:26 Dave Chen keystone: importance High Medium
2016-07-29 05:26:16 OpenStack Infra keystone: status In Progress Fix Released