Bad error message (ERROR: relation not found on) `juju relate` with incompatible interfaces
Bug #1980738 reported by
Pietro Pasotti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
I am developing a simple tester charm that deploys a webserver, and I encountered a strange issue when attempting to deploy and relate with traefik.
"Juju gives ERROR no relations found"
and it looks as if the relation creation fails; no relations appear on juju status.
Repro:
charmcraft pack ./tests/
juju deploy tcp-requirer-
juju deploy traefik-k8s --channel beta
juju relate traefik-k8s tcp-requirer-mock
juju relate traefik-
ERROR no relations found
To post a comment you must log in.
Looking at the source: /github. com/canonical/ traefik- k8s-operator/ blob/d42bc82bfa 26fe07e5446ae68 bb5d0d5fda3f1ea /metadata. yaml#L43
The actual charm has one interface:
https:/
```
ingress-per-unit:
interface: ingress_per_unit
description: |
Provides ingress-like routing to the single units of the related Juju application
```
While the test mock charm has: /github. com/canonical/ traefik- k8s-operator/ blob/d42bc82bfa 26fe07e5446ae68 bb5d0d5fda3f1ea /tests/ integration/ testers/ tcp/metadata. yaml#L8
https:/
```
requires:
ingress-per-unit:
interface: ingress-per-unit
limit: 1
```
note that interface: `foo-bar` is not compatible with interface: `foo_bar`
We could certainly give a better error message here.