Allow constraints to be set for only the bootstrap node

Bug #1240431 reported by Liam Young
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Low
Unassigned

Bug Description

In MaaS the currently accepted method for placing the bootstrap node seems to be to use --constraints ie

juju bootstrap --constraints "tags=bootstrap"

However the constraints being specified there are constraints for the whole environment and will apply to subsequent services deployed into that juju env (unless they specify their own constraints ? ) which means only servers tagged as bootstrap will be used for here on in.

I think the option for specifying environment constraints should be explicitly named and the scope of the 'constraints' option should be just the boostrap node. Something like:

juju bootstrap --env-constraints "tags=my_new_env" --constraints "tags=bootstrap"

Revision history for this message
Nate Finch (natefinch) wrote :

You can always use juju set-constraints to change the environment-wide constraints to something else....

However, I do agree that defaulting the environment's constraints to what you specified for the bootstrap node is not intuitive to me. I'd prefer that we require an explicit set-constraints call, rather than implicitly using the same constraints from bootstrap, especially given that there's currently no way to specify constraints that are just for bootstrap and don't change the environment defaults.

Tim Penhey (thumper)
Changed in juju-core:
importance: Undecided → High
milestone: none → 2.0
status: New → Triaged
tags: added: ppc64el
Martin Packman (gz)
summary: - Allow contraints for the bootstrap node to be set
+ Allow constraints to be set for only the bootstrap node
Changed in juju-core:
importance: High → Low
Revision history for this message
Dave Cheney (dave-cheney) wrote :

removing ppc64el tag, this isn't critical for ppc

tags: removed: ppc64el
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0 → none
Revision history for this message
Liam Young (gnuoy) wrote :

I honestly think that --constraint when passed to the bootstrap env confuses everyone who uses it for the first time.

Revision history for this message
Anastasia (anastasia-macmood) wrote :

As part of other work, we have added --bootstrap-constraints for the initial machine. These are separate from --constraints.

Please confirm that it suits your purpose.

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