juju get shows default value true
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
juju-core | Status tracked in Trunk | |||||
1.21 |
Fix Released
|
High
|
Dimiter Naydenov | |||
Trunk |
Fix Released
|
High
|
Dimiter Naydenov |
Bug Description
juju get shows default: true for every config option.
$ juju version
1.21-beta1-
config.yaml snip for this charm:
nagios_context:
default: "juju"
type: string
description: |
Used by the nrpe subordinate charms.
A string that will be prepended to instance name to set the host name
in nagios. So for instance the hostname would be something like:
If you're running multiple environments with the same services in them
this allows you to differentiate between them.
nagios_
default: ""
type: string
description: |
A comma-separated list of nagios servicegroups.
If left empty, the nagios_context will be used as the servicegroup.
ingestion-mode:
type: string
default: "legacy"
description: |
How to run the charms and bundles ingestion in order to populate the
database for this charm store. Possible values are:
- none: charms/bundle ingestion is disabled;
- legacy: all the charms/bundles revisions are synced with the legacy
charmworlds and charm store;
- launchpad: charms and bundles are ingested from Launchpad.
Ingestion, if enabled, is run once the charmstore service is successfully
related to elasticsearch and mongodb.
ingestion-
type: int
default: 15
description: |
The interval in minutes on which the ingestion is run, and new
charms/
previous ingestion job is still running, the current one is skipped.
The default is used if the given value is <= 0.
ingestion-
type: int
default: 1
description: |
How many parallel processors must be used to run the ingestion.
The default is used if the given value is <= 0.
ingestion-
type: string
default: "INFO"
description: |
The logging configuration to use when ingesting charms/bundles.
For instance, to debug the ingestion process it is safe to set this
value to "DEBUG". The log file can be found in
/
ingestion-match:
type: string
default: ""
description: |
Only ingest charms whose IDs match the regular expression.
By default all the charms and bundles are imported.
juju get for this charm:
$ juju get charmstore
charm: charmstore
service: charmstore
settings:
ingestion-
default: true
description: 'How many parallel processors must be used to run the ingestion.
The default is used if the given value is <= 0.
'
type: int
value: 1
ingestion-
default: true
description: 'The interval in minutes on which the ingestion is run, and new
charms/
previous ingestion job is still running, the current one is skipped.
The default is used if the given value is <= 0.
'
type: int
value: 15
ingestion-
default: true
description: 'The logging configuration to use when ingesting charms/bundles.
For instance, to debug the ingestion process it is safe to set this
value to "DEBUG". The log file can be found in
/
'
type: string
value: INFO
ingestion-match:
default: true
description: 'Only ingest charms whose IDs match the regular expression.
By default all the charms and bundles are imported.
'
type: string
value: ""
ingestion-mode:
default: true
description: "How to run the charms and bundles ingestion in order to populate
the\ndatabase for this charm store. Possible values are:\n- none: charms/bundle
ingestion is disabled;\n- legacy: all the charms/bundles revisions are synced
with the legacy\n charmworlds and charm store;\n- launchpad: charms and bundles
are ingested from Launchpad.
service is successfully\
type: string
value: legacy
listen-port:
default: true
description: This is the tcp port on which the charmstore server will listen for
connections.
type: int
value: 8080
nagios_context:
default: true
description: "Used by the nrpe subordinate charms.\nA string that will be prepended
to instance name to set the host name\nin nagios. So for instance the hostname
would be something like:\n juju-myservice-
with the same services in them\nthis allows you to differentiate between them.\n"
type: string
value: juju
nagios_
default: true
description: 'A comma-separated list of nagios servicegroups.
If left empty, the nagios_context will be used as the servicegroup.
'
type: string
value: ""
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: regression |
tags: | added: charms config |
Changed in juju-core: | |
importance: | Medium → Critical |
milestone: | none → 1.21-beta2 |
Changed in juju-core: | |
milestone: | 1.21-beta2 → 1.21 |
importance: | Critical → High |
Changed in juju-core: | |
assignee: | nobody → Domas Monkus (tasdomas) |
status: | Triaged → Fix Committed |
Changed in juju-core: | |
assignee: | Domas Monkus (tasdomas) → nobody |
status: | Fix Committed → Confirmed |
Changed in juju-core: | |
status: | Confirmed → Triaged |
status: | Triaged → Fix Committed |
status: | Fix Committed → Triaged |
Changed in juju-core: | |
assignee: | nobody → Dimiter Naydenov (dimitern) |
tags: | removed: regression |
tags: | added: docs |
So this was discussed in IRC, a rough summary is:
This has actually been the behavior for a long time. "default" in "juju get" actually means "is the value currently set the default value, or is it a user specified value". It isn't intended to report the value in config.
We're discussing changing this (to something like 'is-default') in the future command "juju service get" when the CLI is changed to use subcommand syntax.