Thursday, 2025-10-02

lajsbcHi11:22
lajsbcanyone here? i have some trouble setting up cloudkitty11:23
priteauHi lajsbc. What is your issue?11:26
lajsbci installed openstack using kolla ansible11:27
lajsbci installed gnocchi and celiometer and cloudkitty11:27
lajsbcbut when i set the servce type and fields and mapping11:27
lajsbcall ratings are not efffected11:28
lajsbcwhen i try to create an instance in horizon , in the dialog prompt, in Cost section11:28
lajsbcthe API returns error with 500 as status11:28
lajsbci checked the cloudkitty_api and cloudkitty_processor logs11:29
lajsbcnothing there11:29
lajsbcfor the only warns and info11:30
lajsbcno error11:30
lajsbchorizon cost prediction api "/project/rating/quote"11:31
lajsbcreturns 50011:31
lajsbcand i checked the horizon logs and it says: AttributeError: 'WSGIRequest' object has no attribute 'is_ajax'11:32
lajsbcopenstack 2025.111:32
lajsbcsince there is no error in cloudkitty services i have no idea whats wrong and how to fix it11:33
lajsbcany idea?11:33
lajsbci followed this pdf to create the service and fields and mapping: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-assets-prod/presentation-media/ObjectifLibre-OpenStackSummitVancouverHandsOnCloudkitty.pdf11:35
lajsbcgnnochi and ceilometer is working fine11:36
lajsbcbut not cloudkitty11:36
lajsbcrunning "cloudkitty summary get" in cli return nothing11:37
lajsbcand running "cloudkitty total get" returns Total  0.0 11:38
priteaulajsbc: The integration with horizon is not well tested/maintained. I think I have some old patch somewhere.11:44
lajsbcahh, i see, well its not that important in case of horizon11:45
lajsbcbut its not working in the CLI aswell11:45
lajsbci want to use the cloudkitty api11:46
lajsbcbut im not sure why its not working11:46
lajsbci see this in "cloudkitty-processor" logs:11:48
lajsbccloudkitty-processor.log11:48
lajsbc WARNING keystoneauth.identity.generic.base [-] Failed to discover available identity versions when contacting http://10.10.10.254:5000. Attempting to parse version from URL.:11:49
lajsbckeyystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.10.10.254:5000: HTTPConne11:49
mrunge_lajsbc: there was recently a patch to cloudkitty-dashboard that fixed the is_ajax call12:13
mrunge_lajsbc: https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/954719 is the mentioned patch to fix horizon calls12:16
mrunge_other than that, you may want to allow to connect to keystone, of course12:16
lajsbcmrunge thank you12:16
lajsbcbut i cant get any data from cli aswell12:17
lajsbcthats my main issue12:17
lajsbcthe keystone errror is odd12:17
lajsbci can do "curl" from with in the container to that endpoint12:17
lajsbci dont know why its saying  "no route to host"12:18
mrunge_strange12:18
lajsbcnetworking is correct12:18
lajsbcoh wait12:19
lajsbci guess that was api container12:19
lajsbc(venv) openstack@openstack:~$ docker exec cloudkitty_processor curl http://10.10.10.254 -vvv   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 10.10.10.254:80... * Connected to 10.10.10.254 (10.10.10.254) port 80 > GET / HTTP/1.1 > Host: 10.10.10.254 > User-Age12:19
lajsbcit return 30212:19
lajsbci guess that should be ok aswell, right?12:20
lajsbci can upload the full log file, if you have the time to check it12:20
opendevreviewMatt Crees proposed openstack/cloudkitty master: Fix the Flux query issue when no groupby used  https://review.opendev.org/c/openstack/cloudkitty/+/95054212:22
opendevreviewMerged openstack/cloudkitty-dashboard master: tox: Remove basepython and ineffective ignore_basepython_conflict  https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/95837512:43
opendevreviewMerged openstack/cloudkitty-dashboard master: Replace deprecated is_ajax call. This fixes the broken /project/rating endpoint  https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/95471912:58
opendevreviewMerged openstack/cloudkitty-dashboard master: Add support for custom forms  https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/95803213:07
opendevreviewMerged openstack/cloudkitty master: Add Zuul job to test Loki backend with DevStack support  https://review.opendev.org/c/openstack/cloudkitty/+/96045513:10
tkajinamlajsbc, you should try curl to http://10.10.10.254:500013:38
tkajinamlajsbc, not to http://10.10.10.25413:38
tkajinam(which means http://10.10.10.254:80 instead13:39
lajsbci did13:40
lajsbcits fine13:40
lajsbcdocker exec cloudkitty_processor curl http://10.10.10.254:5000 -vvvv   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 10.10.10.254:5000... * Connected to 10.10.10.254 (10.10.10.254) port 5000 > GET / HTTP/1.1 > Host: 10.10.10.254:5000 > User-Agent: curl/8.5.0 13:40
lajsbci restarted the container and i dont get that error anymore13:40
opendevreviewLeonie Chamberlin-Medd proposed openstack/cloudkitty master: Adds CI Testing for Prometheus  https://review.opendev.org/c/openstack/cloudkitty/+/96037414:50

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