juju logs about relations already existing should not be errors

Bug #1696647 reported by Thomi Richards
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Witold Krecicki
2.2
Fix Released
High
Witold Krecicki

Bug Description

When deploying services with mojo/juju-deployer, juju often logs error messages such as:

```
ERROR cannot add relation "landscape:container store-fe:juju-info": relation landscape:container store-fe:juju-info already exists (already exists)
```

This may seem benign, but in a production context, a screen full of ERROR level messages is really scary, and doesn't leave the user feeling like they can trust the tool.

I'm aware that there's an interplay here between mojo, juju-deployer, and juju, but I really don't think this should be an error message: the relation already exists, juju has nothing to do. To my mind this should be an INFO or DEBUG level message.

Paul Gear (paulgear)
tags: added: usability
John A Meinel (jameinel)
tags: added: logging
Changed in juju:
importance: Undecided → High
milestone: none → 2.2.1
status: New → Triaged
Revision history for this message
Witold Krecicki (wpk) wrote :

Could you provide a larger piece of logs with this message?

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1696647] Re: juju logs about relations already existing should not be errors

I think you could just look for "cannot add relation" and/or
"relation.*already exists".

On Thu, Jun 8, 2017 at 4:14 PM, Witold Krecicki <email address hidden>
wrote:

> Could you provide a larger piece of logs with this message?
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1696647
>
> Title:
> juju logs about relations already existing should not be errors
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1696647/+subscriptions
>

Revision history for this message
Ian Booth (wallyworld) wrote :

@witold, the place you want to change is the add-relation CLI.
That's what prints the error message referred to in the bug.

Changed in juju:
milestone: 2.2.1 → 2.2.2
Witold Krecicki (wpk)
Changed in juju:
assignee: nobody → Witold Krecicki (wpk)
Witold Krecicki (wpk)
Changed in juju:
status: Triaged → In Progress
Revision history for this message
John A Meinel (jameinel) wrote :
Changed in juju:
milestone: 2.2.2 → 2.3-alpha1
Changed in juju:
milestone: 2.3-beta1 → 2.3-beta2
Revision history for this message
Anastasia (anastasia-macmood) wrote :

I suspect that the fix for this has been already ported into 2.3 (develop) as part of one of the larger merges we have undertaken recently.

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
milestone: 2.3-beta2 → 2.3-beta1
Changed in juju:
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.