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

Hit panic error when trying to prepare subcommand via oc-mirror v2

    XMLWordPrintable

Details

    • Important
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress
    • Customer Facing

    Description

      Description of problem:

      When use oc-mirror v2 to mirror operators , the command will panic:
      oc-mirror --v2 prepare --from file://outfilter   --config config.yaml file://out -p 50015--v2 flag identified, flow redirected to the oc-mirror v2 version. PLEASE DO NOT USE that. V2 is still under development and it is not ready to be used. panic: runtime error: invalid memory address or nil pointer dereference[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x3c1ba6d]
      goroutine 1 [running]:github.com/openshift/oc-mirror/v2/pkg/cli.(*ExecutorSchema).setupLogsLevelAndDir(0xc000898a80)	/go/src/github.com/openshift/oc-mirror/vendor/github.com/openshift/oc-mirror/v2/pkg/cli/executor.go:685 +0xcdgithub.com/openshift/oc-mirror/v2/pkg/cli.(*ExecutorSchema).CompletePrepare(0xc000898a80, {0xc000a8c1a0?, 0x0?, 0x0?})	/go/src/github.com/openshift/oc-mirror/vendor/github.com/openshift/oc-mirror/v2/pkg/cli/executor.go:864 +0x413github.com/openshift/oc-mirror/v2/pkg/cli.NewPrepareCommand.func1(0xc0009a5800?, {0xc00089d300, 0x1, 0x8})	/go/src/github.com/openshift/oc-mirror/vendor/github.com/openshift/oc-mirror/v2/pkg/cli/executor.go:795 +0x18agithub.com/spf13/cobra.(*Command).execute(0xc000005500, {0xc00089d280, 0x8, 0x8})	/go/src/github.com/openshift/oc-mirror/vendor/github.com/spf13/cobra/command.go:944 +0x863github.com/spf13/cobra.(*Command).ExecuteC(0xc000004f00)	/go/src/github.com/openshift/oc-mirror/vendor/github.com/spf13/cobra/command.go:1068 +0x3a5github.com/spf13/cobra.(*Command).Execute(0x6c9dd68?)	/go/src/github.com/openshift/oc-mirror/vendor/github.com/spf13/cobra/command.go:992 +0x13main.main()	/go/src/github.com/openshift/oc-mirror/cmd/oc-mirror/main.go:10 +0x18
      

       

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

      oc-mirror version 
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.16.0-202403070215.p0.gc4f8295.assembly.stream.el9-c4f8295", GitCommit:"c4f829512107f7d0f52a057cd429de2030b9b3b3", GitTreeState:"clean", BuildDate:"2024-03-07T03:46:24Z", GoVersion:"go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      run command : oc-mirror --v2 prepare --from file://outfilter   --config config.yaml file://out -p 50015

      Actual results: 

      command panic
      

      Expected results:

      No panic

      Attachments

        Issue Links

          Activity

            People

              luzuccar@redhat.com Luigi Mario Zuccarelli
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: