subordinate can't relate to applications with different series

Bug #1776995 reported by Jason Hobbs
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

I'd like the relate a subordinate service, ntp for example, to multiple applications, some of which are on xenial and some of which are on bionic. Since the ntp charm supports both xenial and bionic, it seems like this should be possible, but it isn't:

http://paste.ubuntu.com/p/Dh9dPzvwVC/

Instead, I need one subordinate application for each series, which complicates my model and operations.

I think this is also a problem for operating system upgrades. If a subordinate is shared between multiple applications, you couldn't upgrade one of those applications, because all of the applications have to be on the same series.

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.5-beta1
status: New → Triaged
importance: Undecided → High
description: updated
tags: added: upgradeseries
Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 1776995] Re: subordinate can't relate to applications with different series

I believe the basis for this is that a charm when stored in the database
has only a single entry for series, not a sequence.

If we updated that, the logic used could be expanded.

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

@thumper,

ERROR cannot add relation "ntp:juju-info bionic-ubuntu:juju-info": principal and subordinate applications' series must match

I think this error came from the days before multi-series charms. I think all we need to do now is inspect the charm metadata to see if it supports what it's being related to, especially so with subordinates where we don't actually create a unit until we relate. The fact we store a "nominal" series against the subordinate app when deploying we can make immaterial, so long as the supported series match ok.

Ian Booth (wallyworld)
Changed in juju:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Revision history for this message
Ian Booth (wallyworld) wrote :
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
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.