Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence unnecessary warning in CollectFirmwareChecksums #165

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

mmlb
Copy link
Member

@mmlb mmlb commented Jun 25, 2024

What does this PR do

Quiets down "error collectiong BIOS Logo checksum" error messages during inventory action.

The HW vendor this change applies to (if applicable)

Any where flashrom errors while trying to get the logo checksums, for example:

reading firmware binary image: cmd flashrom -p internal --ifd -i bios -r /tmp/bios_checksum/bios_img.bin exited with error: FCH device found but SMBus revision 0x61 does not match known values.
Please report this to flashrom@flashrom.org and include this log and
the output of lspci -nnvx, thanks!.
Could not determine chipset generation.
	exitCode: 1
	stdout: flashrom v1.3.0 on Linux 6.8.7 (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found chipset "AMD FP4".
Enabling flash write... PROBLEMS, continuing anyway
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found automatically.

How can this change be tested by a PR reviewer?

Run it on a machine w/o a bios that flashrom can interrogate and see no errors logged.

Seeing the following when trying to run vogelkop disk wipe:
```
INFO[0000] error collecting BIOS Logo checksum           error="reading firmware binary image: cmd /nix/store/d01i7vhwh0fjj5pf6q2dna1qr3pbw5zj-flashrom-1.3.0/bin/flashrom -p internal --ifd -i bios -r /tmp/bios_checksum/bios_img.bin exited with error: FCH device found but SMBus revision 0x61 does not match known values.\nPlease report this to flashrom@flashrom.org and include this log and\nthe output of lspci -nnvx, thanks!.\nCould not determine chipset generation.\n\t exitCode: 1\n\t stdout: flashrom v1.3.0 on Linux 6.8.7 (x86_64)\nflashrom is free software, get the source code at https://flashrom.org\n\nUsing clock_gettime for delay loops (clk_id: 1, resolution: 1ns).\nFound chipset \"AMD FP4\".\nEnabling flash write... PROBLEMS, continuing anyway\nNo EEPROM/flash device found.\nNote: flashrom can never write if the flash chip isn't found automatically.\n"
```

Seeing as both flashrom and ironlib do not treat this as an error and we
are already handling the error (by returning it) we should not also log
it, leave that to the caller to decide.
@mmlb mmlb merged commit 2938705 into metal-toolbox:main Jun 26, 2024
5 checks passed
@mmlb mmlb deleted the quiet-bios-logo-error branch June 26, 2024 12:59
mmlb added a commit to metal-toolbox/vogelkop that referenced this pull request Jun 28, 2024
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/metal-toolbox/ironlib](https://github.com/metal-toolbox/ironlib)
| `v0.2.18` -> `v0.3.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmetal-toolbox%2fironlib/v0.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fmetal-toolbox%2fironlib/v0.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fmetal-toolbox%2fironlib/v0.2.18/v0.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmetal-toolbox%2fironlib/v0.2.18/v0.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>metal-toolbox/ironlib
(github.com/metal-toolbox/ironlib)</summary>

###
[`v0.3.0`](https://github.com/metal-toolbox/ironlib/releases/tag/v0.3.0)

[Compare
Source](https://github.com/metal-toolbox/ironlib/compare/v0.2.18...v0.3.0)

#### What's Changed

- Silence unnecessary warning in CollectFirmwareChecksums by
[@&#8203;mmlb](https://github.com/mmlb) in
[metal-toolbox/ironlib#165
- Add a loopback block device test for blkdiscard by
[@&#8203;ScottGarman](https://github.com/ScottGarman) in
[metal-toolbox/ironlib#166

**Full Changelog**:
metal-toolbox/ironlib@v0.2.18...v0.3.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/metal-toolbox/vogelkop).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants