Skip to content

CORS-2893: capi-aws: implement preserveBootstrapIgnition#8313

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:masterfrom
r4f4:capi-aws-preserve-ignition
Apr 26, 2024
Merged

CORS-2893: capi-aws: implement preserveBootstrapIgnition#8313
openshift-merge-bot[bot] merged 1 commit intoopenshift:masterfrom
r4f4:capi-aws-preserve-ignition

Conversation

@r4f4
Copy link
Contributor

@r4f4 r4f4 commented Apr 24, 2024

This feature is needed for customers running installs under systems with policies that prevent S3 objects from being deleted.

The way this was implemented in CAPA, the provider will try to delete the objects but ignore the errors if BestEffortDeleteObjects is set in the AWSCluster bucket spec.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 24, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 24, 2024

@r4f4: This pull request references CORS-2893 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.

Details

In response to this:

This feature is needed for customers running installs under systems with policies that prevent S3 objects from being deleted.

The way this was implemented in CAPA, the provider will try to delete the objects but ignore the errors if BestEffortDeleteObjectsis set in theAWSCluster` bucket spec.

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.

@r4f4
Copy link
Contributor Author

r4f4 commented Apr 24, 2024

In my local testing, I see:

DEBUG I0424 14:33:51.363347     133 s3.go:219] "Deleting S3 object" controller="awsmachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="AWSMachine" AWSMachine="openshift-cluster-api-guests/rafa1-2dzr7-master-2" namespace="openshift-cluster-api-guests" name="rafa1-2dzr7-master-2" reconcileID="c130b49a-c9cd-419b-a5fd-b702e075223d" machine="openshift-cluster-api-guests/rafa1-2dzr7-master-2" cluster="openshift-cluster-api-guests/rafa1-2dzr7" bucket="openshift-bootstrap-data-rafa1-2dzr7" key="control-plane/rafa1-2dzr7-master-2"
[...]
DEBUG I0424 14:33:51.700633     133 s3.go:233] "Ignoring deletion error" controller="awsmachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="AWSMachine" AWSMachine="openshift-cluster-api-guests/rafa1-2dzr7-master-2" namespace="openshift-cluster-api-guests" name="rafa1-2dzr7-master-2" reconcileID="c130b49a-c9cd-419b-a5fd-b702e075223d" machine="openshift-cluster-api-guests/rafa1-2dzr7-master-2" cluster="openshift-cluster-api-guests/rafa1-2dzr7" bucket="openshift-bootstrap-data-rafa1-2dzr7" key="control-plane/rafa1-2dzr7-master-2" error="Access Denied"

@r4f4
Copy link
Contributor Author

r4f4 commented Apr 24, 2024

/uncc @pawanpinjarkar @rna-afk
/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 Apr 24, 2024
@r4f4
Copy link
Contributor Author

r4f4 commented Apr 24, 2024

Will rebase once #8223 merges with the capa bump.

This feature is needed for customers running installs under systems with
policies that prevent S3 objects from being deleted.

The way this was implemented in CAPA, the provider will try to delete
the objects but ignore the errors if `BestEffortDeleteObjects` is set in
the `AWSCluster` bucket spec.
@r4f4 r4f4 force-pushed the capi-aws-preserve-ignition branch from fede4d7 to 6b68a44 Compare April 25, 2024 07:26
@r4f4
Copy link
Contributor Author

r4f4 commented Apr 25, 2024

/hold cancel
/cc @patrickdillon @mtulio

@openshift-ci openshift-ci bot requested review from mtulio and patrickdillon April 25, 2024 07:26
@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 Apr 25, 2024
@mtulio
Copy link
Contributor

mtulio commented Apr 25, 2024

/lgtm

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

openshift-ci bot commented Apr 25, 2024

@r4f4: 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
ci/prow/e2e-aws-ovn-single-node 6b68a44 link false /test e2e-aws-ovn-single-node
ci/prow/okd-e2e-aws-ovn-upgrade fede4d7dba871da67af875ec1416139ccf34ff80 link false /test okd-e2e-aws-ovn-upgrade

Full PR test history. Your PR dashboard.

Details

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.

@r4f4
Copy link
Contributor Author

r4f4 commented Apr 25, 2024

/assign @patrickdillon

@patrickdillon
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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

The pull request process is described here

Details 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 Apr 26, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 5cd8528 into openshift:master Apr 26, 2024
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. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants