Wednesday, 2021-10-06

*** ysandeep|out is now known as ysandeep05:27
opendevreviewOpenStack Proposal Bot proposed openstack/heat master: Imported Translations from Zanata  https://review.opendev.org/c/openstack/heat/+/80994906:42
*** ysandeep is now known as ysandeep|lunch08:28
zigoHi there! We're trying to fix a long standing issue, where we have the Heat API endpoint setup at something like https://example.com/orchestration-api/v1/%(tenant_id)s and heat is builing links in its stack forgetting the "/orchestration-api" part of the URL. We're struggling to find out where the error is in the code. Would someone know where we should look into?09:36
zigozaneb: Any clue? Would that be in make_url() ?09:36
*** ysandeep|lunch is now known as ysandeep09:46
*** hjensas is now known as hjensas|lunch09:58
*** ysandeep is now known as ysandeep|away11:00
opendevreviewPrzemyslaw Szczerbik proposed openstack/heat master: Add OS::Neutron::QoSMinimumBandwidthRule resource  https://review.opendev.org/c/openstack/heat/+/81266211:02
opendevreviewPrzemyslaw Szczerbik proposed openstack/heat master: Add OS::Neutron::QoSMinimumPacketRateRule resource  https://review.opendev.org/c/openstack/heat/+/81266211:53
*** ysandeep|away is now known as ysandeep12:44
zanebzigo: maybe? apparently I wrote that code... 9 years ago :D13:31
zigo:)13:32
zanebwhere exactly is the bad link showing up?13:32
zigozaneb: I lost track of who's doing what, since we can't gather as real persons ...13:32
zigoHang on, asking my colleague for it.13:33
zanebgiven that all URLs in the routing setup start with /, it seems entirely possible that when a request comes in the part of the path up to the endpoint has already been stripped, so that calling req.relative_url() would give a path with everything before /v1 missing13:41
zigozaneb: https://paste.openstack.org/show/809819/ <--- If you see here, the href should be https://preprod-api.cloud.infomaniak.ch/orchestration-api/v1/df6d...13:49
zigoSomehow, Heat believes everyone uses the root of the server, when we're using /orchestration-api/v1 instead ...13:50
zanebzigo: thanks, yeah it looks like make_url() would be the culprit13:50
zigozaneb: Allright, thanks.13:59
zigoWhat surprised me though, is that devstack is setting-up endpoints the same way we do (ie: not at the root), no ?13:59
zigoSo it should work, no ?13:59
zigoOr is there somewhere to configure that thing so it would write things correctly ?13:59
*** ysandeep is now known as ysandeep|out16:15
zanebzigo: check that the SCRIPT_NAME environment variable gets set to "/orchestration-api" by whatever environment is hosting heat-api (uwsgi, apache)17:03
zanebthe code looks correct in principle17:04
*** ysandeep|out is now known as ysandeep18:03
*** ysandeep is now known as ysandeep|out19:24

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