Skip to content

Blank vhost for Rabbitmq Scaler apiHost is erroring out when making api calls #790

Closed
@mpduarte

Description

Blank vhost for Rabbitmq Scaler apiHost is erroring out when making api calls to the queue.

Expected Behavior

With no vhost specified the api call to RabbitMQ should look like this:
http://guest:guest@rabbitmq:15672/api/queues/%2F/queuename

Actual Behavior

With no vhost specified the api call to RabbitMQ looks like this:
http://guest:guest@rabbitmq:15672/api/queues/api//queuename

Debug log from Controller:
{"level":"debug","ts":"2020-04-29T00:15:39.676Z","logger":"scalehandler","msg":"Error getting scale decision","ScaledObject.Namespace":"cust0-herald-test","ScaledObject.Name":"celery-scaledobject","ScaledObject.ScaleType":"deployment","Error":"error inspecting rabbitMQ: error requesting rabbitMQ API status: 404 Not Found, response: {"error":"Object Not Found","reason":"Not Found"}, from: http://guest:guest@rabbitmq.cust0-herald-test.svc.cluster.local:15672/api/queues/api//celery"}

Steps to Reproduce the Problem

  1. Don't specify a vhost in the apiHost setting
  2. Deploy scaledobject without vhost specified

Specifications

  • KEDA Version: v1.4.1
  • Kubernetes Version: v1.14.8
  • Scaler(s): RabbitMQ

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions