[kubernetes-worker] Charm always installs the latest cuda package

Bug #1747833 reported by Takahisa Tanaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
New
Undecided
Unassigned

Bug Description

I'm using kubernetes-worker#81 charm. Although I specify cuda version (ex. 8.0.61-1) which is not latest in cuda-version optinon, the latest cuda packages will be installed.

First, install_cuda() in reactive/cuda.sh installs the cure-repo-<cuda-version> package and registers cuda's repository. However, the content of cuda-repo-<cuda-version> has all the same URL as below, and this repository contains all versions of cuda packages.

$ cat /etc/apt/sources.list.d/cuda.list
deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /
$

When cuda packages are installed, the latest cuda packages will be installed because only a package name is specified for apt-get install.
Please fix so that the version of cuda package specified by cuda-version option is installed.

function all::all::install_cuda() {
    cd /tmp
    [ -f ${REPO_PKG} ] && rm -f ${REPO_PKG}
    wget ${REPO_URL}
    dpkg -i /tmp/${REPO_PKG}
    apt-get update -qq && \
    apt-get install -yqq --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends \
        cuda
    rm -f ${REPO_PKG}
}

tags: added: kubernetes
tags: added: cuda
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.