airshipctl/pkg
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
..
api/v1alpha1 Add kubernetes apply executor 2020-08-21 11:18:45 -05:00
bootstrap Use log module to determine current log level 2020-08-25 16:29:19 -05:00
cluster Add poller 2020-08-19 13:47:07 -05:00
clusterctl Use log module to determine current log level 2020-08-25 16:29:19 -05:00
config Merge "Exclude kubeconfig from use-context update" 2020-08-20 05:00:23 +00:00
container Fix for Lint warnings 2020-04-28 09:40:57 -05:00
document Merge "Add unit tests for missing Bundle functions" 2020-08-10 16:23:22 +00:00
environment Refactor environment module 2020-07-31 14:03:39 +04:00
errors Remove AirshipError 2020-05-28 14:22:44 -05:00
events Merge "Introduce executor for clusterctl init phase" 2020-08-20 19:35:31 +00:00
k8s Extend kubeconfig interface for document bundle 2020-08-25 14:20:04 +04:00
log Use log module to determine current log level 2020-08-25 16:29:19 -05:00
phase Use log module to determine current log level 2020-08-25 16:29:19 -05:00
remote Proper error handling with Sushy emulator 2020-08-26 15:22:33 -05:00
secret Add copyright for missing files 2020-04-09 08:35:59 -05:00
util Refactor environment module 2020-07-31 14:03:39 +04:00
version [#204] Refactoring for version cmd 2020-05-06 09:05:19 -07:00