diff --git a/lib/constants.py b/lib/constants.py index 9df5d719640861e41f970de1129bec9f59a0d334..9dcb5f307c5f51d100b93716191295b987a729c4 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -472,8 +472,6 @@ OPS_FINALIZED = frozenset([OP_STATUS_CANCELED, ELOG_MESSAGE = "message" ELOG_PROGRESS = "progress" -# Temporary RAPI constants until we have cluster parameters -RAPI_ENABLE = True RAPI_PORT = 5080 # max dynamic devices diff --git a/qa/qa_rapi.py b/qa/qa_rapi.py index 7c668c5184436215900922150357364a6d2b50ff..76b96f10b74f2894dff97599006a837ebb4f131f 100644 --- a/qa/qa_rapi.py +++ b/qa/qa_rapi.py @@ -58,19 +58,7 @@ def Enabled(): """Return whether remote API tests should be run. """ - return constants.RAPI_ENABLE and qa_config.TestEnabled('rapi') - - -def PrintRemoteAPIWarning(): - """Print warning if remote API is not enabled. - - """ - if constants.RAPI_ENABLE or not qa_config.TestEnabled('rapi'): - return - msg = ("Remote API is not enabled in this Ganeti build. Please run" - " `configure [...] --enable-rapi'.") - print - print qa_utils.FormatWarning(msg) + return qa_config.TestEnabled('rapi') def _DoTests(uris):