GET /api/shovels/ endpoints are returning empty results #14347
-
        Describe the bugIt seems that GET /api/shovels/ is not working properly on RMQ 4.0.3. I am running from a Docker image. So, when I send a request to the GET endpoints I am getting an empty result. To put this into context, I can confirm that I have both the rabbitmq_shovel and rabbitmq_shovel_management plugins (below is a snapshot of my logs in Additional Context). Also, I see both the Shovel Status and Shovel Management on the admin web page. Reproduction steps
 
 Expected behaviorShould return a list of shovel results. Additional contextBelow are the logs associated with the proper plugins being installed on the docker image. % docker exec rabbitmq rabbitmq-plugins enable rabbitmq_shovel Enabling plugins on node rabbit@123: started 1 plugins. Enabling plugins on node rabbit@123: started 1 plugins.  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
| 
         @ahives the management UI uses the same HTTP API endpoints available to everyone, there are no "private endpoints". I cannot reproduce it with  With the Default Virtual Hostrabbitmqadmin shovels delete --name "sh-1"
rabbitmqadmin shovels declare_amqp091 --name "sh-1" --source-uri "amqp://localhost" --destination-uri "amqp://localhost" --source-queue "sh-1.src.q" --destination-queue "sh-1.dest.q"With Two Virtual Hostsrabbitmqadmin vhosts declare --name "vh-2"
rabbitmqadmin --vhost "vh-2" shovels delete --name "sh-1"; sleep 500ms; rabbitmqadmin --vhost "vh-2" shovels declare_amqp091 --name "sh-2" --source-uri "amqp://localhost" --destination-uri "amqp://localhost" --source-queue "sh-2.src.q" --destination-queue "sh-2.dest.q"
 | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         RabbitMQ  I have demonstrated that  Shovels are scoped by virtual host, because the runtime parameters they build on are. Management UI does use the  I could not find anything relevant in any of the release notes since  For a version out of community support, that's a very detailed response, so I'll stop here.  | 
  
Beta Was this translation helpful? Give feedback.
-
        
 I'm sorry but that's not the logs you need to be looking at. Try 
  | 
  
Beta Was this translation helpful? Give feedback.

@ahives the management UI uses the same HTTP API endpoints available to everyone, there are no "private endpoints".
I cannot reproduce it with
4.1.3, and neither can therabbitmq_shovelorrabbitmqadmintest suites, althoug they mostly useGET /api/shovels/{vhost}.With the Default Virtual Host