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>
Reviewed: https:/ /review. opendev. org/656701 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=2a9b2df7c08 255b5b21e10a0ff 9118e6a7427d06
Committed: https:/
Submitter: Zuul
Branch: master
commit 2a9b2df7c08255b 5b21e10a0ff9118 e6a7427d06
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: Idea9f1e4b8f982 03260ec0b6af7ae 29c34579b86
Fixes-Bug: 1823396
Signed-off-by: Al Bailey <email address hidden>