Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

'clearwater-auto-config-docker' Service Stores Ingress Network IP in local_config in Swarm Mode #83

Description

@muhammad-i-imran

Symptoms

When deploying clearwater images in docker swarm, the local_config file is updated by clearwater-auto-config-docker service (by the following code: ip=$(hostname -I | sed -e 's/\(^\|^[0-9A-Fa-f: ]* \)\([0-9.][0-9.]*\)\( .*$\|$\)/\2/g' -e 's/\(^\)\(^[0-9A-Fa-f:]*\)\( .*$\|$\)/\2/g')) with ingress network IPs instead of overlay network IP because of the position of the IP after running hostname -I command.

Impact

This prevents clearwater-cluster-manager and component services (e.g. ellis, bono, ...) from starting and communicating.

Release and environment

Environment: VMs in OpenStack environment, ubuntu 16.04 OS

Steps to reproduce

1- Initialize swarm and join nodes
2- Create an overlay network
3- Create docker services using the overlay network
4- Check /etc/clearwater/local_config file. It is updated with ingress network IPs because of its position in hostname -I command.


By manually changing the IPs in local_config files in each container and restarting services result in successful live tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions