Bug 1835778
| Summary: | [aws-ebs-csi-driver-operator] The pods created by ds aws-ebs-csi-driver-node always in Pending status | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qin Ping <piqin> |
| Component: | Storage | Assignee: | Jan Safranek <jsafrane> |
| Status: | CLOSED ERRATA | QA Contact: | Qin Ping <piqin> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.5 | CC: | aos-bugs, chaoyang, jsafrane |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | 4.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-13 17:38:49 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
Qin Ping
2020-05-14 13:28:10 UTC
On slack we diagnosed that upstream AWS EBS CSI driver was installed manually before our operator tried to install "our" AWS EBS CSI driver. $ oc -n kube-system get pod NAME READY STATUS RESTARTS AGE ebs-csi-controller-0 5/5 Running 0 7h24m ebs-csi-node-99gnv 3/3 Running 0 7h24m ebs-csi-node-k2gtt 3/3 Running 0 7h24m ebs-csi-node-krr8p 3/3 Running 0 7h24m IMO, there is some room for improvement in the operator - it should detect that there is another driver already installed, report it and refuse to install a duplicate driver. In this case it collided on node port and did not actually run the driver and nothing bad happened, however, running two instances of the same driver at the same time could have unpredictable results (especially the DaemonSet pods could be CrashLooping). Straw man design how to detect presence of another AWS EBS CSI driver: - Some CSINode has the driver. - And CSIDriver either does not exist or exists, but has not "our" label / annotation. - And Namespace openshift-aws-ebs-csi-driver does not exist or is empty? verified with: aws-ebs-csi-driver-operator version 554623c-554623c765661f1b4b1a488441424307c5759df9
Status:
Conditions:
Last Transition Time: 2020-05-27T13:51:43Z
Status: False
Type: ManagementStateDegraded
Last Transition Time: 2020-05-27T13:51:43Z
Message: AWS EBS CSI driver is already installed on the cluster.
Reason: OtherDriverInstalled
Status: False
Type: PrereqsSatisfied
Last Transition Time: 2020-05-27T13:51:43Z
Message: AWS EBS CSI driver is already installed on the cluster.
Reason: OtherDriverInstalled
Status: False
Type: Progressing
Last Transition Time: 2020-05-27T13:51:43Z
Message: CSIDriver "ebs.csi.aws.com" is already installed, please uninstall it first before using this operator
Reason: OperatorSync
Status: True
Type: Degraded
Ready Replicas: 0
Events: <none>
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, 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/RHBA-2020:2409 |