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

psu-mgmt: Wait for all PSUs to be present #4

Closed
wants to merge 1 commit into from

Conversation

faisal-awada
Copy link
Contributor

Modified getPSUInventoryPath to wait for all PSUs to be present in less than 30 seconds timer. The timer gets reset when detecting new PSU present. The getPSUInventoryPath returns discovered PSUs path after no new PSUs discovered in the last 30 seconds.

Updated ItemUpdater::scanDirectory to search for installed PSU directory i.e. PSU model 2B1E should have dir /usr/share/obmc/psu/2B1E the firmware file file and the MANIFEST should reside in the model directory. The original code search in all directories then does not know what to do of multiple models.

Tested:
Tested the code in simulation module and verified it waits for all PSUs to be discovered. Verified phosphor-psu-code-manager invokes psutils to get the PSU version, compare and update.

Change-Id: I4ae00a689cc458a23c3073eb24dd8cc9303cca25

Modified getPSUInventoryPath to wait for all PSUs to be present in less
than 30 seconds timer. The timer gets reset when detecting new PSU
present. The getPSUInventoryPath returns discovered PSUs path after
no new PSUs discovered in the last 30 seconds.

Updated ItemUpdater::scanDirectory to search for installed PSU directory
i.e. PSU model 2B1E should have dir /usr/share/obmc/psu/2B1E the
firmware file file and the MANIFEST should reside in the model
directory. The original code search in all directories then does not
know what to do of multiple models.

Tested:
Tested the code in simulation module and verified it waits for all PSUs
to be discovered. Verified phosphor-psu-code-manager invokes psutils to
get the PSU version, compare and update.

Change-Id: I4ae00a689cc458a23c3073eb24dd8cc9303cca25
Signed-off-by: Faisal Awada <[email protected]>
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.

1 participant