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

OCPBUGS-44880: Fetch service instance id from spec of IBMPowerVSCluster object while setting provider id #94

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

aman4433
Copy link
Contributor

What this PR does / Why we need it:

This PR addresses a scenario where the service instance ID is explicitly passed when using an external cloud-provider template, but it is not set under the status field of the IBMPowerVSCluster object. In such cases, the provider ID for the machine is incorrectly set to an empty string, which can lead to issues.

To resolve this, this PR updates the logic to retrieve the service instance ID from the spec field of the IBMPowerVSCluster object if it is not found under the status field. This ensures that the service instance ID is correctly populated, even when not set in the status.

Release note:

Fetches the service instance ID from the spec field of the IBMPowerVSCluster object if it is not present under the status.

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 22, 2024
@openshift-ci-robot
Copy link

@aman4433: This pull request references Jira Issue OCPBUGS-44880, which is invalid:

  • expected the bug to target the "4.17.z" version, but no target version was set
  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.
  • expected Jira Issue OCPBUGS-44880 to depend on a bug targeting a version in 4.18.0 and in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

What this PR does / Why we need it:

This PR addresses a scenario where the service instance ID is explicitly passed when using an external cloud-provider template, but it is not set under the status field of the IBMPowerVSCluster object. In such cases, the provider ID for the machine is incorrectly set to an empty string, which can lead to issues.

To resolve this, this PR updates the logic to retrieve the service instance ID from the spec field of the IBMPowerVSCluster object if it is not found under the status field. This ensures that the service instance ID is correctly populated, even when not set in the status.

Release note:

Fetches the service instance ID from the spec field of the IBMPowerVSCluster object if it is not present under the status.

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 openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 22, 2024
Copy link
Contributor

openshift-ci bot commented Nov 22, 2024

Hi @aman4433. Thanks for your PR.

I'm waiting for a openshift 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-sigs/prow repository.

@openshift-ci openshift-ci bot requested review from damdo and mkumatag November 22, 2024 07:12
@mkumatag
Copy link
Member

@Karthik-K-N this fix is already in upstream repo right? wondering if rebasing to the latest release will help fixing this one?

@dharaneeshvrd
Copy link
Member

/jira refresh

@openshift-ci-robot
Copy link

@dharaneeshvrd: This pull request references Jira Issue OCPBUGS-44880, which is invalid:

  • expected the bug to target the "4.17.z" version, but no target version was set
  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.
  • expected Jira Issue OCPBUGS-44880 to depend on a bug targeting a version in 4.18.0 and in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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.

@Karthik-K-N
Copy link
Member

@Karthik-K-N this fix is already in upstream repo right? wondering if rebasing to the latest release will help fixing this one?

4.18 we rebased recently and add this fix to 4.17 only. More info.

@Karthik-K-N
Copy link
Member

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 22, 2024
@dharaneeshvrd
Copy link
Member

/jira refresh

@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 22, 2024

@dharaneeshvrd: This pull request references Jira Issue OCPBUGS-44880, which is invalid:

  • dependent bug OCPCLOUD-2747 is not in the required OCPBUGS project

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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.

@damdo
Copy link
Member

damdo commented Nov 22, 2024

We should title the commit in this PR: UPSTREAM: 1816: Use ignition only when Ignition is set in IBMPowerVSCluster
Could you git amend? @aman4433
Thanks!

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 22, 2024
@aman4433
Copy link
Contributor Author

We should title the commit in this PR: UPSTREAM: 1816: Use ignition only when Ignition is set in IBMPowerVSCluster Could you git amend? @aman4433 Thanks!

/hold

Done @damdo
Thanks!

Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

/approve

/unhold

leaving the LGTM to @mkumatag @Karthik-K-N

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 22, 2024
Copy link
Contributor

openshift-ci bot commented Nov 22, 2024

@aman4433: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Copy link
Member

@Karthik-K-N Karthik-K-N left a comment

Choose a reason for hiding this comment

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

/lgtm
Thanks

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 22, 2024
Copy link
Contributor

openshift-ci bot commented Nov 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damdo

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 22, 2024
@damdo
Copy link
Member

damdo commented Nov 22, 2024

/assign @JoelSpeed
For the valid-bug label

@damdo
Copy link
Member

damdo commented Nov 22, 2024

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Nov 22, 2024
@sunzhaohua2
Copy link

/label cherry-pick-approved

@openshift-ci openshift-ci bot added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Nov 25, 2024
@JoelSpeed
Copy link
Contributor

You need to create a bug against the future branches and create a chain back, you can just assign them directly to the QE phase for them to move to verified (assuming the fix is in and verified), we can't make them dependent against an OCPCLOUD card

@dharaneeshvrd
Copy link
Member

Thanks @JoelSpeed for the suggestion, created a JIRA issue here https://issues.redhat.com/browse/OCPBUGS-44944

@dharaneeshvrd
Copy link
Member

@juliemathew Could you please help verify this issue https://issues.redhat.com/browse/OCPBUGS-44944?

@dharaneeshvrd
Copy link
Member

/jira refresh

@openshift-ci-robot
Copy link

@dharaneeshvrd: This pull request references Jira Issue OCPBUGS-44880, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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.

@dharaneeshvrd
Copy link
Member

/jira refresh

@openshift-ci-robot
Copy link

@dharaneeshvrd: This pull request references Jira Issue OCPBUGS-44880, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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.

@dharaneeshvrd
Copy link
Member

/jira refresh

@openshift-ci-robot
Copy link

@dharaneeshvrd: This pull request references Jira Issue OCPBUGS-44880, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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.

@dharaneeshvrd
Copy link
Member

/jira refresh

@openshift-ci-robot
Copy link

@dharaneeshvrd: This pull request references Jira Issue OCPBUGS-44880, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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.

@dharaneeshvrd
Copy link
Member

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 28, 2024
@openshift-ci-robot
Copy link

@dharaneeshvrd: This pull request references Jira Issue OCPBUGS-44880, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.17.z) matches configured target version for branch (4.17.z)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-44944 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-44944 targets the "4.18.0" version, which is one of the valid target versions: 4.18.0
  • bug has dependents

No GitHub users were found matching the public email listed for the QA contact in Jira ([email protected]), skipping review request.

In response to this:

/jira refresh

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-merge-bot openshift-merge-bot bot merged commit 213d34d into openshift:release-4.17 Nov 28, 2024
5 checks passed
@openshift-ci-robot
Copy link

@aman4433: Jira Issue OCPBUGS-44880: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-44880 has been moved to the MODIFIED state.

In response to this:

What this PR does / Why we need it:

This PR addresses a scenario where the service instance ID is explicitly passed when using an external cloud-provider template, but it is not set under the status field of the IBMPowerVSCluster object. In such cases, the provider ID for the machine is incorrectly set to an empty string, which can lead to issues.

To resolve this, this PR updates the logic to retrieve the service instance ID from the spec field of the IBMPowerVSCluster object if it is not found under the status field. This ensures that the service instance ID is correctly populated, even when not set in the status.

Release note:

Fetches the service instance ID from the spec field of the IBMPowerVSCluster object if it is not present under the status.

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-bot
Copy link

[ART PR BUILD NOTIFIER]

Distgit: ose-ibmcloud-cluster-api-controllers
This PR has been included in build ose-ibmcloud-cluster-api-controllers-container-v4.17.0-202411281306.p0.g213d34d.assembly.stream.el9.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.