Commit 7fdff84
authored
E2E: Add waiting for MP Pods to be cleaned up in AfterSuite (#758)
*Issue #, if available:* N/A
*Description of changes:* Only MP Pod sharing tests in the suite
properly wait for MP Pod cleanup, which can take up to 4min in case we
need to rely on stale attachment cleaner in controller (due to eventual
consistency issue in K8s controller runtime framework). When
`uninstall_driver` runs, helm deletes the release and the `mount-s3`
namespace starts terminating. If Mountpoint pods are slow to terminate
(no controller/stale-attachment-cleaner to clean them up since it was
just deleted), the namespace gets stuck in `Terminating`. On the next CI
run, the `helm upgrade --install` fails because Kubernetes refuses to
create resources in the terminating `mount-s3` namespace.
Example:
https://github.com/awslabs/mountpoint-s3-csi-driver/actions/runs/23316182156/job/68086361510?pr=752
```
Error: failed to create resource: roles.rbac.authorization.k8s.io "s3-csi-driver-controller-role" is forbidden: unable to create new content in namespace mount-s3 because it is being terminated
```
The fix: Add waiting for MP Pods to be cleaned up properly in AfterSuite
by stale attachment cleaner in controller.
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.1 parent 08d6598 commit 7fdff84
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
84 | 114 | | |
85 | 115 | | |
86 | 116 | | |
| |||
0 commit comments