Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JUJU-4619] Missing oracle cloud regions and list not being updated #16287

Conversation

anvial
Copy link
Member

@anvial anvial commented Sep 19, 2023

This PR adds 51 new region for Oracle cloud provider. Regions list was taken from oci cli-tool output.

Checklist

  • Code style: imports ordered, good names, simple structure, etc
  • Comments saying why design decisions were made
  • Go unit tests, with comments saying what you're testing

QA steps

Commands to run to verify that the change works.

go test github.com/juju/juju/cloud/... -gocheck.v

juju regions oracle

Links

Launchpad bug: https://pad.lv/2031468

Jira card: JUJU-4619

This commit adds 51 new region for Oracle cloud provider. Regions list
was taken from `oci` cli-tool output.
@anvial anvial added the 3.1 label Sep 19, 2023
@hmlanigan hmlanigan self-requested a review September 19, 2023 14:32
Copy link
Member

@hmlanigan hmlanigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA has a failure, I did a juju bootstrap oci-canonical/us-ashburn-1 and the controller was still created in Phoenix, which is the default. Same for added models, cloud/region works

$ juju add-model five oci-canonical/us-ashburn-1
Added 'five' model on oci-canonical/us-ashburn-1 with credential 'default' for user 'admin'

But region only, per the juju add-model --help fails.

$ juju add-model five us-luke-1
ERROR cloud us-luke-1 not found
Use 'juju clouds' to see a list of all available clouds or 'juju add-cloud' to a add one.

Even though I added a model in us-ashburn-1, machine appeared in us-phoenix-1 region.

cloud/fallback-public-cloud.yaml Outdated Show resolved Hide resolved
This commit removes the gov regions, if needed we will add them as
saparate clouds (like did with AWS).
@anvial anvial force-pushed the JUJU-4619-missing-oracle-cloud-regions-and-list-not-being-updated branch from 90dbbc7 to 9d31376 Compare September 20, 2023 10:40
@anvial
Copy link
Member Author

anvial commented Oct 23, 2023

/merge

@anvial anvial changed the title [JUJU-4619] [WIP] Missing oracle cloud regions and list not being updated [JUJU-4619] Missing oracle cloud regions and list not being updated Oct 23, 2023
@jujubot jujubot merged commit f054776 into juju:3.1 Oct 23, 2023
20 of 21 checks passed
@jack-w-shaw jack-w-shaw mentioned this pull request Oct 24, 2023
jujubot added a commit that referenced this pull request Oct 24, 2023
@jack-w-shaw jack-w-shaw mentioned this pull request Oct 24, 2023
jujubot added a commit that referenced this pull request Oct 25, 2023
#16489

Merges:
- #16480
- #16287
- #16477
- #16434
- #16487
- #16488

One conflict in `cmd/juju/application/refresh_test.go`
@jack-w-shaw jack-w-shaw mentioned this pull request Oct 25, 2023
jujubot added a commit that referenced this pull request Oct 25, 2023
#16498

Forward merges:
- #16459
- #16467
- #16473
- #16474
- #16475
- #16476
- #16393
- #16480
- #16481
- #16287
- #16477
- #16486
- #16434
- #16487
- #16488
- #16491
- #16492
- #16494
- #16489
- #16497

Conflicts:
- api/client/machinemanager/machinemanager.go
- api/client/machinemanager/machinemanagernew_test.go
- apiserver/facades/client/modelconfig/modelconfig.go
- apiserver/facades/client/modelconfig/modelconfig_test.go
- apiserver/stateauthenticator/context.go
- cmd/juju/application/refresh_test.go
- scripts/win-installer/setup.iss
- snap/snapcraft.yaml
- version/version.go

Mostly trivially solved. `cmd/juju/application/refrest_test.go` was the only one that required any original code. Verify by ensuring unit tests pass
@anvial anvial deleted the JUJU-4619-missing-oracle-cloud-regions-and-list-not-being-updated branch November 9, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants