From 00299b28b03dbee7fc4d9256373ce9a9d2fb50f1 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 13 Oct 2023 12:15:21 +0000 Subject: [PATCH] node-proxy: clean up node_proxy dir This removes a legacy file that is not needed any longer. Signed-off-by: Guillaume Abrioux --- .../cephadmlib/node_proxy/redfish-test.py | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/cephadm/cephadmlib/node_proxy/redfish-test.py diff --git a/src/cephadm/cephadmlib/node_proxy/redfish-test.py b/src/cephadm/cephadmlib/node_proxy/redfish-test.py deleted file mode 100644 index 3aaab2d2f09..00000000000 --- a/src/cephadm/cephadmlib/node_proxy/redfish-test.py +++ /dev/null @@ -1,27 +0,0 @@ -from redfish.rest.v1 import ServerDownOrUnreachableError -import redfish -import sys - - -login_host = "https://x.x.x.x:8443" -login_account = "myuser" -login_password = "mypassword" - -REDFISH_OBJ = redfish.redfish_client(base_url=login_host, username=login_account, password=login_password, default_prefix='/redfish/v1/') - -# Login -try: - REDFISH_OBJ.login(auth="session") -except ServerDownOrUnreachableError as excp: - sys.stderr.write("Error: server not reachable or does not support RedFish.\n") - sys.exit() - -# Get the system information /redfish/v1/Systems/1/SmartStorage/ -# /redfish/v1/Systems/1/Processors/ -# /redfish/v1/Systems/1/Memory/proc1dimm1/ -response = REDFISH_OBJ.get(sys.argv[1]) -# Print the system information -print(response.dict) - -# Logout -REDFISH_OBJ.logout() -- 2.39.5