Skip to content

Instantly share code, notes, and snippets.

@JimmyCYJ
Created April 3, 2018 19:13
Show Gist options
  • Save JimmyCYJ/7d37206a7be8e0259dd542ba7b99bd15 to your computer and use it in GitHub Desktop.
Save JimmyCYJ/7d37206a7be8e0259dd542ba7b99bd15 to your computer and use it in GitHub Desktop.
make e2e_pilot
$ make e2e_pilot
bin/gobuild.sh /home/vagrant/go/out/linux_amd64/release/istioctl istio.io/istio/pkg/version ./istioctl/cmd/istioctl
real 0m1.287s
user 0m0.620s
sys 0m0.408s
./install/updateVersion.sh -a istio,bf18b1fa0a7393b7f524f27c2bc06c9356f7caac
/tmp/templates ~/go/src/istio.io/istio
~/go/src/istio.io/istio
/tmp/templates/addons ~/go/src/istio.io/istio
~/go/src/istio.io/istio
/tmp/templates ~/go/src/istio.io/istio
~/go/src/istio.io/istio
/tmp/templates ~/go/src/istio.io/istio
~/go/src/istio.io/istio
-a istio,bf18b1fa0a7393b7f524f27c2bc06c9356f7caac
make[1]: Entering directory '/home/vagrant/go/src/istio.io/istio'
cat install/kubernetes/templates/namespace.yaml > install/kubernetes/istio.yaml
/home/vagrant/go/out/linux_amd64/release/helm template --set global.tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac \
--namespace=istio-system \
--set global.hub=istio \
--values install/kubernetes/helm/istio/values-istio.yaml \
install/kubernetes/helm/istio >> install/kubernetes/istio.yaml
make[1]: Leaving directory '/home/vagrant/go/src/istio.io/istio'
make[1]: Entering directory '/home/vagrant/go/src/istio.io/istio'
cat install/kubernetes/templates/namespace.yaml > install/kubernetes/istio-auth.yaml
/home/vagrant/go/out/linux_amd64/release/helm template --set global.tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac \
--namespace=istio-system \
--set global.hub=istio \
--values install/kubernetes/helm/istio/values-istio-auth.yaml \
install/kubernetes/helm/istio >> install/kubernetes/istio-auth.yaml
make[1]: Leaving directory '/home/vagrant/go/src/istio.io/istio'
make[1]: Entering directory '/home/vagrant/go/src/istio.io/istio'
cat install/kubernetes/templates/namespace.yaml > install/kubernetes/istio-one-namespace.yaml
/home/vagrant/go/out/linux_amd64/release/helm template --set global.tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac \
--namespace=istio-system \
--set global.hub=istio \
--values install/kubernetes/helm/istio/values-istio-one-namespace.yaml \
install/kubernetes/helm/istio >> install/kubernetes/istio-one-namespace.yaml
make[1]: Leaving directory '/home/vagrant/go/src/istio.io/istio'
make[1]: Entering directory '/home/vagrant/go/src/istio.io/istio'
cat install/kubernetes/templates/namespace.yaml > install/kubernetes/istio-one-namespace-auth.yaml
/home/vagrant/go/out/linux_amd64/release/helm template --set global.tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac \
--namespace=istio-system \
--set global.hub=istio \
--values install/kubernetes/helm/istio/values-istio-one-namespace-auth.yaml \
install/kubernetes/helm/istio >> install/kubernetes/istio-one-namespace-auth.yaml
make[1]: Leaving directory '/home/vagrant/go/src/istio.io/istio'
go test -v -timeout 20m ./tests/e2e/tests/pilot --istioctl=/home/vagrant/go/out/linux_amd64/release/istioctl --mixer_tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac --pilot_tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac --proxy_tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac --ca_tag=bf18b1fa0a7393b7f524f27c2bc06c9356f7caac --mixer_hub=istio --pilot_hub=istio --proxy_hub=istio --ca_hub=istio
2018-04-03T19:06:52.042065Z info Logging initialized
2018-04-03T19:06:52.042437Z info Using temp dir /tmp/istio.e2e.278389534
2018-04-03T19:06:52.042552Z info Using release dir: /home/vagrant/go/src/istio.io/istio
2018-04-03T19:06:52.042618Z info Starting Initialization
2018-04-03T19:06:52.042629Z info Setting up kubeInfo
2018-04-03T19:06:52.049196Z info Running command kubectl create namespace pilot-test-df076c8100ee4d78924f61fb73
2018-04-03T19:06:55.483547Z info namespace pilot-test-df076c8100ee4d78924f61fb73 created
2018-04-03T19:06:55.483611Z info Running command kubectl apply -n pilot-test-df076c8100ee4d78924f61fb73 -f /tmp/istio.e2e.278389534/yaml/istio-one-namespace.yaml
2018-04-03T19:07:08.300123Z info Command output:
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
namespace "pilot-test-df076c8100ee4d78924f61fb73" configured
configmap "istio-statsd-prom-bridge" created
configmap "istio-mixer-custom-resources" created
configmap "prometheus" created
configmap "istio" created
serviceaccount "istio-ingress-service-account" created
serviceaccount "istio-mixer-service-account" created
serviceaccount "istio-pilot-service-account" created
serviceaccount "prometheus" created
serviceaccount "istio-ca-service-account" created
customresourcedefinition.apiextensions.k8s.io "rules.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "attributemanifests.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "circonuses.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "deniers.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "fluentds.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "kubernetesenvs.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "listcheckers.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "memquotas.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "noops.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "opas.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "prometheuses.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "rbacs.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "servicecontrols.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "solarwindses.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "stackdrivers.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "statsds.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "stdios.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "apikeys.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "authorizations.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "checknothings.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "kuberneteses.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "listentries.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "logentries.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "metrics.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "quotas.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "reportnothings.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "servicecontrolreports.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "tracespans.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "serviceroles.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "servicerolebindings.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "destinationpolicies.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "egressrules.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "routerules.config.istio.io" created
customresourcedefinition.apiextensions.k8s.io "virtualservices.networking.istio.io" created
customresourcedefinition.apiextensions.k8s.io "destinationrules.networking.istio.io" created
customresourcedefinition.apiextensions.k8s.io "externalservices.networking.istio.io" created
clusterrole.rbac.authorization.k8s.io "istio-ingress-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrole.rbac.authorization.k8s.io "istio-mixer-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrole.rbac.authorization.k8s.io "istio-pilot-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrole.rbac.authorization.k8s.io "prometheus-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrolebinding.rbac.authorization.k8s.io "prometheus-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrole.rbac.authorization.k8s.io "istio-ca-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrolebinding.rbac.authorization.k8s.io "istio-ingress-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrolebinding.rbac.authorization.k8s.io "istio-mixer-admin-role-binding-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrolebinding.rbac.authorization.k8s.io "istio-pilot-pilot-test-df076c8100ee4d78924f61fb73" created
clusterrolebinding.rbac.authorization.k8s.io "istio-ca-pilot-test-df076c8100ee4d78924f61fb73" created
service "istio-ingress" created
service "istio-policy" created
service "istio-telemetry" created
service "istio-statsd-prom-bridge" created
deployment.extensions "istio-statsd-prom-bridge" created
service "istio-pilot" created
service "prometheus" created
service "istio-ca" created
deployment.extensions "istio-ingress" created
deployment.extensions "istio-policy" created
deployment.extensions "istio-telemetry" created
deployment.extensions "istio-pilot" created
deployment.extensions "prometheus" created
deployment.extensions "istio-ca" created
job.batch "istio-mixer-create-cr" created
horizontalpodautoscaler.autoscaling "istio-ingress" created
2018-04-03T19:07:08.300216Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 get deployment -o name
2018-04-03T19:07:08.719236Z info Command output:
deployment.extensions/istio-ca
deployment.extensions/istio-ingress
deployment.extensions/istio-pilot
deployment.extensions/istio-policy
deployment.extensions/istio-statsd-prom-bridge
deployment.extensions/istio-telemetry
deployment.extensions/prometheus
2018-04-03T19:07:08.719384Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 rollout status deployment.extensions/prometheus
2018-04-03T19:07:08.719776Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 rollout status deployment.extensions/istio-pilot
2018-04-03T19:07:08.720098Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 rollout status deployment.extensions/istio-ca
2018-04-03T19:07:08.720539Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 rollout status deployment.extensions/istio-ingress
2018-04-03T19:07:08.720884Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 rollout status deployment.extensions/istio-statsd-prom-bridge
2018-04-03T19:07:08.721386Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 rollout status deployment.extensions/istio-telemetry
2018-04-03T19:07:08.721932Z info Running command kubectl -n pilot-test-df076c8100ee4d78924f61fb73 rollout status deployment.extensions/istio-policy
2018-04-03T19:09:09.128973Z error Failed to deploy Istio.
2018-04-03T19:09:09.132296Z error Failed to complete Init. Error context deadline exceeded
2018-04-03T19:09:09.132310Z info Saving logs
2018-04-03T19:09:09.132315Z info Creating status file
2018-04-03T19:09:09.136903Z info Created Status file /tmp/istio.e2e.278389534/pilot_test.json
2018-04-03T19:09:09.136919Z info Running command kubectl get ingress --all-namespaces
2018-04-03T19:09:09.603981Z info Command output:
No resources found.
2018-04-03T19:09:09.604122Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73
2018-04-03T19:09:10.119809Z info Command output:
NAME READY STATUS RESTARTS AGE
istio-ca-7df4f7686c-sfvbj 0/1 ErrImagePull 0 2m
istio-ingress-57cf6559c5-shlch 0/1 ErrImagePull 0 2m
istio-mixer-create-cr-plvbw 0/1 Completed 0 2m
istio-pilot-77bb944d5f-nfn9x 0/2 ErrImagePull 0 2m
istio-policy-f4449cc94-xdbx7 0/2 ErrImagePull 0 2m
istio-statsd-prom-bridge-949999c4c-kg9wz 1/1 Running 0 2m
istio-telemetry-5c9c599cdb-nx5tg 0/2 ErrImagePull 0 2m
prometheus-86cb6dd77c-fmpjh 1/1 Running 0 2m
2018-04-03T19:09:10.119872Z info Fetching logs on istio-ca-7df4f7686c-sfvbj
2018-04-03T19:09:10.162558Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 istio-ca-7df4f7686c-sfvbj -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:10.384015Z info Command output:
istio-ca
2018-04-03T19:09:10.384128Z info Running command kubectl logs istio-ca-7df4f7686c-sfvbj -n pilot-test-df076c8100ee4d78924f61fb73 -c istio-ca
2018-04-03T19:09:10.580623Z info Fetching logs on istio-ingress-57cf6559c5-shlch
2018-04-03T19:09:10.580668Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 istio-ingress-57cf6559c5-shlch -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:10.662818Z info Command output:
ingress
2018-04-03T19:09:10.662897Z info Running command kubectl logs istio-ingress-57cf6559c5-shlch -n pilot-test-df076c8100ee4d78924f61fb73 -c ingress
2018-04-03T19:09:10.779545Z info Fetching logs on istio-mixer-create-cr-plvbw
2018-04-03T19:09:10.779592Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 istio-mixer-create-cr-plvbw -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:10.872231Z info Command output:
hyperkube
2018-04-03T19:09:10.872362Z info Running command kubectl logs istio-mixer-create-cr-plvbw -n pilot-test-df076c8100ee4d78924f61fb73 -c hyperkube
2018-04-03T19:09:11.090832Z info Fetching logs on istio-pilot-77bb944d5f-nfn9x
2018-04-03T19:09:11.090876Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 istio-pilot-77bb944d5f-nfn9x -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:11.203200Z info Command output:
discovery istio-proxy
2018-04-03T19:09:11.203352Z info Running command kubectl logs istio-pilot-77bb944d5f-nfn9x -n pilot-test-df076c8100ee4d78924f61fb73 -c discovery
2018-04-03T19:09:11.345737Z info Fetching logs on istio-policy-f4449cc94-xdbx7
2018-04-03T19:09:11.345798Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 istio-policy-f4449cc94-xdbx7 -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:11.429336Z info Command output:
mixer istio-proxy
2018-04-03T19:09:11.429442Z info Running command kubectl logs istio-policy-f4449cc94-xdbx7 -n pilot-test-df076c8100ee4d78924f61fb73 -c mixer
2018-04-03T19:09:11.571767Z info Fetching logs on istio-statsd-prom-bridge-949999c4c-kg9wz
2018-04-03T19:09:11.571818Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 istio-statsd-prom-bridge-949999c4c-kg9wz -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:11.661257Z info Command output:
statsd-prom-bridge
2018-04-03T19:09:11.661335Z info Running command kubectl logs istio-statsd-prom-bridge-949999c4c-kg9wz -n pilot-test-df076c8100ee4d78924f61fb73 -c statsd-prom-bridge
2018-04-03T19:09:11.811726Z info Fetching logs on istio-telemetry-5c9c599cdb-nx5tg
2018-04-03T19:09:11.811752Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 istio-telemetry-5c9c599cdb-nx5tg -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:11.897778Z info Command output:
mixer istio-proxy
2018-04-03T19:09:11.897874Z info Running command kubectl logs istio-telemetry-5c9c599cdb-nx5tg -n pilot-test-df076c8100ee4d78924f61fb73 -c mixer
2018-04-03T19:09:12.078210Z info Fetching logs on prometheus-86cb6dd77c-fmpjh
2018-04-03T19:09:12.078327Z info Running command kubectl get pods -n pilot-test-df076c8100ee4d78924f61fb73 prometheus-86cb6dd77c-fmpjh -o jsonpath={.spec.containers[*].name}
2018-04-03T19:09:12.193178Z info Command output:
prometheus
2018-04-03T19:09:12.193686Z info Running command kubectl logs prometheus-86cb6dd77c-fmpjh -n pilot-test-df076c8100ee4d78924f61fb73 -c prometheus
2018-04-03T19:09:12.435427Z info Fetching deployment info on pod
2018-04-03T19:09:12.446606Z info Running command kubectl get pod -n pilot-test-df076c8100ee4d78924f61fb73 -o yaml
2018-04-03T19:09:12.580352Z info Fetching deployment info on service
2018-04-03T19:09:12.580394Z info Running command kubectl get service -n pilot-test-df076c8100ee4d78924f61fb73 -o yaml
2018-04-03T19:09:12.656516Z info Fetching deployment info on ingress
2018-04-03T19:09:12.656556Z info Running command kubectl get ingress -n pilot-test-df076c8100ee4d78924f61fb73 -o yaml
2018-04-03T19:09:12.729208Z warn Log saving incomplete: 5 errors occurred:
* command failed: "Error from server (BadRequest): container \"istio-ca\" in pod \"istio-ca-7df4f7686c-sfvbj\" is waiting to start: image can't be pulled\n" exit status 1
* command failed: "Error from server (BadRequest): container \"ingress\" in pod \"istio-ingress-57cf6559c5-shlch\" is waiting to start: image can't be pulled\n" exit status 1
* command failed: "Error from server (BadRequest): container \"discovery\" in pod \"istio-pilot-77bb944d5f-nfn9x\" is waiting to start: image can't be pulled\n" exit status 1
* command failed: "Error from server (BadRequest): container \"mixer\" in pod \"istio-policy-f4449cc94-xdbx7\" is waiting to start: image can't be pulled\n" exit status 1
* command failed: "Error from server (BadRequest): container \"mixer\" in pod \"istio-telemetry-5c9c599cdb-nx5tg\" is waiting to start: trying and failing to pull image\n" exit status 1
2018-04-03T19:09:12.729243Z info Starting Cleanup
2018-04-03T19:09:12.729251Z info Cleaning up kubeInfo
2018-04-03T19:09:12.729257Z info Running command kubectl delete namespace pilot-test-df076c8100ee4d78924f61fb73
2018-04-03T19:09:12.867248Z info Command output:
namespace "pilot-test-df076c8100ee4d78924f61fb73" deleted
2018-04-03T19:09:12.877399Z info Running command kubectl get clusterrolebinding -o jsonpath={.items[*].metadata.name}|xargs -n 1|fgrep pilot-test-df076c8100ee4d78924f61fb73|xargs kubectl delete clusterrolebinding
2018-04-03T19:09:13.502008Z info Command output:
clusterrolebinding.rbac.authorization.k8s.io "istio-ca-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrolebinding.rbac.authorization.k8s.io "istio-ingress-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrolebinding.rbac.authorization.k8s.io "istio-mixer-admin-role-binding-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrolebinding.rbac.authorization.k8s.io "istio-pilot-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrolebinding.rbac.authorization.k8s.io "prometheus-pilot-test-df076c8100ee4d78924f61fb73" deleted
2018-04-03T19:09:13.502213Z info Running command kubectl get clusterrole -o jsonpath={.items[*].metadata.name}|xargs -n 1|fgrep pilot-test-df076c8100ee4d78924f61fb73|xargs kubectl delete clusterrole
2018-04-03T19:09:14.015008Z info Command output:
clusterrole.rbac.authorization.k8s.io "istio-ca-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrole.rbac.authorization.k8s.io "istio-ingress-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrole.rbac.authorization.k8s.io "istio-mixer-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrole.rbac.authorization.k8s.io "istio-pilot-pilot-test-df076c8100ee4d78924f61fb73" deleted
clusterrole.rbac.authorization.k8s.io "prometheus-pilot-test-df076c8100ee4d78924f61fb73" deleted
2018-04-03T19:09:14.015051Z info Deleting namespace pilot-test-df076c8100ee4d78924f61fb73
2018-04-03T19:09:48.918088Z info Namespace pilot-test-df076c8100ee4d78924f61fb73 deletion status: true
2018-04-03T19:09:48.918167Z info Cleanup complete
FAIL istio.io/istio/tests/e2e/tests/pilot 176.994s
tests/istio.mk:102: recipe for target 'e2e_pilot' failed
make: *** [e2e_pilot] Error 1
@vhosakot
Copy link

I saw the same errors below in istio master when I ran make e2e_simple E2E_ARGS="--auth_enable --use_local_cluster --istioctl /usr/local/bin/istioctl":

error	Failed to deploy Istio.
error	Failed to complete Init. Error context deadline exceeded

Using the release-0.8 git branch and 0.8.0 as the TAG resolved it for me:

git clone https://github.com/istio/istio.git
git checkout release-0.8
export TAG=0.8.0
make e2e_simple E2E_ARGS="--auth_enable --use_local_cluster --istioctl /usr/local/bin/istioctl"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment