Skip to content

redfish_idrac_firmware_update: fails after initial apply #232

Open
@dkaser

Description

Terraform CLI and Terraform Redfish Provider Version

Terraform 1.9.5
Redfish Provider Version 1.4.0

Server(s) details and firmware version

Dell R760

iDRAC 9
BIOS Version 2.2.8
Firmware Version 7.10.50.10

Affected Resource(s)

resource "redfish_idrac_firmware_update"

Expected Behavior

The documentation for redfish_idrac_firmware_update directs to have the firmware catalog applied on every run. On the initial apply run, the firmware updates should be applied to the server. On subsequent runs, firmware updates should be applied if the catalog has changed; otherwise, the module should finish successfully.

Actual Behavior

If the catalog has not changed since the last apply, the module fails with an error:

redfish_idrac_firmware_update.update["name"]: Still creating... [10s elapsed]
╷
│ Error: install service error
│
│   with redfish_idrac_firmware_update.update["name"],
│   on firmware.tf line 1, in resource "redfish_idrac_firmware_update" "update":
│    1: resource "redfish_idrac_firmware_update" "update" {
│
│ 400: {"error":{"@Message.ExtendedInfo":[{"Message":"Unable to complete the operation because the catalog name entered has either unsupported firmware packages or same version installed on the
│ server.","MessageArgs":[],"MessageArgs@odata.count":0,"MessageId":"IDRAC.2.9.SUP029","RelatedProperties":[],"RelatedProperties@odata.count":0,"Resolution":"Make sure a valid catalog is used which has
│ applicable and supported Windows Update Packages in the repository.","Severity":"Warning"}],"code":"Base.1.12.GeneralError","message":"A general error has occurred. See ExtendedInfo for more
│ information"}}
╵

Steps to Reproduce

  1. terraform apply

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions