nvidia-container-runtime package versions cause install failure

Bug #1837710 reported by Peter Jose De Sousa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Containerd Subordinate Charm
Fix Released
High
Joseph Borg
Docker Subordinate Charm
Invalid
High
Unassigned

Bug Description

When deploying a CDK on a GPU enabled machine, upon removing containerd, and adding Docker the install hook will fail due to left-over packages.

Error here: https://pastebin.canonical.com/p/BjDntBxGXh/

In addtion containerd leaves "/etc/apt/sources.list.d/nvidia-container-runtime.list" over after removal.

Steps to reproduce:

1. Deploy CDK using latest stable on GPU enabled machine, upgrade containerd to edge
2. Let deployment settle.
3. Remove containerd
4. Allow to settle
5. Add docker runtime, install should fail with downgrade error

Expected Behaviour:

Docker installs, downgrading package; or containerd removes all related packages upon containerd `relation-removed`.

Actual Behaviour:

Docker fails to install due to package downgrade warning.

Cheers,

Peter

Revision history for this message
Peter Jose De Sousa (pjds) wrote :

Current workaround I have for this is to run: `sudo apt remove nvidia-container*`

summary: - gpu package versions cause install failure
+ nvidia-container-runtime package versions cause install failure
description: updated
Joseph Borg (joeborg)
Changed in charm-containerd:
assignee: nobody → Joseph Borg (joeborg)
Changed in charm-docker:
assignee: nobody → Joseph Borg (joeborg)
Changed in charm-containerd:
importance: Undecided → High
Changed in charm-docker:
importance: Undecided → High
Changed in charm-containerd:
status: New → Confirmed
Changed in charm-docker:
status: New → Confirmed
Revision history for this message
Joseph Borg (joeborg) wrote :
Changed in charm-containerd:
status: Confirmed → In Progress
Changed in charm-docker:
status: Confirmed → In Progress
Changed in charm-containerd:
milestone: none → 1.15+ck1
Changed in charm-docker:
milestone: none → 1.15+ck1
Joseph Borg (joeborg)
Changed in charm-containerd:
status: In Progress → Fix Committed
Changed in charm-docker:
status: In Progress → Fix Committed
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

Fixes cherry picked to stable:

https://github.com/charmed-kubernetes/charm-containerd/commit/40423626f535e8f8298531ee6be3698a0cae5146

No stable fixes required for charm-docker as this issue occurred because containerd was not cleaning itself properly.

Changed in charm-docker:
assignee: Joseph Borg (joeborg) → nobody
milestone: 1.15+ck1 → none
status: Fix Committed → Invalid
Changed in charm-containerd:
status: Fix Committed → Fix Released
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.