Friday, 2021-04-23

*** vishalmanchanda has joined #cloudkitty04:36
*** priteau has joined #cloudkitty05:29
*** cylopez has joined #cloudkitty06:26
*** sboyron has joined #cloudkitty06:30
zigopriteau: Hi there! After adding your patch https://review.opendev.org/c/openstack/cloudkitty/+/784444 I still get:08:21
zigo# cloudkitty dataframes get -p <project-id>08:21
zigo{"faultcode": "Client", "faultstring": "Policy doesn't allow storage:list_data_frames to be performed.", "debuginfo": null} (HTTP 403)08:21
zigoAny idea why?08:21
jonhercan you try any other endpoint that requires the same permissions? such as get_summary, get_total ?09:03
priteauzigo: Does it work without the -p option?09:03
zigopriteau: Yes.09:03
zigoBut it doesn't work as admin, with -p ...09:04
zigoFYI, my deployment is Victoria, with your patch added.09:04
priteauAnd did the patch fix the get summary call?09:04
zigo# cloudkitty summary get --all-tenants09:13
zigo{"faultcode": "Client", "faultstring": "Policy doesn't allow report:get_summary to be performed.", "debuginfo": null} (HTTP 403)09:13
zigoNop ...09:13
zigoThe -t option didn't work either ...09:14
zigo(same HTTP 403 error...)09:14
priteauAre you sure the patch is applied properly then?09:14
priteauIt definitely solved the issue for me, on ussuri09:14
priteauzigo: You don't happen to have an old policy file in place that would override the in-code policies?09:53
zigopriteau: No, I don't.10:14
zigopriteau: In my setup, I have /etc/cloudkitty/policy.d/00_default_policy.yaml by default only, which is all commented out. That's what I ship in the official Debian package by default as well, so it's easier for admins to override anything by just adding a new file (and leave the default as-is).10:15
zigopriteau: Also, another question (unrelated). We used to bill the volumes this way:10:17
zigocloudkitty hashmap group create volume_size10:17
zigocloudkitty hashmap service create volume_size10:17
zigocloudkitty hashmap mapping create --group-id <group-id> --service-id <service-id> -t flat <price>10:17
zigopriteau: How would I do if I want to have different price depending on the volume type?10:18
zigoWe have 2 different type of volume QoS on our Ceph, which we want to bill differently...10:18
zigoCEPH_1_perf1 and CEPH_1_perf2 ...10:18
*** priteau has quit IRC12:48
*** priteau has joined #cloudkitty12:54
*** vishalmanchanda has quit IRC13:26
*** priteau has quit IRC13:43
*** priteau has joined #cloudkitty13:46
*** cylopez has quit IRC13:52
*** fresta_ has quit IRC15:10
*** fresta_ has joined #cloudkitty15:12
*** sboyron has quit IRC20:45

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!