Skip to content

Commit

Permalink
Merge pull request metal3-io#933 from dtantsur/redfish-vendor
Browse files Browse the repository at this point in the history
Do not disable iDRAC Redfish vendor interfaces
  • Loading branch information
metal3-io-bot authored Sep 13, 2021
2 parents c0179b1 + 9940901 commit 88aa058
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
23 changes: 8 additions & 15 deletions pkg/bmc/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -469,7 +468,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -482,7 +480,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -495,7 +492,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "irmc",
vendor: "",
},

{
Expand All @@ -508,7 +504,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -521,7 +516,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -534,7 +528,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -547,7 +540,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -560,7 +552,7 @@ func TestStaticDriverInfo(t *testing.T) {
management: "idrac-redfish",
power: "idrac-redfish",
raid: "no-raid",
vendor: "no-vendor",
vendor: "idrac-redfish",
},

{
Expand Down Expand Up @@ -600,7 +592,7 @@ func TestStaticDriverInfo(t *testing.T) {
management: "idrac-redfish",
power: "idrac-redfish",
raid: "no-raid",
vendor: "no-vendor",
vendor: "idrac-redfish",
},

{
Expand All @@ -613,7 +605,7 @@ func TestStaticDriverInfo(t *testing.T) {
management: "idrac-redfish",
power: "idrac-redfish",
raid: "no-raid",
vendor: "no-vendor",
vendor: "idrac-redfish",
},

{
Expand All @@ -626,7 +618,7 @@ func TestStaticDriverInfo(t *testing.T) {
management: "idrac-redfish",
power: "idrac-redfish",
raid: "no-raid",
vendor: "no-vendor",
vendor: "idrac-redfish",
},

{
Expand All @@ -639,7 +631,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "ibmc",
power: "ibmc",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -652,7 +643,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "no-raid",
vendor: "",
},

{
Expand All @@ -665,7 +655,6 @@ func TestStaticDriverInfo(t *testing.T) {
management: "",
power: "",
raid: "ilo5",
vendor: "",
},
} {
t.Run(tc.Scenario, func(t *testing.T) {
Expand All @@ -687,6 +676,10 @@ func TestStaticDriverInfo(t *testing.T) {
t.Fatalf("Unexpected bios interface %q, expected %q",
acc.BIOSInterface(), tc.bios)
}
if acc.VendorInterface() != tc.vendor {
t.Fatalf("Unexpected vendor interface %q, expected %q",
acc.VendorInterface(), tc.vendor)
}
})
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/bmc/idrac_virtualmedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func (a *redfishiDracVirtualMediaAccessDetails) RAIDInterface() string {
}

func (a *redfishiDracVirtualMediaAccessDetails) VendorInterface() string {
return "no-vendor"
// NOTE(dtantsur): the idrac hardware type defaults to WSMAN vendor, we need to use the Redfish implementation.
return "idrac-redfish"
}

func (a *redfishiDracVirtualMediaAccessDetails) SupportsSecureBoot() bool {
Expand Down
3 changes: 2 additions & 1 deletion pkg/bmc/redfish.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ func (a *redfishiDracAccessDetails) RAIDInterface() string {
}

func (a *redfishiDracAccessDetails) VendorInterface() string {
return "no-vendor"
// NOTE(dtantsur): the idrac hardware type defaults to WSMAN vendor, we need to use the Redfish implementation.
return "idrac-redfish"
}

func (a *redfishiDracAccessDetails) BuildBIOSSettings(firmwareConfig *metal3v1alpha1.FirmwareConfig) (settings []map[string]string, err error) {
Expand Down

0 comments on commit 88aa058

Please sign in to comment.