-
Notifications
You must be signed in to change notification settings - Fork 309
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
NAS-132131 / 25.04 / Add docker nvidia status #10983
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #10983 +/- ##
=======================================
Coverage 81.91% 81.91%
=======================================
Files 1613 1614 +1
Lines 56861 56877 +16
Branches 5886 5887 +1
=======================================
+ Hits 46577 46593 +16
Misses 10284 10284 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Middleware behavior doesn't match my expectations.
On a CI machine, the initial status is NOT_INSTALLED
, when I install drivers it becomes ABSENT
.
Shouldn't it be the other way around, @themylogin?
@@ -38,7 +39,8 @@ export class DockerStore extends ComponentStore<DockerConfigState> { | |||
readonly dockerConfig$ = this.select((state) => state.dockerConfig); | |||
readonly selectedPool$ = this.select((state) => state.dockerConfig?.pool || null); | |||
readonly nvidiaDriversInstalled$ = this.select((state) => state.nvidiaDriversInstalled); | |||
readonly lacksNvidiaDrivers$ = this.select((state) => state.lacksNvidiaDrivers); | |||
readonly lacksNvidiaDrivers$ = this.select((state) => state.nvidiaStatus !== DockerNvidiaStatus.Absent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think name matches the condition.
@undsoft you are correct, fixed truenas/middleware#14872 |
@undsoft now it returns For testing:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@themylogin Please note that it's possible to have a mismatch beween nvidia
property in docker.config
and docker.nvidia_status
. If you force driver installation on a system that doesn't have nvidia cards, the former will return true
, while the latter returns ABSENT
.
This is fine (good actually) for purposes of UI behavior, but if you fix it in the future, UI may behave unexpectedly.
# Conflicts: # src/assets/i18n/es-ar.json # src/assets/i18n/fr.json # src/assets/i18n/zh-hans.json
JIRA ticket https://ixsystems.atlassian.net/browse/NAS-132131 is targeted to the following versions which have not received their corresponding PRs: 24.10.1 |
This PR has been merged and conversations have been locked. |
backport |
Changes:
Add support for
docker.nvidia_status
endpointTesting:
Check the Apps page and settings.