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

Proposal: Data Disk restore from Image #824

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

elankath
Copy link

@elankath elankath commented Apr 5, 2024

How to categorize this PR?

/area documentation
/kind enhancement
/platform azure

What this PR does / why we need it:

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

Special notes for your reviewer:

Release note:

NONE

@elankath elankath requested review from a team as code owners April 5, 2024 08:26
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 5, 2024
@gardener-robot gardener-robot added area/documentation Documentation related kind/enhancement Enhancement, improvement, extension platform/azure Microsoft Azure platform/infrastructure needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Apr 5, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 5, 2024
Comment on lines 76 to 77
It would be painful and errorprone to specify this in the shoot `WorkerConfig` section, so it is best that the MCM Azure provider take care
of forming the fully qualified azure disk `snapshotID` and forming the `MachineClass` for azure which is then operated on by MCM Azure Provider.
Copy link
Contributor

Choose a reason for hiding this comment

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

Two points:
a) I am not sure why you consider error prone the copy-pasting or an azure UID compared to MCM constructing. That being said it is a trick used often by the azure controllers so we can do it too, but I don't necessarily find it easier.
b) Main issue is that you need at least to also add the resource group to the spec. Otherwise you are constrained to using disks only in the same resource group and that would make it useless for the vsmp scenario, as I imagine they want to restore from some knowd resource in a RG different from the shoots.

Copy link
Author

Choose a reason for hiding this comment

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

a) I removed this statement.
b) added resourceGroup as an optional field, though I am unsure whether this is needed for vsmp case. They just appear to use the default resource group. It appears -g default is specified everywhere in their script.

Currently, we have no support either in the shoot spec or in the [MCM Azure](https://github.com/gardener/machine-controller-manager-provider-azure) for restoring Azure Data Disks from snapshots

## Motivation
The primary motivation is to support [Integration of vSMP MemeoryOne in Azure #](https://github.com/gardener/gardener-extension-provider-azure/issues/788).
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that the proposal can stand on its own without any reference to vsmp.

@gardener-robot gardener-robot added the needs/changes Needs (more) changes label Apr 5, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 30, 2024
@elankath elankath changed the title Proposal: Data disk restore from snapshot Proposal: Data Disk restore from Image Apr 30, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 30, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 30, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 30, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 30, 2024
dataVolumes: # <-- NEW SUB_SECTION
- name: vsmp1
imageReference: imgRef # ID or URN (publisher:offer:sku:version) of the image from which to create a disk
resourceGroup: # (optional) Name of resource group. Will take default if omitted
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the resource group supposed to do ? I think you don't need to reference a resource group to consume an image right ?

kind: WorkerConfig
dataVolumes: # <-- NEW SUB_SECTION
- name: vsmp1
imageReference: imgRef # ID or URN (publisher:offer:sku:version) of the image from which to create a disk
Copy link
Contributor

Choose a reason for hiding this comment

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

So is the plan for MCM to parse the ID provided and resolve it to an image? MCM-azure already has a struct to ref these in https://github.com/gardener/machine-controller-manager-provider-azure/blob/e86af1fe835f427b1d16b4316b3f02752bd7cd73/pkg/azure/api/providerspec.go#L145 . Why not use that instead ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation related kind/enhancement Enhancement, improvement, extension needs/changes Needs (more) changes needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review platform/azure Microsoft Azure platform/infrastructure size/s Size of pull request is small (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate vSMP MemeoryOne in Azure
6 participants