kubectl exec fail with 500 (dial tcp: lookup no such host)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
New
|
Undecided
|
Ton Ngo |
Bug Description
we register hosts with nova name and this name doesn't register in dns
kubectl get nodes
NAME LABELS STATUS
k8-pdbzkoijyr-
kubectl create -f /etc/kubernetes
kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx 1/1 Running 0 5m
kubectl exec -ti nginx -- bash
error: Unable to upgrade connection: {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "dial tcp: lookup k8-pdbzkoijyr-
"code": 500
}
Changed in magnum: | |
milestone: | none → mitaka-1 |
The script adjusts the host name to match the nova instance name. One solution would be to adjust the DNS entry accordingly.