• Iustin Pop's avatar
    Add uuid on node/instance add and cluster init · 430b923c
    Iustin Pop authored
    This patch does a little bit of cleanup first, since we want to call
    GenerateUniqueID without reacquiring the lock.
    Note that we don't necessarily need to do this for the cluster, since at
    first startup ConfigWriter will do it anyway. But it's better to
    explicitely do this instead of relying on the automated upgrade.
    Additionally this patch adds ctime/mtime population at cluster init
    time. mtime is not necessarily needed (master will update it
    automatically, but we're doing it anyway for consistency).
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
bootstrap.py 19.5 KB