| lajsbc | Hi | 11:22 |
|---|---|---|
| lajsbc | anyone here? i have some trouble setting up cloudkitty | 11:23 |
| priteau | Hi lajsbc. What is your issue? | 11:26 |
| lajsbc | i installed openstack using kolla ansible | 11:27 |
| lajsbc | i installed gnocchi and celiometer and cloudkitty | 11:27 |
| lajsbc | but when i set the servce type and fields and mapping | 11:27 |
| lajsbc | all ratings are not efffected | 11:28 |
| lajsbc | when i try to create an instance in horizon , in the dialog prompt, in Cost section | 11:28 |
| lajsbc | the API returns error with 500 as status | 11:28 |
| lajsbc | i checked the cloudkitty_api and cloudkitty_processor logs | 11:29 |
| lajsbc | nothing there | 11:29 |
| lajsbc | for the only warns and info | 11:30 |
| lajsbc | no error | 11:30 |
| lajsbc | horizon cost prediction api "/project/rating/quote" | 11:31 |
| lajsbc | returns 500 | 11:31 |
| lajsbc | and i checked the horizon logs and it says: AttributeError: 'WSGIRequest' object has no attribute 'is_ajax' | 11:32 |
| lajsbc | openstack 2025.1 | 11:32 |
| lajsbc | since there is no error in cloudkitty services i have no idea whats wrong and how to fix it | 11:33 |
| lajsbc | any idea? | 11:33 |
| lajsbc | i 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.pdf | 11:35 |
| lajsbc | gnnochi and ceilometer is working fine | 11:36 |
| lajsbc | but not cloudkitty | 11:36 |
| lajsbc | running "cloudkitty summary get" in cli return nothing | 11:37 |
| lajsbc | and running "cloudkitty total get" returns Total 0.0 | 11:38 |
| priteau | lajsbc: The integration with horizon is not well tested/maintained. I think I have some old patch somewhere. | 11:44 |
| lajsbc | ahh, i see, well its not that important in case of horizon | 11:45 |
| lajsbc | but its not working in the CLI aswell | 11:45 |
| lajsbc | i want to use the cloudkitty api | 11:46 |
| lajsbc | but im not sure why its not working | 11:46 |
| lajsbc | i see this in "cloudkitty-processor" logs: | 11:48 |
| lajsbc | cloudkitty-processor.log | 11: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 |
| lajsbc | keyystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.10.10.254:5000: HTTPConne | 11:49 |
| mrunge_ | lajsbc: there was recently a patch to cloudkitty-dashboard that fixed the is_ajax call | 12:13 |
| mrunge_ | lajsbc: https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/954719 is the mentioned patch to fix horizon calls | 12:16 |
| mrunge_ | other than that, you may want to allow to connect to keystone, of course | 12:16 |
| lajsbc | mrunge thank you | 12:16 |
| lajsbc | but i cant get any data from cli aswell | 12:17 |
| lajsbc | thats my main issue | 12:17 |
| lajsbc | the keystone errror is odd | 12:17 |
| lajsbc | i can do "curl" from with in the container to that endpoint | 12:17 |
| lajsbc | i dont know why its saying "no route to host" | 12:18 |
| mrunge_ | strange | 12:18 |
| lajsbc | networking is correct | 12:18 |
| lajsbc | oh wait | 12:19 |
| lajsbc | i guess that was api container | 12: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-Age | 12:19 |
| lajsbc | it return 302 | 12:19 |
| lajsbc | i guess that should be ok aswell, right? | 12:20 |
| lajsbc | i can upload the full log file, if you have the time to check it | 12:20 |
| opendevreview | Matt Crees proposed openstack/cloudkitty master: Fix the Flux query issue when no groupby used https://review.opendev.org/c/openstack/cloudkitty/+/950542 | 12:22 |
| opendevreview | Merged openstack/cloudkitty-dashboard master: tox: Remove basepython and ineffective ignore_basepython_conflict https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/958375 | 12:43 |
| opendevreview | Merged openstack/cloudkitty-dashboard master: Replace deprecated is_ajax call. This fixes the broken /project/rating endpoint https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/954719 | 12:58 |
| opendevreview | Merged openstack/cloudkitty-dashboard master: Add support for custom forms https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/958032 | 13:07 |
| opendevreview | Merged openstack/cloudkitty master: Add Zuul job to test Loki backend with DevStack support https://review.opendev.org/c/openstack/cloudkitty/+/960455 | 13:10 |
| tkajinam | lajsbc, you should try curl to http://10.10.10.254:5000 | 13:38 |
| tkajinam | lajsbc, not to http://10.10.10.254 | 13:38 |
| tkajinam | (which means http://10.10.10.254:80 instead | 13:39 |
| lajsbc | i did | 13:40 |
| lajsbc | its fine | 13:40 |
| lajsbc | docker 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 |
| lajsbc | i restarted the container and i dont get that error anymore | 13:40 |
| opendevreview | Leonie Chamberlin-Medd proposed openstack/cloudkitty master: Adds CI Testing for Prometheus https://review.opendev.org/c/openstack/cloudkitty/+/960374 | 14:50 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!