[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#985431: marked as done (unblock: cloudkitty/13.0.0-5)



Your message dated Mon, 22 Mar 2021 19:02:27 +0000
with message-id <E1lOPop-00011d-2g@respighi.debian.org>
and subject line unblock cloudkitty
has caused the Debian Bug report #985431,
regarding unblock: cloudkitty/13.0.0-5
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
985431: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985431
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
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 <zigo@debian.org>
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]

--- End Message ---
--- Begin Message ---
Unblocked cloudkitty.

--- End Message ---

Reply to: