From e3b060680d15fd6616a4b92f8a4642aa7ad6e0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadej=20Borov=C5=A1ak?= Date: Thu, 19 Apr 2018 14:25:57 +0200 Subject: [PATCH] Add location LED operations These operations are triggered by identify menu actions in the UI. --- .../physical_infra_manager/operations.rb | 1 + .../physical_infra_manager/operations/led.rb | 38 +++ .../operations/led_spec.rb | 24 ++ .../makes_location_LED_start_blinking.yml | 236 ++++++++++++++++++ .../turns_off_location_LED.yml | 236 ++++++++++++++++++ .../turns_on_location_LED.yml | 236 ++++++++++++++++++ 6 files changed, 771 insertions(+) create mode 100644 app/models/manageiq/providers/redfish/physical_infra_manager/operations/led.rb create mode 100644 spec/models/manageiq/providers/redfish/physical_infra_manager/operations/led_spec.rb create mode 100644 spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_blink_loc_led/makes_location_LED_start_blinking.yml create mode 100644 spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_off_loc_led/turns_off_location_LED.yml create mode 100644 spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_on_loc_led/turns_on_location_LED.yml diff --git a/app/models/manageiq/providers/redfish/physical_infra_manager/operations.rb b/app/models/manageiq/providers/redfish/physical_infra_manager/operations.rb index a2b2b1e..652247f 100644 --- a/app/models/manageiq/providers/redfish/physical_infra_manager/operations.rb +++ b/app/models/manageiq/providers/redfish/physical_infra_manager/operations.rb @@ -3,5 +3,6 @@ module PhysicalInfraManager::Operations extend ActiveSupport::Concern include_concern "Power" + include_concern "Led" end end diff --git a/app/models/manageiq/providers/redfish/physical_infra_manager/operations/led.rb b/app/models/manageiq/providers/redfish/physical_infra_manager/operations/led.rb new file mode 100644 index 0000000..4ef059f --- /dev/null +++ b/app/models/manageiq/providers/redfish/physical_infra_manager/operations/led.rb @@ -0,0 +1,38 @@ +module ManageIQ::Providers::Redfish + module PhysicalInfraManager::Operations::Led + # Keep this in sync with app/models/physical_server/operations/led.rb in + # core and IndicatorLED enum in Redfish ComputerSystem type. Name of the + # method comes from the core and the action name used in the reset call + # from the IndicatorLED enum. + + def blink_loc_led(server, _options) + set_led_state("Blinking", server) + end + + def turn_on_loc_led(server, _options) + set_led_state("Lit", server) + end + + def turn_off_loc_led(server, _options) + set_led_state("Off", server) + end + + private + + def set_led_state(state, server) + $redfish_log.info("Setting #{server.ems_ref} LED state to #{state}.") + with_provider_connection do |client| + system = client.find(server.ems_ref) + if system.nil? + $redfish_log.error("#{server.ems_ref} does not exist anymore.") + return + end + + response = system.patch(:payload => { "IndicatorLED" => state }) + unless response.status == 200 + $redfish_log.error("LED state change on #{server.ems_ref} failed.") + end + end + end + end +end diff --git a/spec/models/manageiq/providers/redfish/physical_infra_manager/operations/led_spec.rb b/spec/models/manageiq/providers/redfish/physical_infra_manager/operations/led_spec.rb new file mode 100644 index 0000000..363a768 --- /dev/null +++ b/spec/models/manageiq/providers/redfish/physical_infra_manager/operations/led_spec.rb @@ -0,0 +1,24 @@ +describe ManageIQ::Providers::Redfish::PhysicalInfraManager do + let(:server) { FactoryGirl.create(:redfish_physical_server, :vcr) } + subject(:ems) do + FactoryGirl.create(:ems_redfish_physical_infra, :vcr) + end + + describe "#blink_loc_led", :vcr do + it "makes location LED start blinking" do + ems.blink_loc_led(server, nil) + end + end + + describe "#turn_on_loc_led", :vcr do + it "turns on location LED" do + ems.turn_on_loc_led(server, nil) + end + end + + describe "#turn_off_loc_led", :vcr do + it "turns off location LED" do + ems.turn_off_loc_led(server, nil) + end + end +end diff --git a/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_blink_loc_led/makes_location_LED_start_blinking.yml b/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_blink_loc_led/makes_location_LED_start_blinking.yml new file mode 100644 index 0000000..422b675 --- /dev/null +++ b/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_blink_loc_led/makes_location_LED_start_blinking.yml @@ -0,0 +1,236 @@ +--- +http_interactions: +- request: + method: get + uri: https://REDFISH_HOST:8889/redfish/v1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"@odata.context": "/redfish/v1/$metadata#ServiceRoot.ServiceRoot", + "@odata.id": "/redfish/v1", "@odata.type": "#ServiceRoot.v1_1_0.ServiceRoot", + "AccountService": {"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/AccountService"}, + "Chassis": {"@odata.id": "/redfish/v1/Chassis"}, "Description": "Root Service", + "EventService": {"@odata.id": "/redfish/v1/EventService"}, "Id": "RootService", + "JsonSchemas": {"@odata.id": "/redfish/v1/JSONSchemas"}, "Links": {"Sessions": + {"@odata.id": "/redfish/v1/Sessions"}}, "Managers": {"@odata.id": "/redfish/v1/Managers"}, + "Name": "Root Service", "Oem": {"Dell": {"@odata.type": "/redfish/v1/Schemas/Dell.v1_0_0#Dell.ServiceRoot", + "IsBranded": 0, "ManagerMACAddress": "10:98:36:a9:05:b0", "ServiceTag": ""}}, + "RedfishVersion": "1.0.2", "Registries": {"@odata.id": "/redfish/v1/Registries"}, + "SessionService": {"@odata.id": "/redfish/v1/SessionService"}, "Systems": + {"@odata.id": "/redfish/v1/Systems"}, "Tasks": {"@odata.id": "/redfish/v1/TaskService"}, + "UpdateService": {"@odata.id": "/redfish/v1/UpdateService"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +- request: + method: post + uri: https://REDFISH_HOST:8889/redfish/v1/Sessions + body: + encoding: UTF-8 + string: '{"UserName":"REDFISH_USERID","Password":"REDFISH_PASSWORD"}' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + Location: + - "/redfish/v1/Sessions/8f474888-af68-4711-b903-cb8b75341658" + X-Auth-Token: + - 234b6128-f778-497a-82ad-4662f910b636 + body: + encoding: ASCII-8BIT + string: '{"@odata.context": "/redfish/v1/$metadata#Session.Session", "@odata.type": + "#Session.v1_0_0.Session", "Name": "User Session", "Description": "User Session", + "UserName": "REDFISH_USERID", "@odata.id": "/redfish/v1/Sessions/8f474888-af68-4711-b903-cb8b75341658", + "Id": "8f474888-af68-4711-b903-cb8b75341658"}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +- request: + method: get + uri: https://REDFISH_HOST:8889/redfish/v1/Systems/System.Embedded.1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + X-Auth-Token: + - 234b6128-f778-497a-82ad-4662f910b636 + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"SimpleStorage": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Controllers"}, + "Links": {"CooledBy@odata.count": 12, "PoweredBy@odata.count": 0, "Oem": {"Dell": + {"BootSources": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"}, + "@odata.type": "#Dell.v1_0_0.BootSources"}}, "ManagedBy": [{"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"}], + "Chassis": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"}], "Chassis@odata.count": + 1, "PoweredBy": [], "CooledBy": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._1"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._2"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._3"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._4"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._5"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._6"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._7"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._8"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._9"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._10"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._11"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._12"}], + "ManagedBy@odata.count": 1}, "Processors": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"}, + "@redfish.copyright": "Copyright 2017 Dell, Inc. All rights reserved", + "Manufacturer": "Dell Inc.", "PowerState": "Off", "UUID": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "Name": "System", "AssetTag": "", "HostName": "", "SerialNumber": "CN701636AB0013", + "@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem", "TrustedModules": + [{"Status": {"State": "Disabled"}}], "IndicatorLED": "Lit", "SKU": "", "MemorySummary": + {"TotalSystemMemoryGiB": 32.0, "Status": {"State": "Enabled", "Health": null, + "HealthRollup": null}, "MemoryMirroring": "System"}, "Model": "DSS9630M", + "@odata.id": "/redfish/v1/Systems/System.Embedded.1", "Id": "System.Embedded.1", + "Bios": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"}, "SecureBoot": + {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"}, "ProcessorSummary": + {"Status": {"State": "Enabled", "Health": null, "HealthRollup": null}, "Count": + 2, "Model": ""}, "SystemType": "Physical", "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem", + "PartNumber": "033RF3X04", "BiosVersion": "0.4.8", "EthernetInterfaces": {"@odata.id": + "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"}, "Description": + "Computer System which represents a machine (physical or virtual) and the + local resources such as memory, cpu and other devices that can be accessed + from that machine.", "Actions": {"#ComputerSystem.Reset": {"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset", + "ResetType@Redfish.AllowableValues": ["On", "ForceOff", "GracefulRestart", + "GracefulShutdown", "PushPowerButton", "Nmi"]}}, "Boot": {"UefiTargetBootSourceOverride": + "", "BootSourceOverrideTarget": "None", "BootSourceOverrideTarget@Redfish.AllowableValues": + ["None", "Pxe", "Floppy", "Cd", "Hdd", "BiosSetup", "Utilities", "UefiTarget", + "SDCard", "UefiHttp"], "BootSourceOverrideEnabled": "Once", "BootSourceOverrideMode": + "UEFI"}, "Status": {"State": "StandbyOffline", "Health": "OK", "HealthRollup": + "OK"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +- request: + method: patch + uri: https://REDFISH_HOST:8889/redfish/v1/Systems/System.Embedded.1 + body: + encoding: UTF-8 + string: '{"IndicatorLED":"Blinking"}' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + X-Auth-Token: + - 234b6128-f778-497a-82ad-4662f910b636 + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"SimpleStorage": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Controllers"}, + "Links": {"CooledBy@odata.count": 12, "PoweredBy@odata.count": 0, "Oem": {"Dell": + {"BootSources": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"}, + "@odata.type": "#Dell.v1_0_0.BootSources"}}, "ManagedBy": [{"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"}], + "Chassis": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"}], "Chassis@odata.count": + 1, "PoweredBy": [], "CooledBy": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._1"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._2"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._3"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._4"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._5"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._6"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._7"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._8"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._9"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._10"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._11"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._12"}], + "ManagedBy@odata.count": 1}, "Processors": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"}, + "@redfish.copyright": "Copyright 2017 Dell, Inc. All rights reserved", + "Manufacturer": "Dell Inc.", "PowerState": "Off", "UUID": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "Name": "System", "AssetTag": "", "HostName": "", "SerialNumber": "CN701636AB0013", + "@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem", "TrustedModules": + [{"Status": {"State": "Disabled"}}], "IndicatorLED": "Blinking", "SKU": "", + "MemorySummary": {"TotalSystemMemoryGiB": 32.0, "Status": {"State": "Enabled", + "Health": null, "HealthRollup": null}, "MemoryMirroring": "System"}, "Model": + "DSS9630M", "@odata.id": "/redfish/v1/Systems/System.Embedded.1", "Id": "System.Embedded.1", + "Bios": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"}, "SecureBoot": + {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"}, "ProcessorSummary": + {"Status": {"State": "Enabled", "Health": null, "HealthRollup": null}, "Count": + 2, "Model": ""}, "SystemType": "Physical", "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem", + "PartNumber": "033RF3X04", "BiosVersion": "0.4.8", "EthernetInterfaces": {"@odata.id": + "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"}, "Description": + "Computer System which represents a machine (physical or virtual) and the + local resources such as memory, cpu and other devices that can be accessed + from that machine.", "Actions": {"#ComputerSystem.Reset": {"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset", + "ResetType@Redfish.AllowableValues": ["On", "ForceOff", "GracefulRestart", + "GracefulShutdown", "PushPowerButton", "Nmi"]}}, "Boot": {"UefiTargetBootSourceOverride": + "", "BootSourceOverrideTarget": "None", "BootSourceOverrideTarget@Redfish.AllowableValues": + ["None", "Pxe", "Floppy", "Cd", "Hdd", "BiosSetup", "Utilities", "UefiTarget", + "SDCard", "UefiHttp"], "BootSourceOverrideEnabled": "Once", "BootSourceOverrideMode": + "UEFI"}, "Status": {"State": "StandbyOffline", "Health": "OK", "HealthRollup": + "OK"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_off_loc_led/turns_off_location_LED.yml b/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_off_loc_led/turns_off_location_LED.yml new file mode 100644 index 0000000..279205d --- /dev/null +++ b/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_off_loc_led/turns_off_location_LED.yml @@ -0,0 +1,236 @@ +--- +http_interactions: +- request: + method: get + uri: https://REDFISH_HOST:8889/redfish/v1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:26 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"@odata.context": "/redfish/v1/$metadata#ServiceRoot.ServiceRoot", + "@odata.id": "/redfish/v1", "@odata.type": "#ServiceRoot.v1_1_0.ServiceRoot", + "AccountService": {"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/AccountService"}, + "Chassis": {"@odata.id": "/redfish/v1/Chassis"}, "Description": "Root Service", + "EventService": {"@odata.id": "/redfish/v1/EventService"}, "Id": "RootService", + "JsonSchemas": {"@odata.id": "/redfish/v1/JSONSchemas"}, "Links": {"Sessions": + {"@odata.id": "/redfish/v1/Sessions"}}, "Managers": {"@odata.id": "/redfish/v1/Managers"}, + "Name": "Root Service", "Oem": {"Dell": {"@odata.type": "/redfish/v1/Schemas/Dell.v1_0_0#Dell.ServiceRoot", + "IsBranded": 0, "ManagerMACAddress": "10:98:36:a9:05:b0", "ServiceTag": ""}}, + "RedfishVersion": "1.0.2", "Registries": {"@odata.id": "/redfish/v1/Registries"}, + "SessionService": {"@odata.id": "/redfish/v1/SessionService"}, "Systems": + {"@odata.id": "/redfish/v1/Systems"}, "Tasks": {"@odata.id": "/redfish/v1/TaskService"}, + "UpdateService": {"@odata.id": "/redfish/v1/UpdateService"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:26 GMT +- request: + method: post + uri: https://REDFISH_HOST:8889/redfish/v1/Sessions + body: + encoding: UTF-8 + string: '{"UserName":"REDFISH_USERID","Password":"REDFISH_PASSWORD"}' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:26 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + Location: + - "/redfish/v1/Sessions/c8bcb113-c00e-42a2-8dfb-52ccf0b91658" + X-Auth-Token: + - 2ae15c56-f0eb-469d-bc8a-7a3322035880 + body: + encoding: ASCII-8BIT + string: '{"@odata.context": "/redfish/v1/$metadata#Session.Session", "@odata.type": + "#Session.v1_0_0.Session", "Name": "User Session", "Description": "User Session", + "UserName": "REDFISH_USERID", "@odata.id": "/redfish/v1/Sessions/c8bcb113-c00e-42a2-8dfb-52ccf0b91658", + "Id": "c8bcb113-c00e-42a2-8dfb-52ccf0b91658"}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:26 GMT +- request: + method: get + uri: https://REDFISH_HOST:8889/redfish/v1/Systems/System.Embedded.1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + X-Auth-Token: + - 2ae15c56-f0eb-469d-bc8a-7a3322035880 + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:26 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"SimpleStorage": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Controllers"}, + "Links": {"CooledBy@odata.count": 12, "PoweredBy@odata.count": 0, "Oem": {"Dell": + {"BootSources": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"}, + "@odata.type": "#Dell.v1_0_0.BootSources"}}, "ManagedBy": [{"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"}], + "Chassis": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"}], "Chassis@odata.count": + 1, "PoweredBy": [], "CooledBy": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._1"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._2"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._3"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._4"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._5"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._6"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._7"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._8"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._9"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._10"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._11"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._12"}], + "ManagedBy@odata.count": 1}, "Processors": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"}, + "@redfish.copyright": "Copyright 2017 Dell, Inc. All rights reserved", + "Manufacturer": "Dell Inc.", "PowerState": "Off", "UUID": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "Name": "System", "AssetTag": "", "HostName": "", "SerialNumber": "CN701636AB0013", + "@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem", "TrustedModules": + [{"Status": {"State": "Disabled"}}], "IndicatorLED": "Off", "SKU": "", "MemorySummary": + {"TotalSystemMemoryGiB": 32.0, "Status": {"State": "Enabled", "Health": null, + "HealthRollup": null}, "MemoryMirroring": "System"}, "Model": "DSS9630M", + "@odata.id": "/redfish/v1/Systems/System.Embedded.1", "Id": "System.Embedded.1", + "Bios": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"}, "SecureBoot": + {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"}, "ProcessorSummary": + {"Status": {"State": "Enabled", "Health": null, "HealthRollup": null}, "Count": + 2, "Model": ""}, "SystemType": "Physical", "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem", + "PartNumber": "033RF3X04", "BiosVersion": "0.4.8", "EthernetInterfaces": {"@odata.id": + "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"}, "Description": + "Computer System which represents a machine (physical or virtual) and the + local resources such as memory, cpu and other devices that can be accessed + from that machine.", "Actions": {"#ComputerSystem.Reset": {"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset", + "ResetType@Redfish.AllowableValues": ["On", "ForceOff", "GracefulRestart", + "GracefulShutdown", "PushPowerButton", "Nmi"]}}, "Boot": {"UefiTargetBootSourceOverride": + "", "BootSourceOverrideTarget": "None", "BootSourceOverrideTarget@Redfish.AllowableValues": + ["None", "Pxe", "Floppy", "Cd", "Hdd", "BiosSetup", "Utilities", "UefiTarget", + "SDCard", "UefiHttp"], "BootSourceOverrideEnabled": "Once", "BootSourceOverrideMode": + "UEFI"}, "Status": {"State": "StandbyOffline", "Health": "OK", "HealthRollup": + "OK"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:26 GMT +- request: + method: patch + uri: https://REDFISH_HOST:8889/redfish/v1/Systems/System.Embedded.1 + body: + encoding: UTF-8 + string: '{"IndicatorLED":"Off"}' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + X-Auth-Token: + - 2ae15c56-f0eb-469d-bc8a-7a3322035880 + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:26 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"SimpleStorage": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Controllers"}, + "Links": {"CooledBy@odata.count": 12, "PoweredBy@odata.count": 0, "Oem": {"Dell": + {"BootSources": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"}, + "@odata.type": "#Dell.v1_0_0.BootSources"}}, "ManagedBy": [{"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"}], + "Chassis": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"}], "Chassis@odata.count": + 1, "PoweredBy": [], "CooledBy": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._1"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._2"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._3"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._4"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._5"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._6"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._7"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._8"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._9"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._10"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._11"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._12"}], + "ManagedBy@odata.count": 1}, "Processors": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"}, + "@redfish.copyright": "Copyright 2017 Dell, Inc. All rights reserved", + "Manufacturer": "Dell Inc.", "PowerState": "Off", "UUID": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "Name": "System", "AssetTag": "", "HostName": "", "SerialNumber": "CN701636AB0013", + "@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem", "TrustedModules": + [{"Status": {"State": "Disabled"}}], "IndicatorLED": "Off", "SKU": "", "MemorySummary": + {"TotalSystemMemoryGiB": 32.0, "Status": {"State": "Enabled", "Health": null, + "HealthRollup": null}, "MemoryMirroring": "System"}, "Model": "DSS9630M", + "@odata.id": "/redfish/v1/Systems/System.Embedded.1", "Id": "System.Embedded.1", + "Bios": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"}, "SecureBoot": + {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"}, "ProcessorSummary": + {"Status": {"State": "Enabled", "Health": null, "HealthRollup": null}, "Count": + 2, "Model": ""}, "SystemType": "Physical", "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem", + "PartNumber": "033RF3X04", "BiosVersion": "0.4.8", "EthernetInterfaces": {"@odata.id": + "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"}, "Description": + "Computer System which represents a machine (physical or virtual) and the + local resources such as memory, cpu and other devices that can be accessed + from that machine.", "Actions": {"#ComputerSystem.Reset": {"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset", + "ResetType@Redfish.AllowableValues": ["On", "ForceOff", "GracefulRestart", + "GracefulShutdown", "PushPowerButton", "Nmi"]}}, "Boot": {"UefiTargetBootSourceOverride": + "", "BootSourceOverrideTarget": "None", "BootSourceOverrideTarget@Redfish.AllowableValues": + ["None", "Pxe", "Floppy", "Cd", "Hdd", "BiosSetup", "Utilities", "UefiTarget", + "SDCard", "UefiHttp"], "BootSourceOverrideEnabled": "Once", "BootSourceOverrideMode": + "UEFI"}, "Status": {"State": "StandbyOffline", "Health": "OK", "HealthRollup": + "OK"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:26 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_on_loc_led/turns_on_location_LED.yml b/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_on_loc_led/turns_on_location_LED.yml new file mode 100644 index 0000000..876b8fb --- /dev/null +++ b/spec/vcr_cassettes/ManageIQ_Providers_Redfish_PhysicalInfraManager/_turn_on_loc_led/turns_on_location_LED.yml @@ -0,0 +1,236 @@ +--- +http_interactions: +- request: + method: get + uri: https://REDFISH_HOST:8889/redfish/v1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"@odata.context": "/redfish/v1/$metadata#ServiceRoot.ServiceRoot", + "@odata.id": "/redfish/v1", "@odata.type": "#ServiceRoot.v1_1_0.ServiceRoot", + "AccountService": {"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/AccountService"}, + "Chassis": {"@odata.id": "/redfish/v1/Chassis"}, "Description": "Root Service", + "EventService": {"@odata.id": "/redfish/v1/EventService"}, "Id": "RootService", + "JsonSchemas": {"@odata.id": "/redfish/v1/JSONSchemas"}, "Links": {"Sessions": + {"@odata.id": "/redfish/v1/Sessions"}}, "Managers": {"@odata.id": "/redfish/v1/Managers"}, + "Name": "Root Service", "Oem": {"Dell": {"@odata.type": "/redfish/v1/Schemas/Dell.v1_0_0#Dell.ServiceRoot", + "IsBranded": 0, "ManagerMACAddress": "10:98:36:a9:05:b0", "ServiceTag": ""}}, + "RedfishVersion": "1.0.2", "Registries": {"@odata.id": "/redfish/v1/Registries"}, + "SessionService": {"@odata.id": "/redfish/v1/SessionService"}, "Systems": + {"@odata.id": "/redfish/v1/Systems"}, "Tasks": {"@odata.id": "/redfish/v1/TaskService"}, + "UpdateService": {"@odata.id": "/redfish/v1/UpdateService"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +- request: + method: post + uri: https://REDFISH_HOST:8889/redfish/v1/Sessions + body: + encoding: UTF-8 + string: '{"UserName":"REDFISH_USERID","Password":"REDFISH_PASSWORD"}' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + Content-Type: + - application/json + response: + status: + code: 201 + message: Created + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + Location: + - "/redfish/v1/Sessions/6cff389e-b9d7-4ac2-92eb-ce08a079436c" + X-Auth-Token: + - cef738b3-37c1-4608-aaa6-15ee2ea68834 + body: + encoding: ASCII-8BIT + string: '{"@odata.context": "/redfish/v1/$metadata#Session.Session", "@odata.type": + "#Session.v1_0_0.Session", "Name": "User Session", "Description": "User Session", + "UserName": "REDFISH_USERID", "@odata.id": "/redfish/v1/Sessions/6cff389e-b9d7-4ac2-92eb-ce08a079436c", + "Id": "6cff389e-b9d7-4ac2-92eb-ce08a079436c"}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +- request: + method: get + uri: https://REDFISH_HOST:8889/redfish/v1/Systems/System.Embedded.1 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + X-Auth-Token: + - cef738b3-37c1-4608-aaa6-15ee2ea68834 + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"SimpleStorage": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Controllers"}, + "Links": {"CooledBy@odata.count": 12, "PoweredBy@odata.count": 0, "Oem": {"Dell": + {"BootSources": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"}, + "@odata.type": "#Dell.v1_0_0.BootSources"}}, "ManagedBy": [{"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"}], + "Chassis": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"}], "Chassis@odata.count": + 1, "PoweredBy": [], "CooledBy": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._1"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._2"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._3"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._4"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._5"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._6"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._7"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._8"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._9"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._10"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._11"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._12"}], + "ManagedBy@odata.count": 1}, "Processors": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"}, + "@redfish.copyright": "Copyright 2017 Dell, Inc. All rights reserved", + "Manufacturer": "Dell Inc.", "PowerState": "Off", "UUID": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "Name": "System", "AssetTag": "", "HostName": "", "SerialNumber": "CN701636AB0013", + "@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem", "TrustedModules": + [{"Status": {"State": "Disabled"}}], "IndicatorLED": "Off", "SKU": "", "MemorySummary": + {"TotalSystemMemoryGiB": 32.0, "Status": {"State": "Enabled", "Health": null, + "HealthRollup": null}, "MemoryMirroring": "System"}, "Model": "DSS9630M", + "@odata.id": "/redfish/v1/Systems/System.Embedded.1", "Id": "System.Embedded.1", + "Bios": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"}, "SecureBoot": + {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"}, "ProcessorSummary": + {"Status": {"State": "Enabled", "Health": null, "HealthRollup": null}, "Count": + 2, "Model": ""}, "SystemType": "Physical", "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem", + "PartNumber": "033RF3X04", "BiosVersion": "0.4.8", "EthernetInterfaces": {"@odata.id": + "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"}, "Description": + "Computer System which represents a machine (physical or virtual) and the + local resources such as memory, cpu and other devices that can be accessed + from that machine.", "Actions": {"#ComputerSystem.Reset": {"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset", + "ResetType@Redfish.AllowableValues": ["On", "ForceOff", "GracefulRestart", + "GracefulShutdown", "PushPowerButton", "Nmi"]}}, "Boot": {"UefiTargetBootSourceOverride": + "", "BootSourceOverrideTarget": "None", "BootSourceOverrideTarget@Redfish.AllowableValues": + ["None", "Pxe", "Floppy", "Cd", "Hdd", "BiosSetup", "Utilities", "UefiTarget", + "SDCard", "UefiHttp"], "BootSourceOverrideEnabled": "Once", "BootSourceOverrideMode": + "UEFI"}, "Status": {"State": "StandbyOffline", "Health": "OK", "HealthRollup": + "OK"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +- request: + method: patch + uri: https://REDFISH_HOST:8889/redfish/v1/Systems/System.Embedded.1 + body: + encoding: UTF-8 + string: '{"IndicatorLED":"Lit"}' + headers: + User-Agent: + - excon/0.62.0 + Accept: + - application/json + Odata-Version: + - '4.0' + X-Auth-Token: + - cef738b3-37c1-4608-aaa6-15ee2ea68834 + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Server: + - RedfishMockupHTTPD_v1.0.0 Python/3.6.5 + Date: + - Fri, 08 Jun 2018 08:27:27 GMT + Odata-Version: + - '4.0' + Content-Type: + - application/json + body: + encoding: ASCII-8BIT + string: '{"SimpleStorage": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage/Controllers"}, + "Links": {"CooledBy@odata.count": 12, "PoweredBy@odata.count": 0, "Oem": {"Dell": + {"BootSources": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"}, + "@odata.type": "#Dell.v1_0_0.BootSources"}}, "ManagedBy": [{"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"}], + "Chassis": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"}], "Chassis@odata.count": + 1, "PoweredBy": [], "CooledBy": [{"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._1"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._2"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._3"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._4"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._5"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._6"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._7"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._8"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._9"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._10"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._11"}, + {"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17||Fan.Embedded._12"}], + "ManagedBy@odata.count": 1}, "Processors": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"}, + "@redfish.copyright": "Copyright 2017 Dell, Inc. All rights reserved", + "Manufacturer": "Dell Inc.", "PowerState": "Off", "UUID": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "Name": "System", "AssetTag": "", "HostName": "", "SerialNumber": "CN701636AB0013", + "@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem", "TrustedModules": + [{"Status": {"State": "Disabled"}}], "IndicatorLED": "Lit", "SKU": "", "MemorySummary": + {"TotalSystemMemoryGiB": 32.0, "Status": {"State": "Enabled", "Health": null, + "HealthRollup": null}, "MemoryMirroring": "System"}, "Model": "DSS9630M", + "@odata.id": "/redfish/v1/Systems/System.Embedded.1", "Id": "System.Embedded.1", + "Bios": {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"}, "SecureBoot": + {"@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"}, "ProcessorSummary": + {"Status": {"State": "Enabled", "Health": null, "HealthRollup": null}, "Count": + 2, "Model": ""}, "SystemType": "Physical", "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem", + "PartNumber": "033RF3X04", "BiosVersion": "0.4.8", "EthernetInterfaces": {"@odata.id": + "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"}, "Description": + "Computer System which represents a machine (physical or virtual) and the + local resources such as memory, cpu and other devices that can be accessed + from that machine.", "Actions": {"#ComputerSystem.Reset": {"target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset", + "ResetType@Redfish.AllowableValues": ["On", "ForceOff", "GracefulRestart", + "GracefulShutdown", "PushPowerButton", "Nmi"]}}, "Boot": {"UefiTargetBootSourceOverride": + "", "BootSourceOverrideTarget": "None", "BootSourceOverrideTarget@Redfish.AllowableValues": + ["None", "Pxe", "Floppy", "Cd", "Hdd", "BiosSetup", "Utilities", "UefiTarget", + "SDCard", "UefiHttp"], "BootSourceOverrideEnabled": "Once", "BootSourceOverrideMode": + "UEFI"}, "Status": {"State": "StandbyOffline", "Health": "OK", "HealthRollup": + "OK"}}' + http_version: + recorded_at: Fri, 08 Jun 2018 08:27:27 GMT +recorded_with: VCR 3.0.3