When the nvidia drivers are reinstalled either through the upgrade-packages action or through the charm, the worker will need to be rebooted in order to use the GPU. We should surface this need to the users by setting a message (and possibly blocked status) in juju status.
This requirement also highlights the issue found in LP#1982894 where changing the sources or the packages will always cause a reinstall. There should be a check added to see if there is a change in what should be installed prior to uninstalling/reinstalling.
When the nvidia drivers are reinstalled either through the upgrade-packages action or through the charm, the worker will need to be rebooted in order to use the GPU. We should surface this need to the users by setting a message (and possibly blocked status) in juju status.
This requirement also highlights the issue found in LP#1982894 where changing the sources or the packages will always cause a reinstall. There should be a check added to see if there is a change in what should be installed prior to uninstalling/ reinstalling.
Example: /pastebin. ubuntu. com/p/NwcrQGkk4 h/
https:/