Skip to content

Output flag crashes for bios informationΒ #438

@paderobins

Description

@paderobins

Your System Details

  • Python Version: latest container image (quay.io/quads/badfish; latest; 44e398e5e814 )
  • Operating System: MacOS
  • Target System Type: Dell
  • IPMI / Out-of-band Firmware Version: iDRAC 8 7.10.30.05

Describe the bug
When using the --output flag with the podman container

To Reproduce / What were you Doing?
Steps to reproduce the behavior:
Running the command works as long as I don't do the output flag.

~/ podman run -it --rm quay.io/quads/badfish --host $HOST -u $USER -p $PASS --get-bios-attribute

WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)

- INFO     - AcPwrRcvry: Last
- INFO     - AcPwrRcvryDelay: Immediate
- INFO     - AcPwrRcvryUserDelay: 120
- INFO     - AesNi: Enabled
- INFO     - AssetTag:
- INFO     - AuthorizeDeviceFirmware: Disabled
- INFO     - AvxIccpPreGrantLicense: Disabled
- INFO     - BiosNvmeDriver: DellQualifiedDrives
- INFO     - BootMode: Uefi
- INFO     - BootSeqRetry: Enabled
- INFO     - CECriticalSEL: Disabled

This should work according to the doc: https://github.com/redhat-performance/badfish/?tab=readme-ov-file#formatted-output

~/ podman run -it --rm quay.io/quads/badfish --host $HOST -u $USER -p $PASS --output json --get-bios-attribute

But the result is unsupported command error

WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
{
    "unsupported_command": true
}

Expected Behavior
Bios information should be output in json or yaml format

Addition Info
Other commands work with output json

 podman run -it --rm quay.io/quads/badfish -H $HOST -u $USER -p $PASS --power-state --output json
WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
{
    "Power state": {
        "drac_name": "On"
    }
}```

Metadata

Metadata

Assignees

No one assigned

    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