简体   繁体   中英

OpenStack Grizzly keystoe remove_user command removing ALL users

I have the following code that works great in Folsom:

#remove the user for each role associated with the user
    user_roles = kc.users.list_roles(obj_id, currtenant)
    for role in user_roles:
        if obj_id == user.id:
            kc.tenants.remove_user(currtenant, obj_id, role.id)

That same code will remove ALL users rather than just the user with the id, obj_id from the tenant specified. anyone else have this issue in Grizzly?

Found the answer, it's a known issue with the Grizzly code base. https://bugs.launchpad.net/keystone/+bug/1170649

The bug also includes the suggested fix.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM