From a6d71ae50ec1b24a1edf9863b49597f6507e4426 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Tue, 12 Feb 2019 09:08:07 -0500 Subject: [PATCH] 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 --- sysinv/sysinv/centos/build_srpm.data | 2 +- sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sysinv/sysinv/centos/build_srpm.data b/sysinv/sysinv/centos/build_srpm.data index 2c13de6a0d..2d590250af 100644 --- a/sysinv/sysinv/centos/build_srpm.data +++ b/sysinv/sysinv/centos/build_srpm.data @@ -1,2 +1,2 @@ SRC_DIR="sysinv" -TIS_PATCH_VER=299 +TIS_PATCH_VER=300 diff --git a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py index 300f4dd6f3..3bf1916ff6 100644 --- a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py +++ b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/host.py @@ -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."""