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

when use copy-to-node with -l , the command always failed with error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • 4.15.0, 4.16.0
    • 4.15.0, 4.16.0
    • oc
    • None
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      when use copy-to-node with `-l` , the command always failed with error:
      unable to get interesting nodes: at least one resource must be specified to use a selector

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

          4.16
          

      How reproducible:

         always
          

      Steps to Reproduce:

      1. oc adm copy-to-node --copy=README.md=/tmp -l node-role.kubernetes.io/worker= 

      Actual results:

      oc adm copy-to-node --copy=README.md=/tmp -l node-role.kubernetes.io/worker=
      error: unable to get interesting nodes: at least one resource must be specified to use a selector
      [root@localhost oc]# echo $?
      1
           

      Expected results:

      no error 
          

      Additional info:

      oc get node -l node-role.kubernetes.io/worker=
      NAME                          STATUS   ROLES    AGE     VERSION
      ip-10-0-0-59.ec2.internal     Ready    worker   7h37m   v1.28.6+f1618d5
      ip-10-0-25-73.ec2.internal    Ready    worker   7h37m   v1.28.6+f1618d5
      ip-10-0-39-121.ec2.internal   Ready    worker   7h37m   v1.28.6+f1618d5

            aguclu@redhat.com Arda Guclu
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: