scale ignored in overlay files

Bug #1884465 reported by Paul Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Simon Richardson

Bug Description

From experimentation (with Juju 2.8.0) it seems that only the initial bundle's "scale" parameter is honoured. A common pattern for our deployments is something that results in the following "juju deploy" command:

juju deploy ${CONFIG_ROOT}/is/mattermost/bundle.yaml
    --overlay ${CONFIG_ROOT}/is/mattermost/production/bundle.yaml
    --overlay ${CONFIG_ROOT}/secrets-overlay.yaml-local.cfg

I would prefer to set scale to 1 by default and set it to 2 for production. However, it seems that my "scale: 2" in mattermost/production/bundle.yaml is ignored, and of course removing "scale: 1" from mattermost/bundle.yaml results in the default of 0 being applied.

We can work around this by templating the base bundle, but ideally information specific to the production deployment would be confined to the production overlay bundle.

Tags: bundles k8s
Tim Penhey (thumper)
tags: added: bundles k8s
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.8-next
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.8-next → 2.9.1
Changed in juju:
assignee: nobody → Simon Richardson (simonrichardson)
Revision history for this message
Simon Richardson (simonrichardson) wrote :

This happens because we re-write scale to num_units during the normalisation phase of reading in a bundle. We then loose the presence of scale from the base bundle and when it applies the new scale it can no longer correctly apply it.

Charm fix (juju fix to follow up shortly): https://github.com/juju/charm/pull/366

Changed in juju:
status: Triaged → In Progress
Revision history for this message
Simon Richardson (simonrichardson) wrote :

The following PR brings in the changes to juju: https://github.com/juju/juju/pull/12959

Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
milestone: 2.9.1 → 2.9.2
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.