Bad error message (ERROR: relation not found on) `juju relate` with incompatible interfaces

Bug #1980738 reported by Pietro Pasotti
6
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/integration/testers/tcp from https://github.com/canonical/traefik-k8s-operator/tree/tcp-route (commit d42bc82bfa26fe07e5446ae68bb5d0d5fda3f1ea)

juju deploy tcp-requirer-mock...charm
juju deploy traefik-k8s --channel beta
juju relate traefik-k8s tcp-requirer-mock

juju relate traefik-k8s:ingress-per-unit tcp-requirer-mock:ingress-per-unit
ERROR no relations found

Revision history for this message
John A Meinel (jameinel) wrote :

Looking at the source:
The actual charm has one interface:
https://github.com/canonical/traefik-k8s-operator/blob/d42bc82bfa26fe07e5446ae68bb5d0d5fda3f1ea/metadata.yaml#L43
```
  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:
https://github.com/canonical/traefik-k8s-operator/blob/d42bc82bfa26fe07e5446ae68bb5d0d5fda3f1ea/tests/integration/testers/tcp/metadata.yaml#L8
```
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.

Changed in juju:
importance: Undecided → Medium
status: New → Triaged
summary: - ERROR: relation not found on `juju relate`
+ Bad error message (ERROR: relation not found on) `juju relate` with
+ incompatible interfaces
Revision history for this message
Pietro Pasotti (ppasotti) wrote :

*facepalms*

Thanks for sorting that out!

Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This Medium-priority bug has not been updated in 60 days, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.