bmclib icon indicating copy to clipboard operation
bmclib copied to clipboard

Multipart HTTP update support

Open ofaurax opened this issue 2 years ago • 8 comments

When trying to update a firmware with bmclib (using install-firmware example):

$ ./main --host REDACTED --user root --password REDACTED --component bios --firmware update.tar.gz
FATA[0007] 3 errors occurred:
	* provider: gofish: Multipart HTTP push updates not supported: redfish update service error
	* Multipart HTTP push updates not supported: redfish update service error
	* failure in FirmwareInstall

ofaurax avatar Aug 07 '23 14:08 ofaurax

It seems only multipart update is supported in bmclib. OpenBMC only supports basic update, as of now.

ofaurax avatar Aug 08 '23 07:08 ofaurax

OpenBMC only supports basic update, as of now.

In fact, OpenBMC implements "Unstructured HTTP push update", which is deprecated, not "basic update".

ofaurax avatar Aug 08 '23 08:08 ofaurax

I'm having this issue as well. Did you ever find a solution or try rolling your own?

davidallendj avatar Oct 04 '23 14:10 davidallendj

We implemented "Unstructured HTTP push update" in bmclib so that OpenBMC can be updated

ofaurax avatar Oct 05 '23 11:10 ofaurax

Also, support for multipart update has been merged in openbmc: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/32174

ofaurax avatar Oct 16 '23 11:10 ofaurax

Awesome! That means this should now work with bmclib if using the latest openbmc since bmclib already supports this, correct?

davidallendj avatar Oct 17 '23 16:10 davidallendj

Awesome! That means this should now work with bmclib if using the latest openbmc since bmclib already supports this, correct?

Yes, and if both are supported, bmclib should use multipart update. Please give feedback if you test it

ofaurax avatar Oct 18 '23 16:10 ofaurax

I forgot to come back and report, but I have had success updating firmware after the multipart update support was added to OpenBMC.

davidallendj avatar Jul 23 '24 21:07 davidallendj