Allow constraints to be set for only the bootstrap node
Bug #1240431 reported by
Liam Young
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"
Changed in juju-core: | |
importance: | Undecided → High |
milestone: | none → 2.0 |
status: | New → Triaged |
tags: | added: ppc64el |
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 |
Changed in juju-core: | |
milestone: | 2.0 → none |
Changed in juju-core: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
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.