airshipctl/pkg/remote
Alexander Noskov 068718e07d Proper error handling with Sushy emulator
This change adds a more informative error message in case of using airshipctl
with a Sushy emulator.

In the current implementation, by executing `airshipctl baremetal powerstatus`
command with invalid BMH configuration for example, returns:
redfish client encountered an error: BMC responded '500 INTERNAL SERVER ERROR'.

After this change the output looks like this:
redfish client encountered an error: BMC responded '500 INTERNAL SERVER ERROR'.
BMC responded: 'Error finding domain by name/UUID "air-ephemeral1" at libvirt
URI qemu:///system": Domain not found: no domain with matching name 'air-ephemeral1''

In case of using airshipctl with baremetal BMC, extendedInfo contains a valid
error message, so there are no issues.

Relates-To: #320

Change-Id: I437f50d5df4b0561f352804f269b0319badcc755
2020-08-26 15:22:33 -05:00
..
power Add strong typing for baremetal power statuses 2020-05-01 17:25:31 +00:00
redfish Proper error handling with Sushy emulator 2020-08-26 15:22:33 -05:00
testdata Add management support to non-ephemeral hosts 2020-04-28 16:29:19 +00:00
errors.go Remove AirshipError 2020-05-28 14:22:44 -05:00
management.go Add management config validation 2020-05-21 14:21:59 +00:00
management_test.go Add mutual exclusivity to manager host selectors 2020-05-06 18:21:26 +00:00
remote_direct.go Add system power status check to remotedirect 2020-05-01 17:25:57 +00:00
remote_direct_test.go Add system power status check to remotedirect 2020-05-01 17:25:57 +00:00