Comment 9 for bug 1823396

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/656701
Committed: https://git.openstack.org/cgit/starlingx/config/commit/?id=2a9b2df7c08255b5b21e10a0ff9118e6a7427d06
Submitter: Zuul
Branch: master

commit 2a9b2df7c08255b5b21e10a0ff9118e6a7427d06
Author: Al Bailey <email address hidden>
Date: Wed May 1 14:40:56 2019 -0500

    Fix configuration failure when reinstalling worker node

    When doing a system host-reinstall, the unlock of the worker would
    fail with an error in the puppet logs.

    This is because reinstall results in there not being any kubernetes
    configuration, and therefore a kubernetes join is expected, however
    the hieradata with that information was only being provided on an
    initial creation of the node.

    The fix was to always provide the token and command for the
    kubernetes join command.

    This fixes a host reinstall through sysinv.
    (lock / reinstall / unlock)

    An unsupported reinstall through a network boot (F12) will
    typically fail since the token expires after 24 hours.
    However that scenario can be remedied by a lock/unlock.

    Change-Id: Idea9f1e4b8f98203260ec0b6af7ae29c34579b86
    Fixes-Bug: 1823396
    Signed-off-by: Al Bailey <email address hidden>