Re-install host failed after http port changed

After changing the http port, reinstall a host will fail,
and it requires delete/add the host to recover.

This problem is due to reinstall does not update the
pxeboot config file until a unlock action is performed;
consequently the boot parameter is not updated with
the new port number.

This update sets the configure_required flag when the
host is reinstalled.

Closes-Bug: 1815495

Change-Id: Ie4f8206f93370ce4555bce9d53879b784200ba14
Signed-off-by: Tao Liu <tao.liu@windriver.com>
This commit is contained in:
Tao Liu 2019-02-12 09:08:07 -05:00
parent c34dcbb2da
commit a6d71ae50e
2 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="sysinv"
TIS_PATCH_VER=299
TIS_PATCH_VER=300

View File

@ -4815,6 +4815,7 @@ class HostController(rest.RestController):
"Please wait for this host's availability state "
"to be 'online' and then re-issue the reinstall "
"command." % hostupdate.displayid))
hostupdate.configure_required = True
def check_unlock(self, hostupdate, force_unlock=False):
"""Check semantics on host-unlock."""