Skip to content

envtest keep Etcd server running if kube-apiserver fails to start in te.ControlPlane.Start() #1749

Closed
@dmvolod

Description

@dmvolod

Before test grep

15:25 $ ps -ef | grep etcd
dvolodin   75666   45837  0 15:25 pts/7    00:00:00 grep --color=auto etcd

First incorrect kube-apiserver start with envtest (no default route)

15:25 $ ps -ef | grep etcd
dvolodin   74481    2115  0 15:25 pts/7    00:00:00 /home/dvolodin/.local/share/kubebuilder-envtest/k8s/1.22.1-linux-amd64/etcd --advertise-client-urls=http://127.0.0.1:40557 --data-dir=/tmp/k8s_test_framework_1043519578 --listen-client-urls=http://127.0.0.1:40557 --listen-peer-urls=http://127.0.0.1:44843 --unsafe-no-fsync=true
dvolodin   74514    2115  0 15:25 pts/7    00:00:00 /home/dvolodin/.local/share/kubebuilder-envtest/k8s/1.22.1-linux-amd64/etcd --advertise-client-urls=http://127.0.0.1:37427 --data-dir=/tmp/k8s_test_framework_2965462778 --listen-client-urls=http://127.0.0.1:37427 --listen-peer-urls=http://127.0.0.1:36667 --unsafe-no-fsync=true
dvolodin   74956   45837  0 15:25 pts/7    00:00:00 grep --color=auto etcd

Second incorrect kube-apiserver start with envtest (no default route)

15:25 $ ps -ef | grep etcd
dvolodin   74481    2115  0 15:25 pts/7    00:00:00 /home/dvolodin/.local/share/kubebuilder-envtest/k8s/1.22.1-linux-amd64/etcd --advertise-client-urls=http://127.0.0.1:40557 --data-dir=/tmp/k8s_test_framework_1043519578 --listen-client-urls=http://127.0.0.1:40557 --listen-peer-urls=http://127.0.0.1:44843 --unsafe-no-fsync=true
dvolodin   74514    2115  0 15:25 pts/7    00:00:00 /home/dvolodin/.local/share/kubebuilder-envtest/k8s/1.22.1-linux-amd64/etcd --advertise-client-urls=http://127.0.0.1:37427 --data-dir=/tmp/k8s_test_framework_2965462778 --listen-client-urls=http://127.0.0.1:37427 --listen-peer-urls=http://127.0.0.1:36667 --unsafe-no-fsync=true
dvolodin   75219    2115  1 15:25 pts/7    00:00:00 /home/dvolodin/.local/share/kubebuilder-envtest/k8s/1.22.1-linux-amd64/etcd --advertise-client-urls=http://127.0.0.1:36991 --data-dir=/tmp/k8s_test_framework_707107206 --listen-client-urls=http://127.0.0.1:36991 --listen-peer-urls=http://127.0.0.1:43593 --unsafe-no-fsync=true
dvolodin   75235    2115  1 15:25 pts/7    00:00:00 /home/dvolodin/.local/share/kubebuilder-envtest/k8s/1.22.1-linux-amd64/etcd --advertise-client-urls=http://127.0.0.1:42861 --data-dir=/tmp/k8s_test_framework_3270054588 --listen-client-urls=http://127.0.0.1:42861 --listen-peer-urls=http://127.0.0.1:35971 --unsafe-no-fsync=true
dvolodin   75666   45837  0 15:25 pts/7    00:00:00 grep --color=auto etcd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions