Oracle cloud region in credential overrides command-line region

Bug #2031613 reported by George Yazbek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Vitaly Antonenko

Bug Description

Version: juju 3.1.5

Steps to reproduce
- Create credential with a specific region (eu-frankfurt-1)

credentials:
  oracle:
    ocicred:
      auth-type: httpsig
      fingerprint: 4b:ee:73:08:2e:05:d5:48:3a:6b:bd:f2:1e:44:00:6d
      key: |
        -----BEGIN PRIVATE KEY-----
        MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC9CR0GAfTgU4NW
        -----END PRIVATE KEY-----
      pass-phrase: ""
      region: eu-frankfurt-1
      tenancy: ocid1.tenancy.oc1..aaaaaaaaqu32wgujqfwqi2bduol67y4opamitpbmfwsfguopayv5c2icx77q
      user: ocid1.user.oc1..aaaaaaaac7owsp7ogeiqnl3jfz2t6eubfc5u62arngg3gcx6hsmttb7pnhuq

- Bootstrap a controller without specifying a region.
  The default region us/phoenix-1 is displayed but the actual controller is created in eu-frankfurt-1

```
juju bootstrap --config compartment-id=ocid1.tenancy.oc1..aaaaaaaaqu32wgujqfwqi2bduol67y4opamitpbmfwsfguopayv5c2icx77q oracle oracle-controller-noregion --bootstrap-constraints "arch=amd64"
Creating Juju controller "oracle-controller-noregion" on oracle/us-phoenix-1
Looking for packaged Juju agent version 3.1.5 for amd64
Located Juju agent version 3.1.5-ubuntu-amd64 at https://streams.canonical.com/juju/tools/agent/3.1.5/juju-3.1.5-linux-amd64.tgz
Launching controller instance(s) on oracle/us-phoenix-1...
 - ocid1.instance.oc1.eu-frankfurt-1.antheljtfwlrq6ac5nx3zpizfsggcqpuocll7qvydgsbaxjnqzzo763rn3xa (arch=amd64)
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 10.0.0.187:22
Attempting to connect to 132.145.228.82:22
```

- Bootstrap a controller specifying a region.
  The specified region is displayed and stored in the controllers.yaml file but the actual VM is created in eu-frankfurt-1

Changed in juju:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Jack Shaw (jack-shaw)
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

this may be a duplicate of 1864154.

Changed in juju:
assignee: Jack Shaw (jack-shaw) → Vitaly Antonenko (anvial)
milestone: none → 3.1.7
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.