Bug 1987279

Summary: installer fails to destroy a cluster with a tagged access-point
Product: OpenShift Container Platform Reporter: Jan Safranek <jsafrane>
Component: StorageAssignee: Jan Safranek <jsafrane>
Storage sub component: Storage QA Contact: Chao Yang <chaoyang>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:43:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Safranek 2021-07-29 12:06:20 UTC
When destroying an AWS cluster with EFS CSI driver with some dynamically provisioned PVs, the installer stops with this error and does not destroy anything:

WARNING unrecognized elastic file system resource type access-point  arn=arn:aws:elasticfilesystem:us-east-1:269733383066:access-point/fsap-0557455fcf9f618c5

The reason is that dynamic provisioning in the EFS CSI driver creates AccessPoints that are tagged as owned by the cluster, but the installer does not know how to destroy them when it lists all objects tagged with the cluster ID.

Comment 1 Jan Safranek 2021-07-29 12:34:53 UTC
Steps to reproduce:

1. Use AWS EFS CSI driver and provision few PVs from a single EFS volume.
2. Do not tag the EFS volume with the owner tag!
3. openshift-install destroy cluster

Expected result:
Destruction succeeds. AccessPoints for the provisioned PVs are deleted.

Actual result:
WARNING unrecognized elastic file system resource type access-point  arn=arn:aws:elasticfilesystem:us-east-1:269733383066:access-point/fsap-0557455fcf9f618c5

Comment 3 Chao Yang 2021-09-03 07:37:33 UTC
Passed with aws-efs-csi-driver-operator.4.9.0-202108311328

Comment 6 errata-xmlrpc 2021-10-18 17:43:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759