diff --git a/script/gs_upgradectl b/script/gs_upgradectl index 33f9d75e43b5f50d2431cfc8e0ede892012b0eb0..c4bcd9a4b5ce28d9cee5880156981685f2c37228 100644 --- a/script/gs_upgradectl +++ b/script/gs_upgradectl @@ -327,6 +327,9 @@ if __name__ == '__main__': REPEAT = False upgrade = Upgrade() upgrade.parseCommandLine() + if (self.is_grey_upgrade == False) { + GaussLog.exitWithError(ErrorCode.GAUSS_529["GAUSS_52944"]) + } upgrade.checkParameter() # set action flag file diff --git a/script/gspylib/common/ErrorCode.py b/script/gspylib/common/ErrorCode.py index 222292fd53400b17cfa435a7327d323414163cbb..45ea4e1eb169ce2f5b70a223ce659c2d302b2b8b 100644 --- a/script/gspylib/common/ErrorCode.py +++ b/script/gspylib/common/ErrorCode.py @@ -910,7 +910,8 @@ class ErrorCode(): 'GAUSS_52940': "[GAUSS-52940] : Invalid node type:%s.", 'GAUSS_52941': "[GAUSS-52941] : Invalid node role:%s.", 'GAUSS_52942': "[GAUSS-52942] : No such key to check guc value.", - 'GAUSS_52943': "[GAUSS-52943] : Invalid instance type:%s." + 'GAUSS_52943': "[GAUSS-52943] : Invalid instance type:%s.", + 'GAUSS_52944': "[GAUSS-52944] : Must use --grey option." }