Bug 1848379
| Summary: | Recreating recently deleted NodePort service results in 'port is already allocated' error | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Stefan Schimanski <sttts> |
| Component: | kube-apiserver | Assignee: | Stefan Schimanski <sttts> |
| Status: | CLOSED ERRATA | QA Contact: | Ke Wang <kewang> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 4.6 | CC: | aos-bugs, mfojtik, mrobson, sttts, xxia |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | 4.6.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1753649 | Environment: | |
| Last Closed: | 2020-10-27 16:08:03 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1753649, 1849321, 1849324 | ||
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 (OpenShift Container Platform 4.6 GA Images), 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:4196 |
Verified with OCP 4.6.0-0.nightly-2020-06-30-020342, verification steps see below, $ cat 1848379-nodeport.yaml apiVersion: v1 kind: Service metadata: labels: app: nodeport-admin name: nodeport-test spec: type: NodePort externalTrafficPolicy: Cluster ports: - name: 8080-tcp port: 8080 protocol: TCP nodePort: 30006 selector: deploymentconfig: nodeport-app $ cat 1848379-test.sh #!/usr/bin/env bash date oc delete svc nodeport-test #while [ -n "$(oc create -f nodeport.yml 2>&1 > /dev/null)" ]; do while ! oc create -f 1848379-nodeport.yaml; do date done $ oc apply -f 1848379-nodeport.yaml Run 100 times, $ for i in {1..100}; do echo "test $i ..." >> test.log;./1848379-test.sh >> test.log;done $ grep -i invalid test.log Nothing found. We got the expected results, move the bug verified.