-
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.
This is an overhaul of the storage provider API, necessary to address several issues. We introduce a new storage.ProviderRegistry interface, which can be consulted for available/supported storage providers. The environs.Environ interace embeds storage.ProviderRegistry, giving a way to acquire An Environ is now the only way to acquire an environ-scoped storage provider, thus there is no global registry for storage providers except for the common storage providers (tmpfs, loop, etc.) Similarly, it no longer makes sense to globally register storage pools. Instead, we extend the storage.Provider interface with a method to acquire the default pool definitions. We were not registering default storage pools for hosted models. Now when creating a model in state, we consult all storage providers supported by the model and store the default pools then. A minor bug in storage filtering has been fixed, where we were passing in the model *name* rather than *type* when determining whether a storage provider was supported. This is no longer necessary, since an Environ now only reports storage providers that it supports. Fixes https://bugs.launchpad.net/juju-core/+bug/1608818 Fixes https://bugs.launchpad.net/juju-core/+bug/1608821
- Loading branch information
Showing
137 changed files
with
1,466 additions
and
1,435 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
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
Oops, something went wrong.