Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSE 2.0 : Couldn't initialize cluster #352

Open
Vijendrasi opened this issue Jun 4, 2019 · 2 comments
Open

CSE 2.0 : Couldn't initialize cluster #352

Vijendrasi opened this issue Jun 4, 2019 · 2 comments

Comments

@Vijendrasi
Copy link

CSE 2.0
CSE server OS -> Photon OS : 3.0
VCD version : 9.5

Do we need internet connection for initialization of cluster ?

root@CSEVM200 [ /home/vmware ]# vcd cse template list
catalog catalog_item description is_default name

CSE2.0 photon-custom-hw11-2.0-304b817-k8s PhotonOS v2 True photon-v2
Docker 17.06.0-9
Kubernetes 1.12.7
weave 2.3.0
CSE2.0 ubuntu-16.04-server-cloudimg-amd64-k8s Ubuntu 16.04 False ubuntu-16.04
Docker 18.06.3~ce
Kubernetes 1.13.5
weave 2.3.0


Photon Template :

vcd cse cluster create CSE-PH-CLU01 --network ORG-NET-EXT01 --nodes 1
create_cluster: Creating cluster CSE-PH-CLU01(97258e4a-f7dc-4108-a9b7-9ec72e79f4d5)
create_cluster: Creating cluster vApp CSE-PH-CLU01(97258e4a-f7dc-4108-a9b7-9ec72e79f4d5)
create_cluster: Creating master node for CSE-PH-CLU01(97258e4a-f7dc-4108-a9b7-9ec72e79f4d5)
create_cluster: Initializing cluster CSE-PH-CLU01(97258e4a-f7dc-4108-a9b7-9ec72e79f4d5)
task: de84f689-6357-4e7f-adf9-58b67d0e769d, result: error, message: Couldn't initialize cluster:
[preflight] Some fatal errors occurred:
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-apiserver:v1.12.7: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-controller-manager:v1.12.7: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-scheduler:v1.12.7: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-proxy:v1.12.7: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/pause:3.1: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/etcd:3.2.24: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/coredns:1.2.2: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with...


Ubuntu template :

vcd cse cluster create CSE-UB-CLU01 --network ORG-NET-EXT01 --nodes 1 -t ubuntu-16.04
create_cluster: Creating cluster CSE-UB-CLU01(d9856103-afef-46ae-916a-33f4cdebe492)
create_cluster: Creating cluster vApp CSE-UB-CLU01(d9856103-afef-46ae-916a-33f4cdebe492)
create_cluster: Creating master node for CSE-UB-CLU01(d9856103-afef-46ae-916a-33f4cdebe492)
create_cluster: Initializing cluster CSE-UB-CLU01(d9856103-afef-46ae-916a-33f4cdebe492)
task: 7f1a46c3-fe3c-4f8a-92fe-9288dd42d99d, result: error, message: Couldn't initialize cluster:
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-apiserver:v1.13.5: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-controller-manager:v1.13.5: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-scheduler:v1.13.5: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-proxy:v1.13.5: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/pause:3.1: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/etcd:3.2.24: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/coredns:1.2.6: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
[preflight] If you know what you are doing, yo...

@sakthisunda
Copy link
Contributor

Yes. Internet connection is required as part of the initialization process and executing customization scripts on the cluster, node creation etc.

@Vijendrasi
Copy link
Author

I have used older version of CSE 1.2.5 that time internet connection was required for during template creation process.
while running vcd cse cluster create CSE-UB-CLU01 --network ORG-NET-EXT01 --nodes 1 command internet connection was never required for ORG-NET-EXT01 network. I am sure it must be remain same in CSE 2.0 as well. It is not possible that all the workload vms will have internet connectivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants