Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odo push panic out when fails with error "timed out waiting for the condition" #1956

Closed
amitkrout opened this issue Jul 29, 2019 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@amitkrout
Copy link
Contributor

[kind/bug]

What versions of software are you using?

  • Operating System: Supported
  • Output of odo version: master

How did you run odo exactly?

In OpenShift CI on two test node and these test runs on each node with complete isolation simultaneously. Also same panic message can be observed locally too.

Actual behavior

Panic out

Expected behavior

Should give a proper message

Any logs, error output, etc?

odojsonoutput odo machine readable output on project nodejs is deployed 
  should be able to list url
  /go/src/github.com/openshift/odo/tests/integration/json_test.go:94
 Created dir: /tmp/107843751
Creating a new project: pisruzhzmt
Running odo with args: [project create pisruzhzmt -w -v4] 
[odo] I0728 05:56:04.245893   24345 preference.go:116] The configFile is /tmp/107843751/config.yaml
[odo] I0728 05:56:04.245994   24345 occlient.go:486] Trying to connect to server api.ci-op-zlj5gmpl-f09f4.origin-ci-int-aws.dev.rhcloud.com:6443
[odo] I0728 05:56:04.261297   24345 occlient.go:493] Server https://api.ci-op-zlj5gmpl-f09f4.origin-ci-int-aws.dev.rhcloud.com:6443 is up
[odo] I0728 05:56:04.327344   24345 occlient.go:416] isLoggedIn err:  <nil> 
[odo]  output: "developer"
[odo] I0728 05:56:04.327380   24345 context.go:367] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
[odo] I0728 05:56:04.327388   24345 context.go:367] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
[odo] I0728 05:56:04.327437   24345 context.go:367] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: app
[odo] I0728 05:56:04.327442   24345 context.go:367] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: project
[odo] I0728 05:56:04.341654   24345 context.go:367] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: app
[odo] I0728 05:56:04.341680   24345 context.go:367] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: output
[odo] I0728 05:56:04.341687   24345 context.go:367] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: component
[odo]  •  Waiting for project to come up  ...
[odo]  ✓  Waiting for project to come up [332ms]
[odo]  ✓  Project 'pisruzhzmt' is ready for use
[odo] I0728 05:56:04.687589   24345 odo.go:70] Could not get the latest release information in time. Never mind, exiting gracefully :)
[odo]  ✓  New project created and now using project : pisruzhzmt
Current working dir: /go/src/github.com/openshift/odo/tests/integration
Setting current dir to: /tmp/107843751
Running odo with args: [create nodejs nodejs --app myapp --project pisruzhzmt --git https://github.com/openshift/nodejs-ex] 
[odo]  •  Validating component  ...
[odo]  ✓  Validating component [355ms]
[odo] Please use `odo push` command to create the component with source deployed
[odo] 
Running odo with args: [url create myurl] 
[odo]  ✓  URL myurl created for component: nodejs
[odo] 
[odo] To create URL on the OpenShift Cluster, please use `odo push` 
Running odo with args: [push] 
[odo] Validation
[odo]  •  Validating component  ...
[odo]  ✓  Validating component [347ms]
[odo]  •  Checking component  ...
[odo]  ✓  Checking component [16ms]
[odo] 
[odo] Configuration changes
[odo]  •  Creating component  ...
[odo]  ✓  Initializing component
[odo]  •  Triggering build from git  ...
[odo]  ✓  Triggering build from git [79ms]
[odo]  •  Waiting for build to finish  ...
[odo]  ✗  Waiting for build to finish [30s]
[odo]  ✗  Failed to create component with name nodejs. Please use `odo config view` to view settings used to create component. Error: unable to wait for build nodejs-myapp-1 to run: timed out waiting for the condition
[odo] unable get build log nodejs-myapp-1
[odo] github.com/openshift/odo/pkg/occlient.(*Client).FollowBuildLog
[odo] 	/go/src/github.com/openshift/odo/pkg/occlient/occlient.go:1950
[odo] github.com/openshift/odo/pkg/component.Build
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:807
[odo] github.com/openshift/odo/pkg/component.CreateFromGit
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:165
[odo] github.com/openshift/odo/pkg/component.CreateComponent
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:397
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).createCmpIfNotExistsAndApplyCmpConfig
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:86
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).Push
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:159
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*PushOptions).Run
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:101
[odo] github.com/openshift/odo/pkg/odo/genericclioptions.GenericRun
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/genericclioptions/runnable.go:17
[odo] github.com/openshift/odo/pkg/odo/cli/component.NewCmdPush.func1
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:115
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:702
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).ExecuteC
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:783
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).Execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:736
[odo] main.main
[odo] 	/go/src/github.com/openshift/odo/cmd/odo/odo.go:65
[odo] runtime.main
[odo] 	/usr/local/go/src/runtime/proc.go:201
[odo] runtime.goexit
[odo] 	/usr/local/go/src/runtime/asm_amd64.s:1333
[odo] unable to follow logs for nodejs-myapp-1
[odo] github.com/openshift/odo/pkg/component.Build
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:808
[odo] github.com/openshift/odo/pkg/component.CreateFromGit
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:165
[odo] github.com/openshift/odo/pkg/component.CreateComponent
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:397
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).createCmpIfNotExistsAndApplyCmpConfig
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:86
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).Push
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:159
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*PushOptions).Run
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:101
[odo] github.com/openshift/odo/pkg/odo/genericclioptions.GenericRun
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/genericclioptions/runnable.go:17
[odo] github.com/openshift/odo/pkg/odo/cli/component.NewCmdPush.func1
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:115
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:702
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).ExecuteC
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:783
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).Execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:736
[odo] main.main
[odo] 	/go/src/github.com/openshift/odo/cmd/odo/odo.go:65
[odo] runtime.main
[odo] 	/usr/local/go/src/runtime/proc.go:201
[odo] runtime.goexit
[odo] 	/usr/local/go/src/runtime/asm_amd64.s:1333
[odo] failed to build component with args {Name:nodejs SourcePath:https://github.com/openshift/nodejs-ex SourceRef: SourceType:git ImageName:nodejs EnvVars:[] Ports:[8080/TCP] Resources:&ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{},} ApplicationName:myapp Wait:true StorageToBeMounted:map[] StdOut:0xc00000e018}
[odo] github.com/openshift/odo/pkg/component.CreateFromGit
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:166
[odo] github.com/openshift/odo/pkg/component.CreateComponent
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:397
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).createCmpIfNotExistsAndApplyCmpConfig
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:86
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).Push
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:159
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*PushOptions).Run
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:101
[odo] github.com/openshift/odo/pkg/odo/genericclioptions.GenericRun
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/genericclioptions/runnable.go:17
[odo] github.com/openshift/odo/pkg/odo/cli/component.NewCmdPush.func1
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:115
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:702
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).ExecuteC
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:783
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).Execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:736
[odo] main.main
[odo] 	/go/src/github.com/openshift/odo/cmd/odo/odo.go:65
[odo] runtime.main
[odo] 	/usr/local/go/src/runtime/proc.go:201
[odo] runtime.goexit
[odo] 	/usr/local/go/src/runtime/asm_amd64.s:1333
[odo] failed to create component with args {Name:nodejs SourcePath:https://github.com/openshift/nodejs-ex SourceRef: SourceType:git ImageName:nodejs EnvVars:[] Ports:[8080/TCP] Resources:&ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{},} ApplicationName:myapp Wait:true StorageToBeMounted:map[] StdOut:0xc00000e018}
[odo] github.com/openshift/odo/pkg/component.CreateComponent
[odo] 	/go/src/github.com/openshift/odo/pkg/component/component.go:401
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).createCmpIfNotExistsAndApplyCmpConfig
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:86
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*CommonPushOptions).Push
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/common_push.go:159
[odo] github.com/openshift/odo/pkg/odo/cli/component.(*PushOptions).Run
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:101
[odo] github.com/openshift/odo/pkg/odo/genericclioptions.GenericRun
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/genericclioptions/runnable.go:17
[odo] github.com/openshift/odo/pkg/odo/cli/component.NewCmdPush.func1
[odo] 	/go/src/github.com/openshift/odo/pkg/odo/cli/component/push.go:115
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:702
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).ExecuteC
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:783
[odo] github.com/openshift/odo/vendor/github.com/spf13/cobra.(*Command).Execute
[odo] 	/go/src/github.com/openshift/odo/vendor/github.com/spf13/cobra/command.go:736
[odo] main.main
[odo] 	/go/src/github.com/openshift/odo/cmd/odo/odo.go:65
[odo] runtime.main
[odo] 	/usr/local/go/src/runtime/proc.go:201
[odo] runtime.goexit
[odo] 	/usr/local/go/src/runtime/asm_amd64.s:1333
Setting current dir to: /go/src/github.com/openshift/odo/tests/integration
Deleting project: pisruzhzmt
Running odo with args: [project delete pisruzhzmt -f] 
[odo] This project contains the following applications, which will be deleted
[odo] Application myapp
[odo] This application has following components that will be deleted
[odo] component named nodejs
[odo] No services / could not get services
[odo]  •  Deleting project pisruzhzmt  ...
[odo]  ✓  Deleting project pisruzhzmt [6s]
[odo] Deleted project : pisruzhzmt
Deleting dir: /tmp/107843751
 • Failure [39.527 seconds]
odojsonoutput
/go/src/github.com/openshift/odo/tests/integration/json_test.go:16
  odo machine readable output on project nodejs is deployed
  /go/src/github.com/openshift/odo/tests/integration/json_test.go:85
    should be able to list url [It]
    /go/src/github.com/openshift/odo/tests/integration/json_test.go:94
     No future change is possible.  Bailing out early after 31.289s.
      
    Expected
        <int>: 1
    to match exit code:
        <int>: 0
     /go/src/github.com/openshift/odo/tests/helper/helper_run.go:29
@amitkrout amitkrout added the kind/bug Categorizes issue or PR as related to a bug. label Jul 29, 2019
@girishramnani
Copy link
Contributor

✗ Waiting for build to finish [30s] This line states that the timeout when this issue was opened was 30s which has been increased to 240s ( if I remember correctly ). Hence I don't think we will encounter this error again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants