Skip to content

Commit

Permalink
fix: nvidia-fabricmanager production
Browse files Browse the repository at this point in the history
This contains a proper fix for #511 and reverts commit b452bc6.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Dec 16, 2024
1 parent b449434 commit e2b1497
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ container:
- rshared
- rbind
- ro
# even though we set `TOPOLOGY_FILE_PATH=/usr/local/share/nvidia/nvswitch` in the config file,
# fabricmanager still tries to use /usr/share/nvidia/nvswitch
- source: /usr/local/share/nvidia/nvswitch
destination: /usr/share/nvidia/nvswitch
type: bind
options:
- rshared
- rbind
- ro
# binaries
- source: /usr/local/bin
destination: /usr/local/bin
Expand Down
1 change: 1 addition & 0 deletions nvidia-gpu/nvidia-fabricmanager/production/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ steps:
cp /pkg/nvidia-fabricmanager.yaml /rootfs/usr/local/etc/containers/nvidia-fabricmanager.yaml
echo "FABRIC_NODE_CONFIG_FILE=/usr/local/share/nvidia/nvswitch/fabricmanager.cfg" >> /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg # fix for #511
sed -i 's/DAEMONIZE=.*/DAEMONIZE=0/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
sed -i 's/STATE_FILE_NAME=.*/STATE_FILE_NAME=\/var\/run\/nvidia-fabricmanager\/fabricmanager.state/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
sed -i 's/TOPOLOGY_FILE_PATH=.*/TOPOLOGY_FILE_PATH=\/usr\/local\/share\/nvidia\/nvswitch/g' /rootfs/usr/local/share/nvidia/nvswitch/fabricmanager.cfg
Expand Down

0 comments on commit e2b1497

Please sign in to comment.