Bug 1760588

Summary: odo service create crash under Win/Cygwin
Product: OpenShift Container Platform Reporter: Yana Hontyk <yhontyk>
Component: odoAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact: Yana Hontyk <yhontyk>
Priority: unspecified    
Version: 4.2.0CC: cdrage, oskutka, tkral
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-07 08:14:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yana Hontyk 2019-10-10 21:25:22 UTC
Description of problem:
odo service create crash under Win/Cygwin

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


How reproducible:


Steps to Reproduce:
1. odo service create

Actual results:

    $ odo service create
    ? Which kind of service do you wish to create [Use arrows to move, type to filter]

        database
        datagrid
        decisionserver
        eap
        fuse
        hawtio
        instant-app
        panic: runtime error: invalid memory address or nil pointer dereference
        [signal 0xc0000005 code=0x0 addr=0x10 pc=0x13fb8d6]

    goroutine 1 [running]:
    github.com/openshift/odo/pkg/service.NewServicePlan(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/service/service.go:360 +0xf6
    github.com/openshift/odo/pkg/odo/cli/service/ui.enterServicePropertiesInteractively(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/ui/ui.go:246 +0x99
    github.com/openshift/odo/pkg/odo/cli/service/ui.EnterServicePropertiesInteractively(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/ui/ui.go:240 +0x7d
    github.com/openshift/odo/pkg/odo/cli/service.(*ServiceCreateOptions).Complete(0xc000742680, 0xc00081f500, 0x6, 0xc0006f8b40, 0x2bced18, 0x0, 0x0, 0xc000a402d0, 0x18f9970)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/create.go:117 +0x5c2
    github.com/openshift/odo/pkg/odo/genericclioptions.GenericRun(0x1b2eac0, 0xc000742680, 0xc0006f8b40, 0x2bced18, 0x0, 0x0)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/genericclioptions/runnable.go:15 +0x75
    github.com/openshift/odo/pkg/odo/cli/service.NewCmdServiceCreate.func1(0xc0006f8b40, 0x2bced18, 0x0, 0x0)
    /home/travis/gopath/src/github.com/openshift/odo/pkg/odo/cli/service/create.go:243 +0x65
    github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).execute(0xc0006f8b40, 0x2bced18, 0x0, 0x0, 0xc0006f8b40, 0x2bced18)
    /home/travis/gopath/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:702 +0x2da
    github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc00078d200, 0x8, 0xc000002180, 0x1519649)
    /home/travis/gopath/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:783 +0x2e3
    github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).Execute(0xc00078d200, 0x19fe890, 0xc000648ae0)
    /home/travis/gopath/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:736 +0x32
    main.main()
    /home/travis/gopath/src/github.com/openshift/odo/cmd/odo/odo.go:65 +0x357


Expected results:

No crash

Additional info:
The crash does not occur under native Windows shell (cmd)