-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18474 from nvinuesa/juju-7256
juju#18474 In order to start cleaning the legacy state out of Charm() calls, we need to first remove the one on the bootstrap worker so that Juju is able to deploy the controller charm without retrieving the charm from the legacy state. This is possible because both for local and charmhub charms we have everything we need (namely URL and Meta), and therefore the only big change in this patch is to add the CharmURL to the attributes on AddApplication() and to move the URL() method out from CharmRef to CharmRefFull, this way we can pass everything during bootstrap. <!-- The PR title should match: <type>(optional <scope>): <description>. Please also ensure all commits in this PR comply with our conventional commits specification: https://github.com/juju/juju/blob/main/doc/conventional-commits.md --> <!-- Why this change is needed and what it does. --> ## QA steps Since the `AddApplication()` method has changed, with a new attribute, we must test bootstrapping and deploying (both local / ch charms): ``` $ juju bootstrap lxd c $ juju download ubuntu $ juju deploy ./ubuntu_r25.charm local $ juju deploy ubuntu ch ``` Make sure there are no errors on the logs. Also bootstrap with a local controller charm: ``` $ juju download juju-controller Base "[email protected]" is not supported for charm "juju-controller", trying base "[email protected]" Fetching charm "juju-controller" revision 91 using "stable" channel and base "amd64/ubuntu/22.04" Install the "juju-controller" charm with: juju deploy ./juju-controller_r91.charm $ juju bootstrap localhost c --build-agent --controller-charm-path ./juju-controller_r91.charm ``` Check if the controller is OK, simply with `juju status -m controller`. ## Links **Jira card:** JUJU-7256
- Loading branch information
Showing
20 changed files
with
181 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
apiserver/facades/controller/charmdownloader/mocks/mocks.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.