-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RabbitMQ api hosted in a subpath is truncated to http://host/api/ when it shouldbe http://host/subpath/api #2634
Comments
I am triaging this issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
@rtnpro @tomasgiden @ovidiubuligan the error persists |
@shcherbak Thanks for bringing this up. @tomkerkhove @tomasgiden @ovidiubuligan I confirm that this issue still persists. I am working on a fix for it. Please reopen this issue. |
Great job on #4584, @AmorBielyi! I wanted to express my support for the idea of including a separate boolean option to enable a subpath in the host value of the RabbitMQ scaler. However, I believe it might introduce some complexity to the current parsing of the RabbitMQ host path. I'm curious to know how you plan to handle situations where both vhost and subpath are specified in the host URL while allowSubpathsOnHost is set to True. In my recent approach in #4589, I utilized string operations to extract the subpath and vhost from the host path. I strongly believe that we should carefully consider the developer experience (DX) when configuring the RabbitMQ Scaler and strive to minimize any potential confusion. In my opinion, we have two possible approaches: either parse the host path URI to retrieve the subpath, vhost, and other necessary details, or alternatively, disallow the specification of vhost in the host path altogether and utilize the vhost scaler metadata instead. @zroubalik @JorTurFer WDYT? |
Hi @rtnpro @zroubalik @JorTurFer, thank you so much for your review and your attention. |
There are already some comments to address in the PR 😄 |
thanks, almost done |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This isn't stale, just summer break has happened xD |
Report
We are hosting rabbitmq with a subpath due to ingress exposed as a subpath .We do it with the following setting :
in bitnami helm chart :
This causes the api to also be hosted at
http://host/rabbit/api
Problem is this resset of Path
parsedURL.Path = ""
here : https://github.com/kedacore/keda/blob/v2.6.1/pkg/scalers/rabbitmq_scaler.go#L426We are using this configuration in keda
ScaledSecret
:Expected Behavior
Setting the host path is preserved and not truncated.
Actual Behavior
rabbitmq http subpath is truncated
Steps to Reproduce the Problem
Logs from KEDA operator
keda operator logs
keda operator metrics pod logs:
ScaledObject k8s event message :
From the message we can clearly see that
rabbit
subpath is truncatedKEDA Version
2.6.1
Kubernetes Version
1.22
Platform
Microsoft Azure
Scaler Details
RabbitMQ
Anything else?
No response
The text was updated successfully, but these errors were encountered: