Skip to content

redfish_command: Add BootSourceOverrideMode to DisableBootOverride command #11542

@sseekamp

Description

@sseekamp

Summary

Some BMC's require additional attributes set in the payload for DisableBootOverride

Issue Type

Feature Idea

Component Name

redfish_command

Additional Information

Some BMC's return:

msg: >-
  HTTP Error 400 on PATCH request to
  'https://BMC_IP/redfish/v1/Systems/<manager_id>', extended message: 'The
  property BootSourceOverrideMode is a required property and must be included in
  the request.'

when attempting to disable a previously set boot override:

    - name: Disable Boot Override
      community.general.redfish_command:
        category: Systems
        command: DisableBootOverride
        baseuri: "{{ bmc_ip }}"
        username: "{{ bmc_username }}"
        password: "{{ bmc_password }}"
        boot_override_mode: UEFI

The current code only includes:

        if override_enabled == "Disabled":
            payload = {"Boot": {"BootSourceOverrideEnabled": override_enabled, "BootSourceOverrideTarget": "None"}}

In the payload. This shouldn't cause harm setting on other BMC implementations if not used.

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue/PR relates to a feature requestmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions