Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-5102 test failure: periodic-voltha-openonu-go-test-bbsim
  3. VOL-5103

port forwarding: remove duplication, create a library script to handle setup and teardown

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: To Do (View Workflow)
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Testing
    • Labels:
      None
    • Story Points:
      0

      Description

      Setup and teardown of port forwarding is done in several places around testing.
      Create a standalone script that will:

      • Accept appropriate parameters.
      • Test if port forwarding already configured.
      • Conditionally teardown existing forwarding (command line arg):
        • --stop or --if-running
      • Startup port forwarding:
        • if not already running

      Report errors and exit with status on any failure condition.

      [2023-02-06T21:29:39.690Z] + for i in {0..0}
      [2023-02-06T21:29:39.690Z] + (( bbsimDmiPortFwd++ ))
      [2023-02-06T21:29:39.690Z] + '[' false = true ']'
      [2023-02-06T21:29:39.690Z] + JENKINS_NODE_COOKIE=dontKillMe
      [2023-02-06T21:29:39.690Z] + _TAG=bbsim0
      [2023-02-06T21:29:39.690Z] + bash -c 'while true; do kubectl port-forward --address 0.0.0.0 -n voltha svc/bbsim0 50075:50075; done'
      [2023-02-06T21:29:39.690Z] + ps aux
      [2023-02-06T21:29:39.690Z] + grep port-forward
      [2023-02-06T21:29:39.690Z] + JENKINS_NODE_COOKIE=dontKillMe
      [2023-02-06T21:29:39.690Z] + _TAG=voltha-infra-kafka
      [2023-02-06T21:29:39.690Z] + bash -c 'while true; do kubectl port-forward --address 0.0.0.0 -n default svc/voltha-infra-kafka 9092:9092; done'
      [2023-02-06T21:29:39.690Z] jenkins    90037  0.0  0.0  13320  3008 ?        S    21:29   0:00 bash -c while true; do kubectl port-forward --address 0.0.0.0 -n voltha svc/voltha-voltha-api 55555:55555; done
      [2023-02-06T21:29:39.690Z] jenkins    90038  0.0  0.0  13320  2968 ?        S    21:29   0:00 bash -c while true; do kubectl port-forward --address 0.0.0.0 -n default svc/voltha-infra-etcd 2379:2379; done
      [2023-02-06T21:29:39.690Z] jenkins    90039  0.0  0.0  13320  3148 ?        S    21:29   0:00 bash -c while true; do kubectl port-forward --address 0.0.0.0 -n default svc/voltha-infra-kafka 9092:9092; done
      [2023-02-06T21:29:39.690Z] jenkins    90040  0.0  0.0  13320  3092 ?        S    21:29   0:00 bash -c while true; do kubectl port-forward --address 0.0.0.0 -n voltha svc/bbsim0 50075:50075; done
      [2023-02-06T21:29:39.690Z] jenkins    90042  0.0  0.0  14864  1148 ?        S    21:29   0:00 grep port-forward
      [2023-02-06T21:29:39.690Z] jenkins    90043  0.0  0.1 145828 21808 ?        Rl   21:29   0:00 kubectl port-forward --address 0.0.0.0 -n voltha svc/voltha-voltha-api 55555:55555
      [2023-02-06T21:29:39.690Z] jenkins    90044  0.0  0.1 145828 22720 ?        Rl   21:29   0:00 kubectl port-forward --address 0.0.0.0 -n voltha svc/bbsim0 50075:50075
      [2023-02-06T21:29:39.690Z] jenkins    90048  0.0  0.1 145764 20488 ?        Rl   21:29   0:00 kubectl port-forward --address 0.0.0.0 -n default svc/voltha-infra-etcd 2379:2379
      [2023-02-06T21:29:39.690Z] jenkins    90050  0.0  0.1 145764 21684 ?        Sl   21:29   0:00 kubectl port-forward --address 0.0.0.0 -n default svc/voltha-infra-kafka 9092:9092
      [2023-02-06T21:29:39.690Z] Forwarding from 0.0.0.0:55555 -> 50057
      [2023-02-06T21:29:39.690Z] Forwarding from 0.0.0.0:2379 -> 2379
      [2023-02-06T21:29:39.690Z] Forwarding from 0.0.0.0:9092 -> 9092
      [2023-02-06T21:29:39.690Z] Forwarding from 0.0.0.0:50075 -> 50075
      
      

       

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joey Joey Armstrong
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes