gce region zone names not respected on bootstrap

Bug #2058714 reported by Pietro Pasotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Incomplete
Medium
Caner Derici

Bug Description

juju default-region google europe-west4
juju add-credential google
when prompted select region [any region, credential is not region specific]: enter europe-west4.

juju bootstrap google gce gives me output:

Creating Juju controller "gce" on google/us-east1

I think juju should complain (warn, at least) if `europe-west4` is not a known region.
Also, probably refuse to bootstrap if the requested region name cannot be respected.

Revision history for this message
Joseph Phillips (manadart) wrote :

It doesn't appear that the GCE provider makes any attempt to honour this argument.

The logic there has some superfluous layers that need to be flattened, which we should address along with this issue.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Caner Derici (cderici)
milestone: none → 3.4.3
Revision history for this message
Joseph Phillips (manadart) wrote :

Actually, the argument I was looking at is not used, but is taken from the cloud definition.

If am using 3.4 here...

Juju will prevent you from setting an invalid region with the default-region command.

Once set, "juju show-cloud google" gives me:

defined: public
type: gce
description: Google Cloud Platform
auth-types: [jsonfile, oauth2]
default-region: europe-west4
credential-count: 1
...

Then bootstrapping does create an instance in that region.

What version of Juju are you using?

Changed in juju:
status: Triaged → Incomplete
milestone: 3.4.3 → none
Revision history for this message
Pietro Pasotti (ppasotti) wrote :

I'm on 3.4.2, I think I didn't upgrade since this occurred

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.