api icon indicating copy to clipboard operation
api copied to clipboard

CFE-1047: Add the field "CapacityReservationGroupID" to "AzureMachineProviderSpec" in openshift/api

Open anirudhAgniRedhat opened this issue 1 year ago • 13 comments

This PR adds the support of capacity reservation group in AzureMachineProviderSpec. A new field, CapacityReservationGroupID, is added. This ID is used while creating the corresponding Azure VM and the VM is added to the capacity reservation group.

The capacity reservation group should already exist. Once the VM is created and associated to the capacity reservation group it cannot be removed from the group. Similarly, if a VM is created without any association to a capacity reservation group then it cannot be associated to one later on. Thus, CapacityReservationGroupID field is made immutable.

anirudhAgniRedhat avatar Apr 23 '24 11:04 anirudhAgniRedhat

@anirudhAgniRedhat: This pull request references CFE-1046 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.16.0" version, but no target version was set.

In response to this:

This PR adds the support of capacity reservation group in AzureMachineSpec. A new field, CapacityReservationGroupID, is added. This ID is used while creating the corresponding Azure VM and the VM is added to the capacity reservation group.

The capacity reservation group should already exist. Once the VM is created and associated to the capacity reservation group it cannot be removed from the group. Similarly, if a VM is created without any association to a capacity reservation group then it cannot be associated to one later on. Thus, CapacityReservationGroupID field is made immutable.

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 openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Apr 23 '24 11:04 openshift-ci-robot

Hello @anirudhAgniRedhat! Some important instructions when contributing to openshift/api: API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

openshift-ci[bot] avatar Apr 23 '24 11:04 openshift-ci[bot]

@anirudhAgniRedhat: This pull request references CFE-1047 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

This PR adds the support of capacity reservation group in AzureMachineSpec. A new field, CapacityReservationGroupID, is added. This ID is used while creating the corresponding Azure VM and the VM is added to the capacity reservation group.

The capacity reservation group should already exist. Once the VM is created and associated to the capacity reservation group it cannot be removed from the group. Similarly, if a VM is created without any association to a capacity reservation group then it cannot be associated to one later on. Thus, CapacityReservationGroupID field is made immutable.

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 openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Apr 23 '24 11:04 openshift-ci-robot

This PR adds the support of capacity reservation group in AzureMachineSpec.

AzureMachineSpec -> AzureMachineProviderSpec

arkadeepsen avatar Apr 23 '24 11:04 arkadeepsen

/retest-required

anirudhAgniRedhat avatar Apr 23 '24 13:04 anirudhAgniRedhat

@anirudhAgniRedhat: This pull request references CFE-1047 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

This PR adds the support of capacity reservation group in AzureMachineProviderSpec. A new field, CapacityReservationGroupID, is added. This ID is used while creating the corresponding Azure VM and the VM is added to the capacity reservation group.

The capacity reservation group should already exist. Once the VM is created and associated to the capacity reservation group it cannot be removed from the group. Similarly, if a VM is created without any association to a capacity reservation group then it cannot be associated to one later on. Thus, CapacityReservationGroupID field is made immutable.

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 openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Apr 24 '24 07:04 openshift-ci-robot

@anirudhAgniRedhat Do you have an implementation for this API that's ready to merge shortly after?

JoelSpeed avatar Apr 25 '24 12:04 JoelSpeed

@JoelSpeed I will start working on its implementation from now onwards as we merge this PR.

anirudhAgniRedhat avatar Apr 25 '24 12:04 anirudhAgniRedhat

Yeah lets get those added

Also, since we are close to the feature freeze date, I'd like to see the feature tested end to end by QE before we merge the API, else we risk shipping an API in one release with no implementation. Please link a WIP PR here once you have it

JoelSpeed avatar Apr 26 '24 12:04 JoelSpeed

Yeah lets get those added

Also, since we are close to the feature freeze date, I'd like to see the feature tested end to end by QE before we merge the API, else we risk shipping an API in one release with no implementation. Please link a WIP PR here once you have it

Sure @JoelSpeed

arkadeepsen avatar Apr 26 '24 12:04 arkadeepsen

Yeah lets get those added

Also, since we are close to the feature freeze date, I'd like to see the feature tested end to end by QE before we merge the API, else we risk shipping an API in one release with no implementation. Please link a WIP PR here once you have it

@JoelSpeed This is WIP PR for its implementation https://github.com/openshift/machine-api-provider-azure/pull/107

anirudhAgniRedhat avatar Apr 29 '24 10:04 anirudhAgniRedhat

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anirudhAgniRedhat, JoelSpeed

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

The pull request process is described 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

openshift-ci[bot] avatar May 14 '24 15:05 openshift-ci[bot]

@JoelSpeed The PR requireacknowledge-critical-fixes-only label to merge it before 4.16 release If you feel we Should merge it Could you please add the label?

anirudhAgniRedhat avatar May 15 '24 10:05 anirudhAgniRedhat

Considering proximity to the release branch cut off, and the fact that TRT have had to introduce the critical fixes requirement. I'm inclined to say we should slip this feature to 4.17, do you see that causing an issue?

JoelSpeed avatar May 15 '24 10:05 JoelSpeed

Considering proximity to the release branch cut off, and the fact that TRT have had to introduce the critical fixes requirement. I'm inclined to say we should slip this feature to 4.17, do you see that causing an issue?

As this feature is anyway planed for 4.17, we should be good.

anirudhAgniRedhat avatar May 15 '24 11:05 anirudhAgniRedhat

/cherrypick release-4.16

anirudhAgniRedhat avatar Jun 11 '24 10:06 anirudhAgniRedhat

@anirudhAgniRedhat: new pull request created: #1923

In response to this:

/cherrypick release-4.16

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-sigs/prow repository.

/cherrypick release-4.15

anirudhAgniRedhat avatar Jun 11 '24 10:06 anirudhAgniRedhat

/cherrypick release-4.14

anirudhAgniRedhat avatar Jun 11 '24 10:06 anirudhAgniRedhat

@anirudhAgniRedhat: #1866 failed to apply on top of branch "release-4.15":

Applying: Added new Field for CapacityReservationGroupID
Applying: Updated doc for CapacityReservationGroupID
Applying: Updated Doc
Applying: Updated Doc
Applying: Updated Doc
Applying: Added new Field for CapacityReservationGroupID
Using index info to reconstruct a base tree...
M	openapi/generated_openapi/zz_generated.openapi.go
M	openapi/openapi.json
Falling back to patching base and 3-way merge...
Auto-merging openapi/openapi.json
CONFLICT (content): Merge conflict in openapi/openapi.json
Auto-merging openapi/generated_openapi/zz_generated.openapi.go
CONFLICT (content): Merge conflict in openapi/generated_openapi/zz_generated.openapi.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0006 Added new Field for CapacityReservationGroupID
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release-4.15

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-sigs/prow repository.

@anirudhAgniRedhat: #1866 failed to apply on top of branch "release-4.14":

Applying: Added new Field for CapacityReservationGroupID
Applying: Updated doc for CapacityReservationGroupID
Applying: Updated Doc
Applying: Updated Doc
Applying: Updated Doc
Applying: Added new Field for CapacityReservationGroupID
Using index info to reconstruct a base tree...
M	openapi/generated_openapi/zz_generated.openapi.go
M	openapi/openapi.json
Falling back to patching base and 3-way merge...
Auto-merging openapi/openapi.json
CONFLICT (content): Merge conflict in openapi/openapi.json
Auto-merging openapi/generated_openapi/zz_generated.openapi.go
CONFLICT (content): Merge conflict in openapi/generated_openapi/zz_generated.openapi.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0006 Added new Field for CapacityReservationGroupID
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release-4.14

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-sigs/prow repository.