contrail-docker - contrail-controller - contrail-ansible: rabbitmq does not support FQDN based setup

Bug #1771292 reported by Bernhard Koessler
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
High
Leela Bharath Kumar Kassetti
R4.1
New
High
Leela Bharath Kumar Kassetti

Bug Description

contrail-configuration not starting up.

- rabbitmq is down
- rabbitmq is trying to connect to a wrong interface (bond2, instead of br-bond2)
- hostname configuration is wrong in the rabbitmqctl status (fixed by editing /etc/rabbitmq/rabbitmq-env.conf)
- ansible manageded configuration in the docker image -> would update /etc/hosts, if the hostname would not be resolvable
- maas managed interfaces, hence they get resolved
- the ansible playbook has wrong assumption where it should cut the host entry from the DNS:
$ /contrail-ansible-internal/playbooks/roles/rabbitmq/tasks/facts.yml: shell: getent hosts {{ rabbitmq_nodes | intersect(ansible_all_ipv4_addresses) | first }} | awk '{print $2}' | cut -d . -f1
$ getent hosts 100.68.100.32 | awk '{print $2}' | cut -d . -f1
bond2
$ getent hosts 100.68.100.32 | awk '{print $2}'
bond2.4-management-1.ic-skbrab1.in.pan-net.eu
--> no such host as bond2 -> rabbitmq fails to startup

Tags: ansible docker dt
tags: added: ansible
information type: Proprietary → Public
Revision history for this message
Bernhard Koessler (bkoessler) wrote :

could be done similar to the other rabbitmq charms: add the hostname with the binding IP address to the /etc/hosts file to be sure that it goes over the selected interface (and not to depend on the FQDN configuration)

Vineet Gupta (vineetrf)
Changed in juniperopenstack:
assignee: nobody → Abhay Joshi (abhayj)
Revision history for this message
Bernhard Koessler (bkoessler) wrote :

seems the current rabbit version does not handle fqdn setup well so it would be best to solve the issue with /etc/hosts file with binding IP and hostname as indicated above.

Abhay Joshi (abhayj)
Changed in juniperopenstack:
assignee: Abhay Joshi (abhayj) → Leela Bharath Kumar Kassetti (klbharat)
Jeba Paulaiyan (jebap)
Changed in juniperopenstack:
importance: Critical → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.