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

Add bootstrap support for setting up storage pools #12109

Merged
merged 2 commits into from
Oct 9, 2020

Conversation

wallyworld
Copy link
Member

@wallyworld wallyworld commented Oct 8, 2020

A previous PR #12096 added support for creating Azure encrypted disks from a storage pool and root-disk-source constraint.
However, there was no way to do this for the controller as the storage pool did not exist yet.
This PR allows the creation of a named storage pool at bootstrap, and wires up the controller instance creation to configure the root disk volume params from that storage pool definition. Allowance is made for multiple storage pools, even though right now the CLI can just support the one.
The same arg handling as is used for --config is used here. Either a YAML file or multiple cmd args can be used.

QA steps

juju bootstrap azure/australiasoutheast test \
  --no-default-model \
  --storage-pool name=foo \
  --storage-pool type=azure \
  --storage-pool encrypted=true \
  --storage-pool vault-name-prefix=secret \
  --bootstrap-constraints="root-disk-source=foo"

Check that the Azure controller VM uses disk encryption.
Check that the controller model has the storage pool created.

Bug reference

https://bugs.launchpad.net/juju/+bug/1892485

Copy link
Member

@manadart manadart left a comment

Choose a reason for hiding this comment

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

Code is good, pending minor changes. Just trying to QA.

state/initialize.go Outdated Show resolved Hide resolved
cmd/juju/commands/bootstrap.go Outdated Show resolved Hide resolved
Copy link
Member

@manadart manadart left a comment

Choose a reason for hiding this comment

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

QA worked fine.

@wallyworld
Copy link
Member Author

$$merge$$

@wallyworld wallyworld force-pushed the bootstrap-storage-pools branch from eba5aa7 to ec6e7bb Compare October 9, 2020 13:03
@wallyworld
Copy link
Member Author

$$merge$$

@wallyworld wallyworld force-pushed the bootstrap-storage-pools branch from ec6e7bb to b3df67b Compare October 9, 2020 13:26
@wallyworld
Copy link
Member Author

$$merge$$

@wallyworld wallyworld force-pushed the bootstrap-storage-pools branch from b3df67b to 637fb0a Compare October 9, 2020 14:39
@wallyworld
Copy link
Member Author

$$merge$$

@wallyworld wallyworld force-pushed the bootstrap-storage-pools branch from 637fb0a to e655b23 Compare October 9, 2020 16:40
@wallyworld
Copy link
Member Author

$$merge$$

2 similar comments
@wallyworld
Copy link
Member Author

$$merge$$

@wallyworld
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit fe09923 into juju:develop Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants