Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-1831

failed to run command in pod with network-tools script pod-run-netns-command locally

XMLWordPrintable

    • None
    • SDN Sprint 225, SDN Sprint 226
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      failed to run command in pod with network-tools script pod-run-netns-command locally

      Version-Release number of selected component (if applicable):

      Client Version: 4.12.0-0.nightly-2022-07-25-055755
      Kustomize Version: v4.5.4
      Server Version: 4.12.0-0.nightly-2022-09-28-204419
      Kubernetes Version: v1.24.0+8c7c967

      How reproducible:

      100%

      Steps to Reproduce:

      1.configure KUBECONFIG
      [cloud-user@preserved-qiowang debug-scripts]$ export | grep kube
      declare -x KUBECONFIG="/var/tmp/kubeconfig412"
      [cloud-user@preserved-qiowang debug-scripts]$ oc get nodes
      NAME                                                         STATUS   ROLES                  AGE     VERSION
      qiowang-09291-chllb-master-0.c.openshift-qe.internal         Ready    control-plane,master   7h16m   v1.24.0+8c7c967
      qiowang-09291-chllb-master-1.c.openshift-qe.internal         Ready    control-plane,master   7h16m   v1.24.0+8c7c967
      qiowang-09291-chllb-master-2.c.openshift-qe.internal         Ready    control-plane,master   7h16m   v1.24.0+8c7c967
      qiowang-09291-chllb-worker-a-2zq28.c.openshift-qe.internal   Ready    worker                 6h59m   v1.24.0+8c7c967
      qiowang-09291-chllb-worker-b-226ft.c.openshift-qe.internal   Ready    worker                 6h59m   v1.24.0+8c7c967
      qiowang-09291-chllb-worker-c-wq52c.c.openshift-qe.internal   Ready    worker                 6h59m   v1.24.0+8c7c967
      
      2. clone the openshift/network-tools repo to local
      
      3. create project test, create pod hello-world
      [cloud-user@preserved-qiowang debug-scripts]$ oc project
      Using project "test" on server "https://api.qiowang-09291.qe.gcp.devcluster.openshift.com:6443".
      [cloud-user@preserved-qiowang debug-scripts]$ oc get pods
      NAME                READY   STATUS    RESTARTS   AGE
      hello-world-j9v9g   1/1     Running   0          68s
      hello-world-rrwjf   1/1     Running   0          68s
      
      4. run ping command in the pod hello-world-j9v9g with script pod-run-netns-command locally
      [cloud-user@preserved-qiowang debug-scripts]$ ./network-tools pod-run-netns-command test hello-world-j9v9g ping 8.8.8.8 -c 5
      ERROR: Command returned non-zero exit code, check output or logs.

      Actual results:

      failed to run command in pod hello-world-j9v9g with script pod-run-netns-command locally

      Expected results:

      can run ping 8.8.8.8 -c 5 in pod hello-world-j9v9g with script pod-run-netns-command locally

      Additional info:

       

            npinaeva@redhat.com Nadia Pinaeva
            rh-ee-qiowang Qiong Wang
            Qiong Wang Qiong Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: