cluster-api-provider-vsphere icon indicating copy to clipboard operation
cluster-api-provider-vsphere copied to clipboard

Add storagePolicyName and datastore at disk level

Open sathieu opened this issue 2 years ago • 12 comments

What this PR does / why we need it:

For control plane nodes, we need etcd to be using a faster storage policy.

Mid-term, other fields could be added to the disks field.

Which issue(s) this PR fixes: Fixes #1538

Special notes for your reviewer:

  • This changes the Spec, in a backward compatible way. But deprecated fields should probably be removed in beta2.
  • Maybe this should be datastores (plural)? This adds some logic, but prepare for #1227.

Release note:

Allow to set storagePolicyName and datastore at disk level.
The format of the spec changed and diskGiB and additionalDisksGiB are now deprecated

sathieu avatar May 24 '22 20:05 sathieu

Welcome @sathieu!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-vsphere 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-vsphere has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar May 24 '22 20:05 k8s-ci-robot

Hi @sathieu. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar May 24 '22 20:05 k8s-ci-robot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: To complete the pull request process, please assign frapposelli after the PR has been reviewed. You can assign the PR to them by writing /assign @frapposelli in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar May 24 '22 20:05 k8s-ci-robot

@vrabbi @yastij Please review and add ok-to-test :pray:. I've done tests on a development vSphere.

sathieu avatar May 25 '22 15:05 sathieu

/ok-to-test

aartij17 avatar May 25 '22 21:05 aartij17

@vrabbi @yastij Please review 🙏 .

sathieu avatar May 31 '22 14:05 sathieu

@vrabbi @yastij @aartij17 Anything I can do to move this forward?

sathieu avatar Jun 24 '22 08:06 sathieu

@sathieu: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Jul 12 '22 15:07 k8s-ci-robot

I don't know if anybody is reviewing PRs here 🤔 .

Resolving conflicts takes time, so I put this PR on hold for now.

sathieu avatar Jul 21 '22 08:07 sathieu

@sathieu The use case that you have mentioned around using a faster storage policy for ETCD, can it not be met by overriding the storage policy for the VSphereMachineTemplate for the Control Plane nodes?

srm09 avatar Sep 09 '22 18:09 srm09

@srm09 Using storage policy for control plane nodes will cover the etcd case (partly, because we don't necessarily need fast storage for images). But we also need having a different FTT on some disk to use rook-ceph.

Anyway, we are currently reconsidering cluster-api because of it's need of access to the vsphere API from the workload clusters (see https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/issues/924#issuecomment-1123803887).

sathieu avatar Sep 12 '22 07:09 sathieu

@sathieu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-vsphere-test deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-test
pull-cluster-api-provider-vsphere-integration-test deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-integration-test
pull-cluster-api-provider-vsphere-verify-lint deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-verify-lint
pull-cluster-api-provider-vsphere-e2e deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot avatar Oct 19 '22 19:10 k8s-ci-robot

@sathieu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-vsphere-test deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-test
pull-cluster-api-provider-vsphere-integration-test deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-integration-test
pull-cluster-api-provider-vsphere-verify-lint deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-verify-lint
pull-cluster-api-provider-vsphere-e2e deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-e2e
pull-cluster-api-provider-vsphere-verify-gen deddc7e8aeee4b28138dd6a7878e96b25d311905 link true /test pull-cluster-api-provider-vsphere-verify-gen

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot avatar Nov 07 '22 18:11 k8s-ci-robot

/close Closing due to inactivity

srm09 avatar Nov 17 '22 17:11 srm09

@srm09: Closed this PR.

In response to this:

/close Closing due to inactivity

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Nov 17 '22 17:11 k8s-ci-robot