Skip to content

Conversation

@ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Nov 27, 2025

Summary

Related #21353

On Debian/Ubuntu, NVIDIA device files are world-readable (crw-rw-rw-), so netdata can access them without special permissions:

crw-rw-rw- 1 root root 195, 255 Nov 24 19:22 /dev/nvidiactl

However, on some distributions like openSUSE Leap 15.6, these devices are owned by the video group with restricted permissions (crw-rw----):

crw-rw---- 1 root video 195, 255 25. Nov 19:53 /dev/nvidiactl

This causes GPU monitoring to fail because the netdata user cannot access the device.

Test Plan
Additional Information
For users: How does this change affect me?

Summary by cubic

Add netdata to the video group during install/update so it can access NVIDIA device files and enable GPU monitoring on distros with restricted permissions.

  • Bug Fixes
    • RPM spec: include "video" in the default group list.
    • Debian postinst and makeself installer: add "video" only if /dev/nvidiactl exists.
    • Fixes GPU monitoring failures on openSUSE Leap 15.6 and similar systems.

Written for commit ae53aca. Summary will update automatically on new commits.

@ilyam8 ilyam8 requested review from a team, Ferroin and vkalintiris as code owners November 27, 2025 12:32
@ilyam8 ilyam8 requested review from Ferroin and Copilot and removed request for a team, Ferroin and vkalintiris November 27, 2025 12:32
@github-actions github-actions bot added the area/packaging Packaging and operating systems support label Nov 27, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the netdata user to the video group to enable GPU monitoring on distributions where NVIDIA device files have restricted permissions (e.g., openSUSE Leap 15.6). On these systems, /dev/nvidiactl and related devices are owned by the video group with crw-rw---- permissions, requiring group membership for access.

Key Changes:

  • Added video to the list of supplementary groups for the netdata user across all installation methods
  • Implemented conditional logic in the Debian postinst script to only add the group when NVIDIA devices are present

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packaging/makeself/install-or-update.sh Added video to NETDATA_WANTED_GROUPS list for makeself installer
packaging/installer/functions.sh Added video to NETDATA_WANTED_GROUPS list for installation script
packaging/cmake/pkg-files/deb/user/postinst Added conditional logic to add video group when /dev/nvidiactl exists
netdata.spec.in Added video to the group iteration loop in RPM post-install script

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

@ilyam8 ilyam8 force-pushed the add-netdata-video-group branch from e3603f0 to 60cfc82 Compare November 27, 2025 12:40
@github-actions github-actions bot added area/collectors Everything related to data collection collectors/go.d area/go labels Nov 27, 2025
@ilyam8 ilyam8 force-pushed the add-netdata-video-group branch from 60cfc82 to ae53aca Compare November 27, 2025 12:40
@github-actions github-actions bot removed area/collectors Everything related to data collection collectors/go.d area/go labels Nov 27, 2025
@ilyam8 ilyam8 merged commit 82323ae into netdata:master Nov 27, 2025
115 of 116 checks passed
@ilyam8 ilyam8 deleted the add-netdata-video-group branch November 27, 2025 19:59
@stelfrag stelfrag mentioned this pull request Dec 1, 2025
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Dec 1, 2025
Ferroin pushed a commit that referenced this pull request Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/packaging Packaging and operating systems support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants