confusing error when deploying a k8s charm to a machine model

Bug #2069986 reported by Kevin W Monroe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Jordan Barrett

Bug Description

Deploying a k8s charm to a machine model gives a confusing error:

-------------------------
$ juju version
3.5.1-genericlinux-amd64

$ juju status
Model Controller Cloud/Region Version SLA Timestamp
t1 aws-us-west-2 aws/us-west-2 3.5.1 unsupported 22:00:16-05:00

Model "admin/t1" is empty.

$ juju deploy nvidia-gpu-operator --channel 1.29/stable
ERROR Charm feature requirements cannot be met:
  - charm requires feature "k8s-api" but model does not support it

Feature descriptions:
  - "k8s-api": the Kubernetes API lets charms query and manipulate the state of API objects in a Kubernetes cluster

For additional information please see: https://juju.is/docs/olm/supported-features
ERROR failed to deploy charm "nvidia-gpu-operator"
-------------------------

It's not obvious to me that this is happening because i'm trying to deploy a k8s charm to a machine model. Could we clarify "charm requires feature "k8s-api" but model does not support it" so it's more clear that there's a model/charm mismatch here?

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jordan Barrett (barrettj12)
Revision history for this message
Jordan Barrett (barrettj12) wrote :

The relevant code is in core/assumes
https://github.com/juju/juju/tree/3.5/core/assumes

I agree it's not very user-friendly, even though an attempt was made. "Features" are an abstraction that don't exist outside Juju, and so our client facing error messages should not mention them.

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.