Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-2481

NetObserv CLI: Removes tmp directory in your current directory

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • netobserv-1.10.1
    • None
    • CLI
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • None
    • None
    • NetObserv - Sprint 280
    • None
    • None
    • Hide
      Previously, Network Observability CLI used to create or use existing "tmp" directory in the current working directory which was deleted in the end. Now with this change, it creates a new temporary directory under users' tmp filesystem for each run and clears in the end.
      Show
      Previously, Network Observability CLI used to create or use existing "tmp" directory in the current working directory which was deleted in the end. Now with this change, it creates a new temporary directory under users' tmp filesystem for each run and clears in the end.

      Run the oc-netobserv script, such as `oc netobserv flows`.  If you happen to have a "tmp" directory in the directory where you're running this script, it removes that directory and all files under it!

      In the oc-netobserv script, it has:

      MANIFEST_OUTPUT_PATH="tmp"
      ...
      function check_args_and_apply() {
        ...
        rm -rf ${MANIFEST_OUTPUT_PATH}
      }
      
      

      This issue is in 1.8, 1.9, 1.10, and possibly earlier versions.

              rhn-support-memodi Mehul Modi
              stlee@redhat.com Steven Lee
              None
              None
              None
              Julien Pinsonneau Julien Pinsonneau
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: