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

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

Closed
crgeddes opened this issue Sep 9, 2021 · 2 comments
Closed

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

crgeddes opened this issue Sep 9, 2021 · 2 comments

Comments

@crgeddes
Copy link

crgeddes commented Sep 9, 2021

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
Copy link
Contributor

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
Copy link
Contributor

anoo1 commented Sep 10, 2021

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

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

No branches or pull requests

4 participants