Bug 1364017
| Summary: | [infrastructure_public_278]Can't attach/debug a init container. | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | DeShuai Ma <dma> | 
| Component: | oc | Assignee: | Andy Goldstein <agoldste> | 
| Status: | CLOSED CURRENTRELEASE | QA Contact: | DeShuai Ma <dma> | 
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.3.0 | CC: | agoldste, aos-bugs, jokerman, mmccomas, wmeng | 
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-19 14:32:45 UTC | Type: | Bug | 
| Regression: | --- | Mount Type: | --- | 
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| 
 
        
          Description
        
        
          DeShuai Ma
        
        
        
        
        
          2016-08-04 09:37:45 UTC
        
       
      
      
      
    Before init container is complete, pod status is pending. In this status 'oc rsh,rsync,logs' all can success, only attach error with pod 'Pending' when pr merge will verify this bug. this bug just merged in origin, still need wait to merge on ose. Test on v3.3.0.23, oc attach has fixed, `oc debug` still can't debug init container. [root@dhcp-128-7 Desktop]# oc debug pod/hello-pod -c sleep -- /bin/env error: the container "sleep" is not a valid container name; must be one of [hello-pod] Fixes for debugging init containers: https://github.com/openshift/origin/pull/10578 Test on v3.3.0.25+d2ac65e-dirty, verify this bug. [root@qe-wmeng3-master-container-1 ~]# oc debug -n dma pod/hello-pod -c sleep -- /bin/env Debugging with pod/hello-pod-debug, original command: /bin/sh -c while :; do sleep 2; echo hello init container; done Waiting for pod to start ... PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=hello-pod-debug KUBERNETES_PORT_443_TCP_PORT=443 KUBERNETES_PORT_53_UDP=udp://172.30.0.1:53 KUBERNETES_PORT_53_UDP_PROTO=udp KUBERNETES_PORT_53_TCP=tcp://172.30.0.1:53 KUBERNETES_SERVICE_HOST=172.30.0.1 KUBERNETES_SERVICE_PORT_HTTPS=443 KUBERNETES_PORT=tcp://172.30.0.1:443 KUBERNETES_PORT_53_UDP_ADDR=172.30.0.1 KUBERNETES_PORT_53_TCP_ADDR=172.30.0.1 KUBERNETES_PORT_443_TCP_PROTO=tcp KUBERNETES_PORT_443_TCP_ADDR=172.30.0.1 KUBERNETES_PORT_53_TCP_PORT=53 KUBERNETES_SERVICE_PORT=443 KUBERNETES_SERVICE_PORT_DNS_TCP=53 KUBERNETES_PORT_443_TCP=tcp://172.30.0.1:443 KUBERNETES_SERVICE_PORT_DNS=53 KUBERNETES_PORT_53_UDP_PORT=53 KUBERNETES_PORT_53_TCP_PROTO=tcp HOME=/root Removing debug pod ...  |