Package: release.debian.org Severity: normal User: [email protected] Usertags: unblock
Please unblock package cloudkitty The updated package adds the small attached patch. The reason for it, is that the role lookup from cloudkitty's keystone fetcher isn't working at all, and therefore, it makes it impossible to rate customers. The patch simply disables the rating role feature, and every project/tenant in the deployment gets rated by cloudkitty. unblock cloudkitty/13.0.0-5 Cheers, Thomas Goirand (zigo)
Description: Rate everyone The Keystone fetcher looks at a "rating" role to see if a project should be rated or not. Unfortunately, this doesn't work, and projects that have the rating role aren't getting rated. . This patch therefore removes the rating role look-up, and just rates everyone with an account in the OpenStack cloud, and rates everyone. This also simplifies the user management where one doesn't have to manage the rating role anymore. Author: Thomas Goirand <[email protected]> Forwarded: no Reviewed-By: <name and email of someone who approved the patch> Last-Update: 2021-03-10 --- cloudkitty-13.0.0.orig/cloudkitty/fetcher/keystone.py +++ cloudkitty-13.0.0/cloudkitty/fetcher/keystone.py @@ -77,6 +77,6 @@ class KeystoneFetcher(fetcher.BaseFetche roles = getattr(self.admin_ks.roles, role_func)( **{'user': my_user_id, tenant_attr: tenant}) - if 'rating' not in [role.name for role in roles]: - tenant_list.remove(tenant) +# if 'rating' not in [role.name for role in roles]: +# tenant_list.remove(tenant) return [tenant.id for tenant in tenant_list]

