From: Guillaume Abrioux Date: Fri, 13 Oct 2023 12:15:21 +0000 (+0000) Subject: node-proxy: clean up node_proxy dir X-Git-Tag: v18.2.4~314^2~44 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9d7d9444b2ebbbe509c7cfbf56ff2abfb05626c0;p=ceph.git node-proxy: clean up node_proxy dir This removes a legacy file that is not needed any longer. Signed-off-by: Guillaume Abrioux (cherry picked from commit fe41c29d9a135815c5b1937589aa31066763be63) --- 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 3aaab2d2f097d..0000000000000 --- 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()