Setting localhost region for model-defaults does nothing.

Bug #1888368 reported by Simon Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

It's possible to set a value in model-defaults for a region. Unbeknown to most the localhost has a region; "localhost". So you can add model-config to a region that does nothing.

    juju model-defaults localhost/localhost test-mode=true

This doesn't do anything, but should probably report back to the user that this isn't a valid region for setting config on to.

Revision history for this message
Ian Booth (wallyworld) wrote :

You can see what it does like so:

$ juju model-defaults localhost
Attribute Default Controller
test-mode false -
  localhost true -

[azure-instancetype-fix]ian@wallyworld:~/juju/go/src/juju/juju$ juju model-defaults
Attribute Default Controller
agent-metadata-url "" -
agent-stream released -
apt-ftp-proxy "" -
apt-http-proxy "" -
apt-https-proxy "" -
<snip>
snap-store-proxy-url "" -
ssl-hostname-verification true -
test-mode false -
  localhost true -
transmit-vendor-metrics true -
update-status-hook-interval 5m -

Next time you add a model to that region, its config will include test-mode=true.

You can test by adding a dummy region to a lxd cloud in clouds.yaml and add a model to a region which doesn't have test-mode=true and see that it gets false, whereas a model added to localhost region gets true.

Revision history for this message
Simon Richardson (simonrichardson) wrote :

I'm on about the region localhost in localhost: "localhost/localhost". This is allowed, but confusing.

Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Undecided → Low
tags: added: expirebugs-bot
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.