SetServiceConstraints API does not remove tags

Bug #1309449 reported by Francesco Banconi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Low
Unassigned
juju-gui
Triaged
High
Unassigned

Bug Description

The usual behavior of SetServiceConstraints is to remove a constraint if the corresponding field is not included in params.SetConstraints.Constraints.

The only exception is tags (defined as a *[]string), which is instead preserved.
For consistency, I'd expect tags to be unset as well.

Tags: api
Curtis Hovey (sinzui)
tags: added: api
Changed in juju-core:
status: New → Triaged
importance: Undecided → Low
Changed in juju-gui:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Mark Brown (mstevenbrown) wrote :

The apparent net effect of this defect is seen in the following sequence:

$ juju bootstrap --constraints tags=jujusrv #tag was created so juju server goes to correct node

$ juju get-constraints
tags=jujusrv # this tag now constrains whole environment

S juju set-constraints # this usually clears all the constraints, right?

$ juju get-constraints
tags=jujusrv

....and now I cannot deploy ANYTHING.

Revision history for this message
Samantha Jian-Pielak (samantha-jian) wrote :

It is "juju set-constraints tags=" to clear the bootstrap constraint.

Changed in juju-core:
status: Triaged → Won't Fix
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.