Skip to content

module uuid identical between servers #1710

@matthieumarrast

Description

@matthieumarrast

Problem

Our system administrators installs the servers (containing metwork module which has already been started) by cloning a server to another one.
So it results to identical uuid between servers (file ~/var/uuid in modules).

It results to identical reponse querying urls http://<server1>:<port>/uuid, http://<server2>:<port>/uuid.... in our case it causes a server to not be able to know it is the primary or secondary server.

Possible solution

We should study the possibility to initialize the uuid during the first start of the module on the server.
Involved code is https://github.com/metwork-framework/mfext/blob/master/adm/_circus.start

if ! test -s "${MFMODULE_RUNTIME_HOME}/var/uuid"; then
    get_unique_hexa_identifier >"${MFMODULE_RUNTIME_HOME}/var/uuid"
fi

Today if the ~/var/uuid file is already present, it is not (re)initialized.... but it does not mean it is really unique (cf. "Problem")...

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