You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/15 14:24:56 UTC

[GitHub] dgrove-oss opened a new issue #225: TravisCI testing with Kubernetes 1.10

dgrove-oss opened a new issue #225: TravisCI testing with Kubernetes 1.10
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/issues/225
 
 
   We've made several attempts to enable TravisCI testing for Kubernetes 1.10.x.   Documenting some of the findings here.
   
   The non-container based TravisCI environment is fairly antiquated (ubuntu 14.04).  All minikube versions newer than v0.25.2 expect `systemctl` to be provided in the host environment.  Systemctl is not available in ubuntu 14.04 (first became available in ubuntu 16.04).   As a result, we cannot run any version of minikube later than 0.25.2 with the --vmdriver=none option that we need to avoid docker-in-docker problems.  (see https://github.com/kubernetes/minikube/issues/2704 for discussion of systemctl).
   
   Unfortunately, running kubernetes 1.10.x in minikube 0.25.2 does not work.  Here's a snippet of the minikube log from the latest attempt showing that the kube-addon-manager pod is unable to start.
   
   ```
   I0614 22:11:46.019930   16852 reconciler.go:207] operationExecutor.VerifyControllerAttachedVolume started for volume "addons" (UniqueName: "kubernetes.io/host-path/4a5d72e5f704e8849fc9e9c8e03c034c-addons") pod "kube-addon-manager-travis-job-0f598210-f60f-422a-8b0d-3dcf0f7c543e" (UID: "4a5d72e5f704e8849fc9e9c8e03c034c") 
   I0614 22:11:46.020008   16852 reconciler.go:207] operationExecutor.VerifyControllerAttachedVolume started for volume "kubeconfig" (UniqueName: "kubernetes.io/host-path/4a5d72e5f704e8849fc9e9c8e03c034c-kubeconfig") pod "kube-addon-manager-travis-job-0f598210-f60f-422a-8b0d-3dcf0f7c543e" (UID: "4a5d72e5f704e8849fc9e9c8e03c034c") 
   I0614 22:11:46.020075   16852 reconciler.go:154] Reconciler: start to sync state
   E0614 22:11:46.227349   16852 metadata.go:142] while reading 'google-dockercfg' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg
   E0614 22:11:46.229388   16852 metadata.go:159] while reading 'google-dockercfg-url' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg-url
   I0614 22:11:48.270038   16852 controller.go:537] quota admission added evaluator for: {extensions deployments}
   I0614 22:11:48.275711   16852 controller.go:537] quota admission added evaluator for: {extensions replicasets}
   I0614 22:11:48.280086   16852 event.go:218] Event(v1.ObjectReference{Kind:"Deployment", Namespace:"kube-system", Name:"tiller-deploy", UID:"ee8393bc-701f-11e8-b867-42010a1401d8", APIVersion:"extensions", ResourceVersion:"169", FieldPath:""}): type: 'Normal' reason: 'ScalingReplicaSet' Scaled up replica set tiller-deploy-7f5f67578d to 1
   I0614 22:11:48.305878   16852 event.go:218] Event(v1.ObjectReference{Kind:"ReplicaSet", Namespace:"kube-system", Name:"tiller-deploy-7f5f67578d", UID:"ee847196-701f-11e8-b867-42010a1401d8", APIVersion:"extensions", ResourceVersion:"170", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' Created pod: tiller-deploy-7f5f67578d-whn2t
   W0614 22:11:48.323997   16852 factory.go:1304] Request for pod kube-system/tiller-deploy-7f5f67578d-whn2t already in flight, abandoning
   E0614 22:11:49.799009   16852 kubelet_pods.go:409] hostname for pod:"kube-addon-manager-travis-job-0f598210-f60f-422a-8b0d-3dcf0f7c543e" was longer than 63. Truncated hostname to :"kube-addon-manager-travis-job-0f598210-f60f-422a-8b0d-3dcf0f7c5"
   W0614 22:11:49.901899   16852 docker_container.go:213] Cannot create symbolic link because container log file doesn't exist!
   E0614 22:11:49.902123   16852 remote_runtime.go:209] StartContainer "66ccc8d933f99408d5b63beeb48fb7e2e91c8daa760cece0b858a8c1d9a7806e" from runtime service failed: rpc error: code = Unknown desc = failed to start container "66ccc8d933f99408d5b63beeb48fb7e2e91c8daa760cece0b858a8c1d9a7806e": Error response from daemon: linux mounts: path /etc/kubernetes is mounted on / but it is not a shared or slave mount
   E0614 22:11:49.902238   16852 kuberuntime_manager.go:733] container start failed: RunContainerError: failed to start container "66ccc8d933f99408d5b63beeb48fb7e2e91c8daa760cece0b858a8c1d9a7806e": Error response from daemon: linux mounts: path /etc/kubernetes is mounted on / but it is not a shared or slave mount
   E0614 22:11:49.902311   16852 pod_workers.go:186] Error syncing pod 4a5d72e5f704e8849fc9e9c8e03c034c ("kube-addon-manager-travis-job-0f598210-f60f-422a-8b0d-3dcf0f7c543e_kube-system(4a5d72e5f704e8849fc9e9c8e03c034c)"), skipping: failed to "StartContainer" for "kube-addon-manager" with RunContainerError: "failed to start container \"66ccc8d933f99408d5b63beeb48fb7e2e91c8daa760cece0b858a8c1d9a7806e\": Error response from daemon: linux mounts: path /etc/kubernetes is mounted on / but it is not a shared or slave mount"
   I0614 22:11:51.188296   16852 kuberuntime_manager.go:513] Container {Name:kube-addon-manager Image:gcr.io/google-containers/kube-addon-manager:v6.5 Command:[] Args:[] WorkingDir: Ports:[] EnvFrom:[] Env:[{Name:KUBECONFIG Value:/var/lib/localkube/kubeconfig ValueFrom:nil}] Resources:{Limits:map[] Requests:map[cpu:{i:{value:5 scale:-3} d:{Dec:<nil>} s:5m Format:DecimalSI} memory:{i:{value:52428800 scale:0} d:{Dec:<nil>} s:50Mi Format:BinarySI}]} VolumeMounts:[{Name:addons ReadOnly:true MountPath:/etc/kubernetes/ SubPath: MountPropagation:<nil>} {Name:kubeconfig ReadOnly:true MountPath:/var/lib/localkube/ SubPath: MountPropagation:<nil>}] VolumeDevices:[] LivenessProbe:nil ReadinessProbe:nil Lifecycle:nil TerminationMessagePath:/dev/termination-log TerminationMessagePolicy:File ImagePullPolicy:IfNotPresent SecurityContext:nil Stdin:false StdinOnce:false TTY:false} is dead, but RestartPolicy says that we should restart it.
   I0614 22:11:51.188447   16852 kuberuntime_manager.go:757] checking backoff for container "kube-addon-manager" in pod "kube-addon-manager-travis-job-0f598210-f60f-422a-8b0d-3dcf0f7c543e_kube-system(4a5d72e5f704e8849fc9e9c8e03c034c)"
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services