Last active
March 14, 2019 18:46
-
-
Save akrzos/afbadb6af23d5d84dd3b83e5dfa2c26a to your computer and use it in GitHub Desktop.
SDN Not cleaning IPs Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before creating Projects: | |
[root@ip-10-0-133-114 openshift-sdn]# ls -la | |
total 12 | |
drwxr-xr-x. 2 root root 70 Mar 14 17:57 . | |
drwxr-xr-x. 3 root root 27 Mar 8 00:57 .. | |
-rw-r--r--. 1 root root 64 Mar 13 19:32 10.128.3.10 | |
-rw-r--r--. 1 root root 64 Mar 13 19:32 10.128.3.12 | |
-rw-r--r--. 1 root root 11 Mar 14 17:48 last_reserved_ip.0 | |
[root@ip-10-0-133-114 openshift-sdn]# ls -l | grep "10\." -c | |
2 | |
[root@ip-10-0-159-218 openshift-sdn]# ls -la | |
total 28 | |
drwxr-xr-x. 2 root root 152 Mar 13 20:55 . | |
drwxr-xr-x. 3 root root 27 Mar 8 00:57 .. | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.189 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.190 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.191 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.192 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.193 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.194 | |
-rw-r--r--. 1 root root 12 Mar 13 20:08 last_reserved_ip.0 | |
[root@ip-10-0-159-218 openshift-sdn]# ls -l | grep "10\." -c | |
6 | |
[root@ip-10-0-161-155 openshift-sdn]# ls -la | |
total 12 | |
drwxr-xr-x. 2 root root 70 Mar 14 17:58 . | |
drwxr-xr-x. 3 root root 27 Mar 8 00:57 .. | |
-rw-r--r--. 1 root root 64 Mar 13 20:03 10.129.3.10 | |
-rw-r--r--. 1 root root 64 Mar 13 20:03 10.129.3.11 | |
-rw-r--r--. 1 root root 11 Mar 14 17:48 last_reserved_ip.0 | |
[root@ip-10-0-161-155 openshift-sdn]# ls -l | grep "10\." -c | |
2 | |
Create Projects (Python Cluster Loader) | |
python cluster-loader.py -f akrzos-multus.yaml | tee akrzos.log;sleep 2; oc get po -n z0; oc delete project z0 | |
.. (CL output) | |
<Sleep 2> | |
NAME READY STATUS RESTARTS AGE | |
deploymentconfig0-1-deploy 1/1 Running 0 10s | |
deploymentconfig0-1-tmlnc 0/1 ContainerCreating 0 2s | |
deploymentconfig2v0-1-5b59p 0/1 ContainerCreating 0 2s | |
deploymentconfig2v0-1-6phtr 0/1 ContainerCreating 0 2s | |
deploymentconfig2v0-1-deploy 1/1 Running 0 9s | |
project.project.openshift.io "z0" deleted | |
After Project deletes: | |
[root@ip-10-0-133-114 openshift-sdn]# ls -la | |
total 12 | |
drwxr-xr-x. 2 root root 70 Mar 14 18:02 . | |
drwxr-xr-x. 3 root root 27 Mar 8 00:57 .. | |
-rw-r--r--. 1 root root 64 Mar 13 19:32 10.128.3.10 | |
-rw-r--r--. 1 root root 64 Mar 13 19:32 10.128.3.12 | |
-rw-r--r--. 1 root root 11 Mar 14 18:02 last_reserved_ip.0 | |
[root@ip-10-0-133-114 openshift-sdn]# ls -l | grep "10\." -c | |
2 | |
[root@ip-10-0-159-218 openshift-sdn]# ls -la | |
total 28 | |
drwxr-xr-x. 2 root root 152 Mar 13 20:55 . | |
drwxr-xr-x. 3 root root 27 Mar 8 00:57 .. | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.189 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.190 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.191 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.192 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.193 | |
-rw-r--r--. 1 root root 64 Mar 13 19:55 10.131.1.194 | |
-rw-r--r--. 1 root root 12 Mar 13 20:08 last_reserved_ip.0 | |
[root@ip-10-0-159-218 openshift-sdn]# ls -l | grep "10\." -c | |
6 | |
[root@ip-10-0-161-155 openshift-sdn]# ls -la | |
total 16 | |
drwxr-xr-x. 2 root root 89 Mar 14 18:02 . | |
drwxr-xr-x. 3 root root 27 Mar 8 00:57 .. | |
-rw-r--r--. 1 root root 64 Mar 13 20:03 10.129.3.10 | |
-rw-r--r--. 1 root root 64 Mar 13 20:03 10.129.3.11 | |
-rw-r--r--. 1 root root 64 Mar 14 18:02 10.129.3.55 | |
-rw-r--r--. 1 root root 11 Mar 14 18:02 last_reserved_ip.0 | |
[root@ip-10-0-161-155 openshift-sdn]# ls -l | grep "10\." -c | |
3 | |
^^ Note left over unused ip (10.129.3.55) | |
[root@ip-10-0-12-71 openshift_scalability]# oc get po --all-namespaces -o wide | egrep "ip-10-0-161-155|ip-10-0-159-218|ip-10-0-133-114" | egrep "10.131|10.129|10.128" | |
openshift-dns dns-default-bztl9 2/2 Running 2 6d17h 10.131.1.194 ip-10-0-159-218.us-west-2.compute.internal <none> | |
openshift-dns dns-default-kk8bq 2/2 Running 6 6d17h 10.129.3.10 ip-10-0-161-155.us-west-2.compute.internal <none> | |
openshift-dns dns-default-lzrft 2/2 Running 6 6d17h 10.128.3.10 ip-10-0-133-114.us-west-2.compute.internal <none> | |
openshift-image-registry node-ca-4hbtj 1/1 Running 3 6d17h 10.128.3.12 ip-10-0-133-114.us-west-2.compute.internal <none> | |
openshift-image-registry node-ca-ssg65 1/1 Running 1 6d17h 10.131.1.189 ip-10-0-159-218.us-west-2.compute.internal <none> | |
openshift-image-registry node-ca-xf2cb 1/1 Running 3 6d17h 10.129.3.11 ip-10-0-161-155.us-west-2.compute.internal <none> | |
openshift-marketplace certified-operators-56c4c5867b-q9hfk 1/1 Running 1 6d17h 10.131.1.191 ip-10-0-159-218.us-west-2.compute.internal <none> | |
openshift-marketplace community-operators-79968d64dd-c8sv4 1/1 Running 1 6d17h 10.131.1.190 ip-10-0-159-218.us-west-2.compute.internal <none> | |
openshift-marketplace redhat-operators-78f5d67796-h87jg 1/1 Running 1 6d17h 10.131.1.192 ip-10-0-159-218.us-west-2.compute.internal <none> | |
openshift-monitoring telemeter-client-6dd486d7-jkn76 3/3 Running 3 6d17h 10.131.1.193 ip-10-0-159-218.us-west-2.compute.internal <none> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment