odo: Unable to start component due to namespace termination
/kind bug
What versions of software are you using?
Operating System: all supported
Output of odo version
:
master
How did you run odo exactly?
Running cmd_devfile_url_test
test on CI
Actual behavior
Running odo with args [odo project create yhzmzsovke -w -v4]
[odo] • Waiting for project to come up ...
[odo] I0507 06:38:17.350862 1571 occlient.go:539] Status of creation of project yhzmzsovke is Active
[odo] I0507 06:38:17.350999 1571 occlient.go:544] Project yhzmzsovke now exists
[odo] I0507 06:38:17.444026 1571 occlient.go:579] Status of creation of service account &ServiceAccount{ObjectMeta:{default yhzmzsovke /api/v1/namespaces/yhzmzsovke/serviceaccounts/default 833cd7ef-dc12-40b8-a950-0c77961085da 86937 0 2020-05-07 06:38:16 +0000 UTC <nil> <nil> map[] map[] [] [] []},Secrets:[]ObjectReference{ObjectReference{Kind:,Namespace:,Name:default-token-nr8l4,UID:,APIVersion:,ResourceVersion:,FieldPath:,},ObjectReference{Kind:,Namespace:,Name:default-dockercfg-wm67j,UID:,APIVersion:,ResourceVersion:,FieldPath:,},},ImagePullSecrets:[]LocalObjectReference{LocalObjectReference{Name:default-dockercfg-wm67j,},},AutomountServiceAccountToken:nil,} is ready
[odo]
✓ Waiting for project to come up [1s]
[odo] ✓ Project 'yhzmzsovke' is ready for use
[odo] ✓ New project created and now using project: yhzmzsovke
Created dir: /tmp/364017334
Current working dir: /go/src/github.com/openshift/odo/tests/integration/devfile
Setting current dir to: /tmp/364017334
Running odo with args [odo preference set Experimental true]
[odo] Global preference was successfully updated
Running git with args [git clone https://github.com/che-samples/web-nodejs-sample.git /tmp/364017334/projectDir]
[git] Cloning into '/tmp/364017334/projectDir'...
Setting current dir to: /tmp/364017334/projectDir
Running odo with args [odo create nodejs --project yhzmzsovke lzelql]
[odo] Experimental mode is enabled, use at your own risk
[odo]
[odo] Validation
[odo] • Checking devfile compatibility ...
[odo]
✓ Checking devfile compatibility [140679ns]
[odo] • Validating devfile component ...
[odo]
✓ Validating devfile component [269828ns]
[odo]
[odo] Please use `odo push` command to create the component with source deployed
Running odo with args [odo url create oxuto --port 3000 --host ulwqx.com --now --ingress --devfile devfile.yaml]
[odo] ✓ URL oxuto created for component: lzelql
[odo]
[odo] Validation
[odo] • Validating the devfile ...
[odo]
✓ Validating the devfile [90192ns]
[odo]
[odo] Creating Kubernetes resources for component lzelql
[odo] ✗ Failed to start component with name lzelql.
[odo] Error: Failed to create the component: unable to create or update component: unable to create Deployment lzelql: deployments.apps "lzelql" is forbidden: unable to create new content in namespace bzcgbcptwl because it is being terminated
Deleting project: yhzmzsovke
Running odo with args [odo project delete yhzmzsovke -f]
[odo] • Deleting project yhzmzsovke ...
[odo]
✓ Deleting project yhzmzsovke [6s]
[odo] ✓ Deleted project : yhzmzsovke
Setting current dir to: /go/src/github.com/openshift/odo/tests/integration/devfile
Deleting dir: /tmp/364017334
• Failure [11.143 seconds]
odo devfile url command tests
/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_url_test.go:16
Creating urls
/go/src/github.com/openshift/odo/tests/integration/devfile/cmd_devfile_url_test.go:111
create with now flag should pass [It]
Expected behavior
namespace should not get terminated while starting the component and url should get created.
Any logs, error output, etc?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (11 by maintainers)
@amitkrout Yes. Like what
odo watch
andodo push
are doing. https://github.com/openshift/odo/blob/bfa9922b1b7b53b8a8411061c9d0e7df8ec0e250/pkg/odo/cli/component/watch.go#L111-L113https://github.com/openshift/odo/blob/bfa9922b1b7b53b8a8411061c9d0e7df8ec0e250/pkg/odo/cli/component/push.go#L73-L76