Loading definitions without vhost tag

272 views
Skip to first unread message

Nithin Venugopal

unread,
Sep 17, 2019, 4:24:58 PM9/17/19
to rabbitmq-users
Hi,
I am trying to apply my HA policy using definitions and I am getting error when I try to run my chart with the below definition file.

CRASH REPORT Process <0.242.0> with 0 neighbours exited with reason: {error,<<“Virtual host does not exist and is not specified in definitions file.“>>} in application_master:init/4 line 138
2019-09-17 19:31:53.615 [info] <0.43.0> Application rabbit exited with reason: {error,<<“Virtual host does not exist and is not specified in definitions file.“>>}
{“Kernel pid terminated”,application_controller,“{application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{‘EXIT’,{error,<<\“Virtual host does not exist and is not specified in definitions file.\“>>}}}}}“}
Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{‘EXIT’,{error,<<“Virtual host does not exist and is not specified in definiti

We do not use vhost in our implementation. What is the work around for this?


definitions.json: |-
 
{
 
"policies": [
 
{
 
"pattern":"^(.*service1.*)|(.*service2.*)$",
 
"apply-to": "queues",
 
"definition":{
 
"ha-mode": "exactly",
 
"ha-params": 2,
 
"ha-sync-mode": "automatic",
 
"queue-master-locator": "min-masters"
 
},
 
"priority": 1
 
}
 
]
 
}

Karl Nilsson

unread,
Sep 18, 2019, 3:38:30 AM9/18/19
to rabbitm...@googlegroups.com
Import definitions is only meant to be used with full definition files that were exported from RabbitMQ. If you want to apply an HA policy only use either the management UI or the `rabbitmqctl` command line tool to do so.



Cheers
Karl

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/0234b6cc-ea0f-44d0-b913-3b02a6016b83%40googlegroups.com.


--
Karl Nilsson

Pivotal/RabbitMQ

Michael Klishin

unread,
Sep 18, 2019, 1:40:36 PM9/18/19
to rabbitmq-users
You cannot  "not use virtual hosts" [1] but a definition file can list entities but not a virtual host they reside on.
This should not happen when RabbitMQ itself imported *all* definitions but definition files can be generated and edited
in other ways.

Reply all
Reply to author
Forward
0 new messages