Skip to content

Conversation

@MaysaMacedo
Copy link

If a failure happened while handling the Machine creation,
the Machine can end up without an openstack-resourceId
annotation. This makes the deletion of the Machine to fail as
no Server ID was specified in the annotation. This commit fixes
the issue by making the deletion rely on the Server ID retrieved
prior to delete instead of using the annotation.

Co-authored-by: Matthew Booth [email protected]

Release note:

NONE

If a failure happened while handling the Machine creation,
the Machine can end up without an openstack-resourceId
annotation. This makes the deletion of the Machine to fail as
no Server ID was specified in the annotation. This commit fixes
the issue by making the deletion rely on the Server ID retrieved
prior to delete instead of using the annotation.

Co-authored-by: Matthew Booth [email protected]
@openshift-ci
Copy link

openshift-ci bot commented Jul 22, 2022

@MaysaMacedo: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

Remove dependence on annotation to allow Server deletion

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.

@openshift-ci openshift-ci bot requested review from mandre and mdbooth July 22, 2022 10:57
@MaysaMacedo MaysaMacedo changed the title Remove dependence on annotation to allow Server deletion Bug 1921656: Remove dependence on annotation to allow Server deletion Jul 22, 2022
@openshift-ci openshift-ci bot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jul 22, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jul 22, 2022

@MaysaMacedo: This pull request references Bugzilla bug 1921656, which is invalid:

  • expected Bugzilla bug 1921656 to depend on a bug targeting a release in 4.11.0 and in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE), but no dependents were found

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

In response to this:

Bug 1921656: Remove dependence on annotation to allow Server deletion

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.

@MaysaMacedo
Copy link
Author

/bugzilla refresh

@openshift-ci
Copy link

openshift-ci bot commented Jul 22, 2022

@MaysaMacedo: This pull request references Bugzilla bug 1921656, which is invalid:

  • expected dependent Bugzilla bug 2109866 to target a release in 4.11.0, but it targets "4.11.z" instead

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

In response to this:

/bugzilla 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 kubernetes/test-infra repository.

@MaysaMacedo
Copy link
Author

/bugzilla refresh

@openshift-ci openshift-ci bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jul 22, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jul 22, 2022

@MaysaMacedo: This pull request references Bugzilla bug 1921656, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.z) matches configured target release for branch (4.10.z)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 2109866 is in the state CLOSED (CURRENTRELEASE), which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 2109866 targets the "4.11.0" release, which is one of the valid target releases: 4.11.0
  • bug has dependents

Requesting review from QA contact:
/cc @eurijon

In response to this:

/bugzilla 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 kubernetes/test-infra repository.

@openshift-ci
Copy link

openshift-ci bot commented Jul 22, 2022

@openshift-ci[bot]: GitHub didn't allow me to request PR reviews from the following users: eurijon.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

@MaysaMacedo: This pull request references Bugzilla bug 1921656, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.z) matches configured target release for branch (4.10.z)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 2109866 is in the state CLOSED (CURRENTRELEASE), which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 2109866 targets the "4.11.0" release, which is one of the valid target releases: 4.11.0
  • bug has dependents

Requesting review from QA contact:
/cc @eurijon

In response to this:

/bugzilla 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 kubernetes/test-infra repository.

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.

@MaysaMacedo
Copy link
Author

/test e2e-openstack
/cc @mdbooth

Copy link
Member

@mandre mandre left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/label backport-risk-assessed
/retest
/hold for CI

@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 Jul 25, 2022
@openshift-ci openshift-ci bot added backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. lgtm Indicates that a PR is ready to be merged. labels Jul 25, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jul 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mandre

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 Jul 25, 2022
@mandre
Copy link
Member

mandre commented Jul 25, 2022

Testrun for e2e-openstack was a bloodbath.
/retest

@pierreprinetti
Copy link
Member

e2e-openstack-proxy succeeded and e2e-openstack seems to have failed for unrelated reasons.
By canceling the /hold, I let automation take over retests, as e2e-openstack is a test gate. Please put the /hold back if retests are not successful after a reasonable amount of retests.

/hold cancel

@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 Jul 25, 2022
@MaysaMacedo
Copy link
Author

/retest
I tested this fix by scaling up and quickly down the machinesets and worked fine.

@MaysaMacedo
Copy link
Author

/retest

@eurijon
Copy link

eurijon commented Aug 1, 2022

/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 Aug 1, 2022
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 2 against base HEAD 84171b7 and 8 for PR HEAD 362de71 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 1 against base HEAD 84171b7 and 7 for PR HEAD 362de71 in total

@openshift-ci
Copy link

openshift-ci bot commented Aug 1, 2022

@MaysaMacedo: 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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit f6b5171 into openshift:release-4.10 Aug 1, 2022
@openshift-ci
Copy link

openshift-ci bot commented Aug 1, 2022

@MaysaMacedo: All pull requests linked via external trackers have merged:

Bugzilla bug 1921656 has been moved to the MODIFIED state.

In response to this:

Bug 1921656: Remove dependence on annotation to allow Server deletion

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.

pierreprinetti pushed a commit to shiftstack/cluster-api-provider-openstack that referenced this pull request Apr 22, 2024
Due to no external network given, a error will be reported but
that's acceptable since we might not want to create router at all
in some scenario.
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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants