openbmc / docs

OpenBMC Documentation
Creative Commons Attribution 4.0 International
277 stars 307 forks source link

Commands to check progress of code update no longer work #65

Closed crgeddes closed 3 years ago

crgeddes commented 3 years ago

I was attempting to follow optional step 5 listed in https://github.com/openbmc/docs/blob/master/architecture/code-update/code-update.md and I hit got these errors :

root@mybmc:~# busctl get-property xyz.openbmc_project.Software.BMC.Updater  /xyz/openbmc_project/software/40789442 xyz.openbmc_project.Software.ActivationProgress Progress
Failed to get property Progress on interface xyz.openbmc_project.Software.ActivationProgress: Unknown interface xyz.openbmc_project.Software.ActivationProgress or property Progress.
[crgeddes@mysystem hibernia]$ curl -u root -b cjar -k https://mybmc/xyz/openbmc_project/software/40789442/attr/Progress
Enter host password for user 'root':
{
  "data": {
    "description": "The specified property cannot be found"
  },
  "message": "404 Not Found",
  "status": "error"
geissonator commented 3 years ago

Updates are a lot faster on our AST2600 systems, you sure the update didn't complete before you started looking for progress? @anoo1 I assume the ActivationProgress is still valid with latest code?

anoo1 commented 3 years ago

Yeah ActivationProgress is still created including the mmc layout (the hardware management console for p10bmc systems currently shows the progress values during an update), just like Andrew mentioned, this interface is deleted once the update is completed. If the progress of the update is queried some time after it started (when it may had already finished), another option is to query the Activation property (described in the step 6 of the doc), which would show a value of Activating (in progresss), Active (completed successfully), or Failed. Ex:

busctl get-property xyz.openbmc_project.Software.BMC.Updater /xyz/openbmc_project/software/40789442 xyz.openbmc_project.Software.Activation Activation