Activity log for bug #1622310

Date Who What changed Old value New value Message
2016-09-11 10:15:37 Dave Chen bug added bug
2016-09-11 10:16:33 Dave Chen description When a trust is created, it requires trustee, trustor exist in the DB, but when the associated user or project is deleted trust still exist. The trust left in the DB is useless, and won't be used any longer since either id of user/project is a random number when it got created it not likely the trust will be effective any longer. How to reproduce: $ openstack user create trustor --password abc123 $ openstack user create trustee --password abc123 $ openstack project create trust_project $ openstack role add 9cf8420ea5324f79b9d740e3ce5f0e04 --project 2c455f8756d04b9485ec0b344c0e2089 --user 3e56ae62d1c94ead9fe9a4b31aaee070 (Add role service to project trust with user trustor) curl -g -i -X POST -H "Accept: application/json" -H "X-Auth-Token: 94d06939e65243f99cbfcf331bdf3e0b" -H "Content-Type: application/json" -d '{ "trust": { "expires_at": "2017-02-27T18:30:59.999999Z", "impersonation": true, "allow_redelegation": true, "project_id": "2c455f8756d04b9485ec0b344c0e2089", "roles": [ { "name": "admin" } ], "trustee_user_id": "9147c64ef0624477bfc9dba818aa569c", "trustor_user_id": "3e56ae62d1c94ead9fe9a4b31aaee070", "redelegation_count": 3 } }' http://10.239.159.68:5000/v3/OS-TRUST/trusts $ openstack user delete trustor $ openstack trust list +---------------------------+---------------------------+---------------+---------------------------+---------------------------+---------------------------+ | ID | Expires At | Impersonation | Project ID | Trustee User ID | Trustor User ID | +---------------------------+---------------------------+---------------+---------------------------+---------------------------+---------------------------+ | e7491ab063e247b6ad072b562 | 2017-02-27T18:30:59.00000 | True | 2c455f8756d04b9485ec0b344 | 9147c64ef0624477bfc9dba81 | 3e56ae62d1c94ead9fe9a4b31 | | b32e37e | 0Z | | c0e2089 | 8aa569c | aaee070 | +---------------------------+---------------------------+---------------+---------------------------+---------------------------+---------------------------+ When a trust is created, it requires trustee, trustor exist in the DB, but when the associated user or project is deleted trust still exist in DB. The trust left in the DB is useless, and won't be used any longer since either id of user/project is a random number when it got created it not likely the trust will be effective in the future. How to reproduce: $ openstack user create trustor --password abc123 $ openstack user create trustee --password abc123 $ openstack project create trust_project $ openstack role add 9cf8420ea5324f79b9d740e3ce5f0e04 --project 2c455f8756d04b9485ec0b344c0e2089 --user 3e56ae62d1c94ead9fe9a4b31aaee070 (Add role service to project trust with user trustor) curl -g -i -X POST -H "Accept: application/json" -H "X-Auth-Token: 94d06939e65243f99cbfcf331bdf3e0b" -H "Content-Type: application/json" -d '{     "trust": {         "expires_at": "2017-02-27T18:30:59.999999Z",         "impersonation": true,         "allow_redelegation": true,         "project_id": "2c455f8756d04b9485ec0b344c0e2089",         "roles": [             {                 "name": "admin"             }         ],         "trustee_user_id": "9147c64ef0624477bfc9dba818aa569c",         "trustor_user_id": "3e56ae62d1c94ead9fe9a4b31aaee070",         "redelegation_count": 3     } }' http://10.239.159.68:5000/v3/OS-TRUST/trusts $ openstack user delete trustor $ openstack trust list +---------------------------+---------------------------+---------------+---------------------------+---------------------------+---------------------------+ | ID | Expires At | Impersonation | Project ID | Trustee User ID | Trustor User ID | +---------------------------+---------------------------+---------------+---------------------------+---------------------------+---------------------------+ | e7491ab063e247b6ad072b562 | 2017-02-27T18:30:59.00000 | True | 2c455f8756d04b9485ec0b344 | 9147c64ef0624477bfc9dba81 | 3e56ae62d1c94ead9fe9a4b31 | | b32e37e | 0Z | | c0e2089 | 8aa569c | aaee070 | +---------------------------+---------------------------+---------------+---------------------------+---------------------------+---------------------------+
2016-09-11 10:35:09 OpenStack Infra keystone: status New In Progress
2016-09-11 10:35:09 OpenStack Infra keystone: assignee Dave Chen (wei-d-chen)
2016-09-15 12:47:45 Steve Martinelli keystone: importance Undecided Low
2016-10-14 16:55:16 OpenStack Infra keystone: assignee Dave Chen (wei-d-chen) Steve Martinelli (stevemar)
2016-10-14 17:15:03 Steve Martinelli keystone: assignee Steve Martinelli (stevemar) Dave Chen (wei-d-chen)
2016-10-14 17:15:18 Steve Martinelli keystone: milestone ocata-1
2016-10-14 20:04:23 OpenStack Infra keystone: status In Progress Fix Released