-
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#16764 from manadart/dqlite-storage-vol-fs-info
juju#16764 This completes the model schema for Juju storage. It represents quite a conceptual change from what we have been storing in Mongo to-date. For entities such as volumes, file systems, their attachments and attachment plans we had: - A main collection with documents, such as `Volume` with some fields and within that; - A sub-document for `VolumeParams` indicating the requested provisioning parameters. - Another sub-document for `VolumeInfo` where more attributes were filled in after provisioning. These documents contained duplicated fields, but provided by proxy whether provisioning of the requested entity had been completed. Instead of embedded documents, we use single tables for the entities with the following: - All fields from the sub-documents de-duplicated. - Joins to other tables for situations such as where `VolumeInfo` is included in `VolumeParams`. - Explicit provisioning status (pending/provisioned/error).  ## QA steps Passing tests. ## Links **Jira card:** [JUJU-5135](https://warthogs.atlassian.net/browse/JUJU-5135) [JUJU-5135]: https://warthogs.atlassian.net/browse/JUJU-5135?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
2 changed files
with
153 additions
and
29 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