When deploying a bundle, num_units defaults to zero if not specified
Bug #1595330 reported by
Brad Crittenden
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
If a service/application in a bundle.yaml file does not specify a 'num_units' constraint, Juju 2 now defaults to zero units. The bundle deploys and relations are added but no machines are available for the affected services.
This behavior is incredibly confusing and unintuitive.
If those semantics are really what you want, you should at least print a message in the bundle deploy making it obvious what just happened. If a machine is created a message is currently printed like
added jem/0 unit to new machine
If a service is skipped because no units are specified the user should be informed.
Personally I think num_units should default to 1 because that is the most reasonable.
tags: | added: bitesize |
Changed in juju-core: | |
milestone: | none → 2.0.0 |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0.0 → none |
milestone: | none → 2.0.0 |
Changed in juju: | |
milestone: | 2.0.0 → 2.0.1 |
Changed in juju: | |
milestone: | 2.0.1 → none |
Changed in juju: | |
assignee: | Vinodhini (vinu-b) → nobody |
milestone: | 2.4-beta1 → none |
tags: | removed: bitesize |
To post a comment you must log in.
+1 to defaulting to 1 unit if num_units is not specified.