"keystone-manage mapping_purge" ignores --type option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Lance Bragstad |
Bug Description
Description
===========
Although I executed "keystone-manage mapping_purge --type user", not only user entities but also group entities were purged.
It seems that "--type" option was ignored.
Steps to reproduce
==================
1. "id_mapping" table of keystone db has a user and a group entity.
MariaDB [keystone]> select * from id_mapping;
+----
| public_id | domain_id | local_id | entity_type |
+----
| a8fdd84b61106a6
| 9525834b497a7eb
+----
2. Execute "keystone-manage mapping_purge" with "--type user" option.
# keystone-manage mapping_purge --type user
3. Both of the user and the group entity were purged.
MariaDB [keystone]> select * from id_mapping;
Empty set (0.00 sec) <-- The command purged all mappings as same as without options.
Changed in keystone: | |
assignee: | nobody → Dai Hanada (dai-hanada) |
Changed in keystone: | |
assignee: | Dai Hanada (dai-hanada) → Masaki Hatada (mas-hatada-deactivatedaccount) |
Changed in keystone: | |
assignee: | Masaki Hatada (mas-hatada-deactivatedaccount) → Dai Hanada (dai-hanada) |
tags: | added: office-hours |
Changed in keystone: | |
assignee: | Dai Hanada (dai-hanada) → Lance Bragstad (lbragstad) |
Changed in keystone: | |
milestone: | none → rocky-3 |
Fix proposed to branch: master /review. openstack. org/554397
Review: https:/