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

Breaking component create without exposing port #3882

Closed
prietyc123 opened this issue Sep 2, 2020 · 10 comments · Fixed by #3957
Closed

Breaking component create without exposing port #3882

prietyc123 opened this issue Sep 2, 2020 · 10 comments · Fixed by #3957
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)).

Comments

@prietyc123
Copy link
Contributor

prietyc123 commented Sep 2, 2020

/kind bug

What versions of software are you using?

Operating System:
macOS, win10

Output of odo version:
master

How did you run odo exactly?

$ git clone https://github.com/openshift/nodejs-ex frontend
Cloning into 'frontend'...
remote: Enumerating objects: 653, done.
remote: Total 653 (delta 0), reused 0 (delta 0), pack-reused 653
Receiving objects: 100% (653/653), 260.96 KiB | 292.00 KiB/s, done.
Resolving deltas: 100% (253/253), done.

$ cd frontend/

$ ls
README.md       openshift       server.js       views
helm            package.json    tests

$ odo create nodejs frontend 
✗  given component type doesn't expose any ports, please use --port flag to specify a port

$ odo preference view
PARAMETER             CURRENT_VALUE
UpdateNotification    
NamePrefix            
Timeout               
BuildTimeout          
PushTimeout           
Experimental          
PushTarget            

$ odo version
odo v1.2.6 (428a9ce42)

Server: https://api.sb.devcluster.openshift.com:6443
Kubernetes: v1.19.0-rc.2+b5dc585-dirty

Actual behavior

Not able to create component without port flag.

Expected behavior

component should get created.

Any logs, error output, etc?

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 2, 2020
@amitkrout
Copy link
Contributor

I can observe the same issue on linux platform too

@amitkrout
Copy link
Contributor

$ odo create nodejs frontend -v9
I0902 16:17:49.167304   22371 preference.go:196] The path for preference file is /Users/amit/.odo/preference.yaml
I0902 16:17:49.170776   22371 loader.go:375] Config loaded from file:  /Users/amit/go/src/github.com/openshift/odo/auth/kubeconfig
I0902 16:17:49.172556   22371 loader.go:375] Config loaded from file:  /Users/amit/go/src/github.com/openshift/odo/auth/kubeconfig
I0902 16:17:49.173203   22371 round_trippers.go:423] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: odo/v0.0.0 (darwin/amd64) kubernetes/$Format" -H "Authorization: Bearer sha256~7Y0sHTmpYtJdFSinCseQNveWNRfrcjeEsqEJ_vh9dXk" 'https://api.sb.devcluster.openshift.com:6443/apis/project.openshift.io/v1/projects/default'
I0902 16:17:50.238809   22371 round_trippers.go:443] GET https://api.sb.devcluster.openshift.com:6443/apis/project.openshift.io/v1/projects/default 200 OK in 1065 milliseconds
I0902 16:17:50.238838   22371 round_trippers.go:449] Response Headers:
I0902 16:17:50.238844   22371 round_trippers.go:452]     Audit-Id: 6d130931-841b-4dc2-be55-c4bf5cf63c54
I0902 16:17:50.238848   22371 round_trippers.go:452]     Cache-Control: no-cache, private
I0902 16:17:50.238854   22371 round_trippers.go:452]     Cache-Control: no-store
I0902 16:17:50.238857   22371 round_trippers.go:452]     Content-Type: application/json
I0902 16:17:50.238861   22371 round_trippers.go:452]     Date: Wed, 02 Sep 2020 10:47:50 GMT
I0902 16:17:50.238865   22371 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: 16f67d9e-c6ce-41de-8932-2a41bb0361b5
I0902 16:17:50.238868   22371 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: e23b90ed-e20f-44c8-89c2-132df1ff1aa0
I0902 16:17:50.238872   22371 round_trippers.go:452]     Content-Length: 974
I0902 16:17:50.239005   22371 request.go:1022] Response Body: {"kind":"Project","apiVersion":"project.openshift.io/v1","metadata":{"name":"default","selfLink":"/apis/project.openshift.io/v1/projects/default","uid":"5ecc9179-7551-4016-a21a-7d43365ad3df","resourceVersion":"10932","creationTimestamp":"2020-09-02T03:18:03Z","annotations":{"openshift.io/sa.scc.mcs":"s0:c17,c14","openshift.io/sa.scc.supplemental-groups":"1000300000/10000","openshift.io/sa.scc.uid-range":"1000300000/10000"},"managedFields":[{"manager":"kube-apiserver","operation":"Update","apiVersion":"v1","time":"2020-09-02T03:18:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:phase":{}}}},{"manager":"cluster-policy-controller","operation":"Update","apiVersion":"v1","time":"2020-09-02T03:32:58Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:openshift.io/sa.scc.mcs":{},"f:openshift.io/sa.scc.supplemental-groups":{},"f:openshift.io/sa.scc.uid-range":{}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}
I0902 16:17:50.239881   22371 preference.go:196] The path for preference file is /Users/amit/.odo/preference.yaml
I0902 16:17:50.240011   22371 round_trippers.go:423] curl -k -v -XGET  -H "Authorization: Bearer sha256~7Y0sHTmpYtJdFSinCseQNveWNRfrcjeEsqEJ_vh9dXk" -H "Accept: application/json, */*" -H "User-Agent: odo/v0.0.0 (darwin/amd64) kubernetes/$Format" 'https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1?timeout=32s'
I0902 16:17:50.524936   22371 round_trippers.go:443] GET https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1?timeout=32s 200 OK in 284 milliseconds
I0902 16:17:50.524965   22371 round_trippers.go:449] Response Headers:
I0902 16:17:50.524971   22371 round_trippers.go:452]     Cache-Control: no-cache, private
I0902 16:17:50.524976   22371 round_trippers.go:452]     Cache-Control: no-store
I0902 16:17:50.524981   22371 round_trippers.go:452]     Content-Type: application/json
I0902 16:17:50.524985   22371 round_trippers.go:452]     Date: Wed, 02 Sep 2020 10:47:50 GMT
I0902 16:17:50.524989   22371 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: 16f67d9e-c6ce-41de-8932-2a41bb0361b5
I0902 16:17:50.524994   22371 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: e23b90ed-e20f-44c8-89c2-132df1ff1aa0
I0902 16:17:50.524999   22371 round_trippers.go:452]     Content-Length: 1664
I0902 16:17:50.526969   22371 request.go:1022] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"image.openshift.io/v1","resources":[{"name":"images","singularName":"","namespaced":false,"kind":"Image","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"storageVersionHash":"FX/i8Tt+3Fc="},{"name":"imagesignatures","singularName":"","namespaced":false,"kind":"ImageSignature","verbs":["create","delete"]},{"name":"imagestreamimages","singularName":"","namespaced":true,"kind":"ImageStreamImage","verbs":["get"],"shortNames":["isimage"]},{"name":"imagestreamimports","singularName":"","namespaced":true,"kind":"ImageStreamImport","verbs":["create"]},{"name":"imagestreammappings","singularName":"","namespaced":true,"kind":"ImageStreamMapping","verbs":["create"]},{"name":"imagestreams","singularName":"","namespaced":true,"kind":"ImageStream","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["is"],"categories":["all"],"storageVersionHash":"mwmf9lCqOiA="},{"name":"imagestreams/layers","singularName":"","namespaced":true,"kind":"ImageStreamLayers","verbs":["get"]},{"name":"imagestreams/secrets","singularName":"","namespaced":true,"kind":"SecretList","verbs":["get"]},{"name":"imagestreams/status","singularName":"","namespaced":true,"kind":"ImageStream","verbs":["get","patch","update"]},{"name":"imagestreamtags","singularName":"","namespaced":true,"kind":"ImageStreamTag","verbs":["create","delete","get","list","patch","update"],"shortNames":["istag"]},{"name":"imagetags","singularName":"","namespaced":true,"kind":"ImageTag","verbs":["create","delete","get","list","patch","update"],"shortNames":["itag"]}]}
I0902 16:17:50.536137   22371 loader.go:375] Config loaded from file:  /Users/amit/go/src/github.com/openshift/odo/auth/kubeconfig
I0902 16:17:50.537910   22371 loader.go:375] Config loaded from file:  /Users/amit/go/src/github.com/openshift/odo/auth/kubeconfig
I0902 16:17:50.538564   22371 round_trippers.go:423] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: odo/v0.0.0 (darwin/amd64) kubernetes/$Format" -H "Authorization: Bearer sha256~7Y0sHTmpYtJdFSinCseQNveWNRfrcjeEsqEJ_vh9dXk" 'https://api.sb.devcluster.openshift.com:6443/apis/project.openshift.io/v1/projects/default'
I0902 16:17:50.834423   22371 round_trippers.go:443] GET https://api.sb.devcluster.openshift.com:6443/apis/project.openshift.io/v1/projects/default 200 OK in 295 milliseconds
I0902 16:17:50.834452   22371 round_trippers.go:449] Response Headers:
I0902 16:17:50.834460   22371 round_trippers.go:452]     Audit-Id: 8a0aa731-9d4a-422e-aec6-aa97331b956c
I0902 16:17:50.834469   22371 round_trippers.go:452]     Cache-Control: no-cache, private
I0902 16:17:50.834487   22371 round_trippers.go:452]     Cache-Control: no-store
I0902 16:17:50.834492   22371 round_trippers.go:452]     Content-Type: application/json
I0902 16:17:50.834497   22371 round_trippers.go:452]     Date: Wed, 02 Sep 2020 10:47:50 GMT
I0902 16:17:50.834501   22371 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: 16f67d9e-c6ce-41de-8932-2a41bb0361b5
I0902 16:17:50.834506   22371 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: e23b90ed-e20f-44c8-89c2-132df1ff1aa0
I0902 16:17:50.834511   22371 round_trippers.go:452]     Content-Length: 974
I0902 16:17:50.834805   22371 request.go:1022] Response Body: {"kind":"Project","apiVersion":"project.openshift.io/v1","metadata":{"name":"default","selfLink":"/apis/project.openshift.io/v1/projects/default","uid":"5ecc9179-7551-4016-a21a-7d43365ad3df","resourceVersion":"10932","creationTimestamp":"2020-09-02T03:18:03Z","annotations":{"openshift.io/sa.scc.mcs":"s0:c17,c14","openshift.io/sa.scc.supplemental-groups":"1000300000/10000","openshift.io/sa.scc.uid-range":"1000300000/10000"},"managedFields":[{"manager":"kube-apiserver","operation":"Update","apiVersion":"v1","time":"2020-09-02T03:18:03Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:phase":{}}}},{"manager":"cluster-policy-controller","operation":"Update","apiVersion":"v1","time":"2020-09-02T03:32:58Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:openshift.io/sa.scc.mcs":{},"f:openshift.io/sa.scc.supplemental-groups":{},"f:openshift.io/sa.scc.uid-range":{}}}}}]},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}
I0902 16:17:50.835058   22371 round_trippers.go:423] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: odo/v0.0.0 (darwin/amd64) kubernetes/$Format" -H "Authorization: Bearer sha256~7Y0sHTmpYtJdFSinCseQNveWNRfrcjeEsqEJ_vh9dXk" 'https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1/namespaces/default/imagestreams/nodejs'
I0902 16:17:51.129440   22371 round_trippers.go:443] GET https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1/namespaces/default/imagestreams/nodejs 404 Not Found in 294 milliseconds
I0902 16:17:51.129461   22371 round_trippers.go:449] Response Headers:
I0902 16:17:51.129466   22371 round_trippers.go:452]     Audit-Id: 8902f285-ff46-4646-8d25-832b5e46812d
I0902 16:17:51.129470   22371 round_trippers.go:452]     Cache-Control: no-cache, private
I0902 16:17:51.129473   22371 round_trippers.go:452]     Cache-Control: no-store
I0902 16:17:51.129478   22371 round_trippers.go:452]     Content-Type: application/json
I0902 16:17:51.129482   22371 round_trippers.go:452]     Date: Wed, 02 Sep 2020 10:47:50 GMT
I0902 16:17:51.129485   22371 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: 16f67d9e-c6ce-41de-8932-2a41bb0361b5
I0902 16:17:51.129489   22371 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: e23b90ed-e20f-44c8-89c2-132df1ff1aa0
I0902 16:17:51.129492   22371 round_trippers.go:452]     Content-Length: 244
I0902 16:17:51.129526   22371 request.go:1022] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"imagestreams.image.openshift.io \"nodejs\" not found","reason":"NotFound","details":{"name":"nodejs","group":"image.openshift.io","kind":"imagestreams"},"code":404}
I0902 16:17:51.129916   22371 round_trippers.go:423] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: odo/v0.0.0 (darwin/amd64) kubernetes/$Format" -H "Authorization: Bearer sha256~7Y0sHTmpYtJdFSinCseQNveWNRfrcjeEsqEJ_vh9dXk" 'https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1/namespaces/openshift/imagestreams/nodejs'
I0902 16:17:51.422455   22371 round_trippers.go:443] GET https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1/namespaces/openshift/imagestreams/nodejs 200 OK in 292 milliseconds
I0902 16:17:51.422483   22371 round_trippers.go:449] Response Headers:
I0902 16:17:51.422491   22371 round_trippers.go:452]     Audit-Id: 19c00323-9b78-45dc-bb02-9b6ac1f8a14e
I0902 16:17:51.422496   22371 round_trippers.go:452]     Cache-Control: no-cache, private
I0902 16:17:51.422500   22371 round_trippers.go:452]     Cache-Control: no-store
I0902 16:17:51.422504   22371 round_trippers.go:452]     Content-Type: application/json
I0902 16:17:51.422507   22371 round_trippers.go:452]     Date: Wed, 02 Sep 2020 10:47:51 GMT
I0902 16:17:51.422513   22371 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: 16f67d9e-c6ce-41de-8932-2a41bb0361b5
I0902 16:17:51.422517   22371 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: e23b90ed-e20f-44c8-89c2-132df1ff1aa0
I0902 16:17:51.426509   22371 request.go:1022] Response Body: {"kind":"ImageStream","apiVersion":"image.openshift.io/v1","metadata":{"name":"nodejs","namespace":"openshift","selfLink":"/apis/image.openshift.io/v1/namespaces/openshift/imagestreams/nodejs","uid":"ec23d160-e326-457b-8035-ddd69754e5ad","resourceVersion":"21792","generation":2,"creationTimestamp":"2020-09-02T03:36:51Z","labels":{"samples.operator.openshift.io/managed":"true"},"annotations":{"openshift.io/display-name":"Node.js","openshift.io/image.dockerRepositoryCheck":"2020-09-02T03:38:58Z","samples.operator.openshift.io/version":"4.6.0-0.nightly-2020-09-01-070508"},"managedFields":[{"manager":"cluster-samples-operator","operation":"Update","apiVersion":"image.openshift.io/v1","time":"2020-09-02T03:36:51Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:openshift.io/display-name":{},"f:samples.operator.openshift.io/version":{}},"f:labels":{".":{},"f:samples.operator.openshift.io/managed":{}}},"f:spec":{"f:tags":{".":{},"k:{\"name\":\"10\"}":{".":{},"f:annotations":{".":{},"f:description":{},"f:iconClass":{},"f:openshift.io/display-name":{},"f:openshift.io/provider-display-name":{},"f:sampleRepo":{},"f:tags":{},"f:version":{}},"f:from":{".":{},"f:kind":{},"f:name":{}},"f:generation":{},"f:importPolicy":{},"f:name":{},"f:referencePolicy":{".":{},"f:type":{}}},"k:{\"name\":\"10-ubi7\"}":{".":{},"f:annotations":{".":{},"f:description":{},"f:iconClass":{},"f:openshift.io/display-name":{},"f:openshift.io/provider-display-name":{},"f:sampleRepo":{},"f:tags":{},"f:version":{}},"f:from":{".":{},"f:kind":{},"f:name":{}},"f:generation":{},"f:importPolicy":{},"f:name":{},"f:referencePolicy":{".":{},"f:type":{}}},"k:{\"name\":\"10-ubi8\"}":{".":{},"f:annotations":{".":{},"f:description":{},"f:iconClass":{},"f:openshift.io/display-name":{},"f:openshift.io/provider-display-name":{},"f:sampleRepo":{},"f:tags":{},"f:version":{}},"f:from":{".":{},"f:kind":{},"f:name":{}},"f:generation":{},"f:importPolicy":{},"f:name":{},"f:referencePolicy":{".":{},"f:type":{}}},"k:{\"name\":\"12\"}":{".":{},"f:annotations":{".":{},"f:description":{},"f:iconClass":{},"f:openshift.io/display-name":{},"f:openshift.io/provider-display-name":{},"f:sampleRepo":{},"f:tags":{},"f:version":{}},"f:from":{".":{},"f:kind":{},"f:name":{}},"f:generation":{},"f:importPolicy":{},"f:name":{},"f:referencePolicy":{".":{},"f:type":{}}},"k:{\"name\":\"12-ubi7\"}":{".":{},"f:annotations":{".":{},"f:description":{},"f:iconClass":{},"f:openshift.io/display-name":{},"f:openshift.io/provider-display-name":{},"f:sampleRepo":{},"f:tags":{},"f:version":{}},"f:from":{".":{},"f:kind":{},"f:name":{}},"f:generation":{},"f:importPolicy":{},"f:name":{},"f:referencePolicy":{".":{},"f:type":{}}},"k:{\"name\":\"12-ubi8\"}":{".":{},"f:annotations":{".":{},"f:description":{},"f:iconClass":{},"f:openshift.io/display-name":{},"f:openshift.io/provider-display-name":{},"f:sampleRepo":{},"f:tags":{},"f:version":{}},"f:from":{".":{},"f:kind":{},"f:name":{}},"f:generation":{},"f:importPolicy":{},"f:name":{},"f:referencePolicy":{".":{},"f:type":{}}},"k:{\"name\":\"latest\"}":{".":{},"f:annotations":{".":{},"f:description":{},"f:iconClass":{},"f:openshift.io/display-name":{},"f:openshift.io/provider-display-name":{},"f:sampleRepo":{},"f:supports":{},"f:tags":{}},"f:from":{".":{},"f:kind":{},"f:name":{}},"f:generation":{},"f:importPolicy":{},"f:name":{},"f:referencePolicy":{".":{},"f:type":{}}}}}}}]},"spec":{"lookupPolicy":{"local":false},"tags":[{"name":"10","annotations":{"description":"Build and run Node.js 10 applications on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/10/README.md.","iconClass":"icon-nodejs","openshift.io/display-name":"Node.js 10","openshift.io/provider-display-name":"Red Hat, Inc.","sampleRepo":"https://github.com/sclorg/nodejs-ex.git","tags":"builder,nodejs,hidden","version":"10"},"from":{"kind":"DockerImage","name":"registry.redhat.io/rhscl/nodejs-10-rhel7:latest"},"generation":2,"importPolicy":{},"referencePolicy":{"type":"Local"}},{"name":"10-ubi7","annotations":{"description":"Build and run Node.js 10 applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/10/README.md.","iconClass":"icon-nodejs","openshift.io/display-name":"Node.js 10 (UBI 7)","openshift.io/provider-display-name":"Red Hat, Inc.","sampleRepo":"https://github.com/sclorg/nodejs-ex.git","tags":"builder,nodejs","version":"10"},"from":{"kind":"DockerImage","name":"registry.redhat.io/ubi7/nodejs-10:latest"},"generation":2,"importPolicy":{},"referencePolicy":{"type":"Local"}},{"name":"10-ubi8","annotations":{"description":"Build and run Node.js 10 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/10/README.md.","iconClass":"icon-nodejs","openshift.io/display-name":"Node.js 10 (UBI 8)","openshift.io/provider-display-name":"Red Hat, Inc.","sampleRepo":"https://github.com/sclorg/nodejs-ex.git","tags":"builder,nodejs","version":"10"},"from":{"kind":"DockerImage","name":"registry.redhat.io/ubi8/nodejs-10:latest"},"generation":2,"importPolicy":{},"referencePolicy":{"type":"Local"}},{"name":"12","annotations":{"description":"Build and run Node.js 12 applications on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.","iconClass":"icon-nodejs","openshift.io/display-name":"Node.js 12","openshift.io/provider-display-name":"Red Hat, Inc.","sampleRepo":"https://github.com/sclorg/nodejs-ex.git","tags":"builder,nodejs,hidden","version":"12"},"from":{"kind":"DockerImage","name":"registry.redhat.io/rhscl/nodejs-12-rhel7:latest"},"generation":2,"importPolicy":{},"referencePolicy":{"type":"Local"}},{"name":"12-ubi7","annotations":{"description":"Build and run Node.js 12 applications on UBI 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.","iconClass":"icon-nodejs","openshift.io/display-name":"Node.js 12 (UBI 7)","openshift.io/provider-display-name":"Red Hat, Inc.","sampleRepo":"https://github.com/sclorg/nodejs-ex.git","tags":"builder,nodejs","version":"12"},"from":{"kind":"DockerImage","name":"registry.redhat.io/ubi7/nodejs-12:latest"},"generation":2,"importPolicy":{},"referencePolicy":{"type":"Local"}},{"name":"12-ubi8","annotations":{"description":"Build and run Node.js 12 applications on UBI 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.","iconClass":"icon-nodejs","openshift.io/display-name":"Node.js 12 (UBI 8)","openshift.io/provider-display-name":"Red Hat, Inc.","sampleRepo":"https://github.com/sclorg/nodejs-ex.git","tags":"builder,nodejs","version":"12"},"from":{"kind":"DockerImage","name":"registry.redhat.io/ubi8/nodejs-12:latest"},"generation":2,"importPolicy":{},"referencePolicy":{"type":"Local"}},{"name":"latest","annotations":{"description":"Build and run Node.js applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of Node.js available on OpenShift, including major version updates.","iconClass":"icon-nodejs","openshift.io/display-name":"Node.js (Latest)","openshift.io/provider-display-name":"Red Hat, Inc.","sampleRepo":"https://github.com/sclorg/nodejs-ex.git","supports":"nodejs","tags":"builder,nodejs"},"from":{"kind":"ImageStreamTag","name":"12-ubi8"},"generation":1,"importPolicy":{},"referencePolicy":{"type":"Local"}}]},"status":{"dockerImageRepository":"image-registry.openshift-image-registry.svc:5000/openshift/nodejs","tags":[{"tag":"10","items":[{"created":"2020-09-02T03:38:58Z","dockerImageReference":"registry.redhat.io/rhscl/nodejs-10-rhel7@sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69","image":"sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69","generation":2}]},{"tag":"10-ubi7","items":[{"created":"2020-09-02T03:38:58Z","dockerImageReference":"registry.redhat.io/ubi7/nodejs-10@sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69","image":"sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69","generation":2}]},{"tag":"10-ubi8","items":[{"created":"2020-09-02T03:38:58Z","dockerImageReference":"registry.redhat.io/ubi8/nodejs-10@sha256:f6244b9028c0ace789abba6f5a36d7a824f1585c559b50be3a31e7b1d7f71793","image":"sha256:f6244b9028c0ace789abba6f5a36d7a824f1585c559b50be3a31e7b1d7f71793","generation":2}]},{"tag":"12","items":[{"created":"2020-09-02T03:38:58Z","dockerImageReference":"registry.redhat.io/rhscl/nodejs-12-rhel7@sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482","image":"sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482","generation":2}]},{"tag":"12-ubi7","items":[{"created":"2020-09-02T03:38:58Z","dockerImageReference":"registry.redhat.io/ubi7/nodejs-12@sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482","image":"sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482","generation":2}]},{"tag":"12-ubi8","items":[{"created":"2020-09-02T03:38:58Z","dockerImageReference":"registry.redhat.io/ubi8/nodejs-12@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","image":"sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","generation":2}]},{"tag":"latest","items":[{"created":"2020-09-02T03:38:58Z","dockerImageReference":"registry.redhat.io/ubi8/nodejs-12@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","image":"sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","generation":2}]}]}}
I0902 16:17:51.434818   22371 occlient.go:797] Found exact image tag match for nodejs:latest
I0902 16:17:51.434892   22371 round_trippers.go:423] curl -k -v -XGET  -H "Accept: application/json, */*" -H "User-Agent: odo/v0.0.0 (darwin/amd64) kubernetes/$Format" -H "Authorization: Bearer sha256~7Y0sHTmpYtJdFSinCseQNveWNRfrcjeEsqEJ_vh9dXk" 'https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1/namespaces/openshift/imagestreamimages/nodejs@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c'
I0902 16:17:51.728013   22371 round_trippers.go:443] GET https://api.sb.devcluster.openshift.com:6443/apis/image.openshift.io/v1/namespaces/openshift/imagestreamimages/nodejs@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c 200 OK in 293 milliseconds
I0902 16:17:51.728090   22371 round_trippers.go:449] Response Headers:
I0902 16:17:51.728099   22371 round_trippers.go:452]     Audit-Id: 6508b1de-6dbe-4a90-94b6-0f15374b4006
I0902 16:17:51.728105   22371 round_trippers.go:452]     Cache-Control: no-cache, private
I0902 16:17:51.728109   22371 round_trippers.go:452]     Cache-Control: no-store
I0902 16:17:51.728113   22371 round_trippers.go:452]     Content-Type: application/json
I0902 16:17:51.728116   22371 round_trippers.go:452]     Date: Wed, 02 Sep 2020 10:47:51 GMT
I0902 16:17:51.728120   22371 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: 16f67d9e-c6ce-41de-8932-2a41bb0361b5
I0902 16:17:51.728124   22371 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: e23b90ed-e20f-44c8-89c2-132df1ff1aa0
I0902 16:17:51.728325   22371 request.go:1022] Response Body: {"kind":"ImageStreamImage","apiVersion":"image.openshift.io/v1","metadata":{"name":"nodejs@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","namespace":"openshift","selfLink":"/apis/image.openshift.io/v1/namespaces/openshift/imagestreamimages/nodejs@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","creationTimestamp":"2020-09-02T03:38:58Z","annotations":{"openshift.io/display-name":"Node.js","openshift.io/image.dockerRepositoryCheck":"2020-09-02T03:38:58Z","samples.operator.openshift.io/version":"4.6.0-0.nightly-2020-09-01-070508"}},"image":{"metadata":{"name":"sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","uid":"44474d6c-2117-4346-89cf-f046310ce498","resourceVersion":"21791","creationTimestamp":"2020-09-02T03:38:58Z","annotations":{"image.openshift.io/dockerLayersOrder":"ascending"}},"dockerImageReference":"registry.redhat.io/ubi8/nodejs-12@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c","dockerImageMetadata":{"kind":"DockerImage","apiVersion":"1.0","Id":"sha256:d23c54eb789c247b3fe58c4e62f74e1b8cef5370b9b529bc43adcf24ec41189d","Created":"2020-07-23T05:55:42Z","Container":"54bfdabeada3b70898caae24b153367762fba7182105a636561b5138f0b9d956","ContainerConfig":{"Hostname":"54bfdabeada3","Env":["PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","container=oci","SUMMARY=Base image with essential libraries and tools used as a base for builder images like perl, python, ruby, etc.","DESCRIPTION=The s2i-base image, being built upon s2i-core, provides any images layered on top of it with all the tools needed to use source-to-image functionality. Additionally, s2i-base also contains various libraries needed for it to serve as a base for other builder images, like s2i-python or s2i-ruby.","STI_SCRIPTS_URL=image:///usr/libexec/s2i","STI_SCRIPTS_PATH=/usr/libexec/s2i","APP_ROOT=/opt/app-root","HOME=/opt/app-root/src","PLATFORM=el8","NODEJS_VER=10"],"Cmd":["#(imagebuilder)\nsleep 86400"],"Image":"sha256:abfa4ab9f12a3d501cb0f1bb697c1616fec65935fdf9ff1682cdbcb4245de55c","WorkingDir":"/opt/app-root/src","Entrypoint":["/bin/sh","-c"],"Labels":{"architecture":"x86_64","build-date":"2020-07-22T16:03:38.058198","com.redhat.build-host":"cpt-1008.osbs.prod.upshift.rdu2.redhat.com","com.redhat.component":"s2i-base-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","description":"The s2i-base image, being built upon s2i-core, provides any images layered on top of it with all the tools needed to use source-to-image functionality. Additionally, s2i-base also contains various libraries needed for it to serve as a base for other builder images, like s2i-python or s2i-ruby.","distribution-scope":"public","io.k8s.description":"The s2i-base image, being built upon s2i-core, provides any images layered on top of it with all the tools needed to use source-to-image functionality. Additionally, s2i-base also contains various libraries needed for it to serve as a base for other builder images, like s2i-python or s2i-ruby.","io.k8s.display-name":"s2i base","io.openshift.expose-services":"","io.openshift.s2i.scripts-url":"image:///usr/libexec/s2i","io.openshift.tags":"base rhel8","io.s2i.scripts-url":"image:///usr/libexec/s2i","maintainer":"Red Hat, Inc.","name":"ubi8/s2i-base","release":"185","summary":"Base image with essential libraries and tools used as a base for builder images like perl, python, ruby, etc.","url":"https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/s2i-base/images/1-185","vcs-ref":"be21e5ddc9c07ed78b099403a77afef0ffbfbf86","vcs-type":"git","vendor":"Red Hat, Inc.","version":"1"}},"DockerVersion":"1.13.1","Config":{"Hostname":"eba898107bd8","User":"1001","ExposedPorts":{"8080/tcp":{}},"Env":["NODEJS_VERSION=12","NPM_RUN=start","NAME=nodejs","NPM_CONFIG_PREFIX=/opt/app-root/src/.npm-global","PATH=/opt/app-root/src/node_modules/.bin/:/opt/app-root/src/.npm-global/bin/:/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","SUMMARY=Platform for building and running Node.js 12 applications","DESCRIPTION=Node.js 12 available as container is a base platform for building and running various Node.js 12 applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.","container=oci","STI_SCRIPTS_URL=image:///usr/libexec/s2i","STI_SCRIPTS_PATH=/usr/libexec/s2i","APP_ROOT=/opt/app-root","HOME=/opt/app-root/src","PLATFORM=el8","NODEJS_VER=10"],"Cmd":["/bin/sh","-c","$STI_SCRIPTS_PATH/usage"],"WorkingDir":"/opt/app-root/src","Entrypoint":["container-entrypoint"],"Labels":{"architecture":"x86_64","build-date":"2020-07-23T05:54:39.075680","com.redhat.build-host":"cpt-1004.osbs.prod.upshift.rdu2.redhat.com","com.redhat.component":"nodejs-12-container","com.redhat.deployments-dir":"/opt/app-root/src","com.redhat.dev-mode":"DEV_MODE:false","com.redhat.dev-mode.port":"DEBUG_PORT:5858","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","description":"Node.js 12 available as container is a base platform for building and running various Node.js 12 applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.","distribution-scope":"public","help":"For more information visit https://github.com/sclorg/s2i-nodejs-container","io.k8s.description":"Node.js 12 available as container is a base platform for building and running various Node.js 12 applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.","io.k8s.display-name":"Node.js 12","io.openshift.expose-services":"8080:http","io.openshift.s2i.scripts-url":"image:///usr/libexec/s2i","io.openshift.tags":"builder,nodejs,nodejs12","io.s2i.scripts-url":"image:///usr/libexec/s2i","maintainer":"SoftwareCollections.org \u003csclorg@redhat.com\u003e","name":"ubi8/nodejs-12","release":"52","summary":"Platform for building and running Node.js 12 applications","url":"https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/nodejs-12/images/1-52","usage":"s2i build \u003cSOURCE-REPOSITORY\u003e ubi8/nodejs-12:latest \u003cAPP-NAME\u003e","vcs-ref":"a6b3970d86fb885d9c20445676a2f31aa9bedf0b","vcs-type":"git","vendor":"Red Hat, Inc.","version":"1"}},"Architecture":"amd64","Size":277905910},"dockerImageMetadataVersion":"1.0","dockerImageLayers":[{"name":"sha256:77c58f19bd6e67185938abb6bbb6ec229e07a5e607453904294d982de141d2f0","size":73964020,"mediaType":"application/vnd.docker.image.rootfs.diff.tar.gzip"},{"name":"sha256:47db82df7f3f4393c1f19c362a2db2c47ca049b6fb20bef041dfc9bdb12a4504","size":1718,"mediaType":"application/vnd.docker.image.rootfs.diff.tar.gzip"},{"name":"sha256:71391dc11a78542160544b68e45bc123ff55a2e84aeb6fa99b672d75765bc2f8","size":16717830,"mediaType":"application/vnd.docker.image.rootfs.diff.tar.gzip"},{"name":"sha256:6cc5487eb078291c64e0539c6d57546606b3936b71eabc7eec7960d069927ba4","size":135727160,"mediaType":"application/vnd.docker.image.rootfs.diff.tar.gzip"},{"name":"sha256:6d6438589cd483270636e0a53e0827953e083bafb73a868144427457222be977","size":51488123,"mediaType":"application/vnd.docker.image.rootfs.diff.tar.gzip"}],"dockerImageManifestMediaType":"application/vnd.docker.distribution.manifest.v2+json"}}
 ✗  given component type doesn't expose any ports, please use --port flag to specify a port

@prietyc123 prietyc123 added the priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)). label Sep 2, 2020
@prietyc123
Copy link
Contributor Author

prietyc123 commented Sep 2, 2020

Verifying pr #3705 on windows and hitting the same failure with regular commands cc_ @cdrage

@girishramnani
Copy link
Contributor

this might be the image stream

{
  "kind": "ImageStreamImage",
  "apiVersion": "image.openshift.io/v1",
  "metadata": {
    "name": "nodejs@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c",
    "namespace": "openshift",
    "selfLink": "/apis/image.openshift.io/v1/namespaces/openshift/imagestreamimages/nodejs@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c",
    "creationTimestamp": "2020-09-02T03:38:58Z",
    "annotations": {
      "openshift.io/display-name": "Node.js",
      "openshift.io/image.dockerRepositoryCheck": "2020-09-02T03:38:58Z",
      "samples.operator.openshift.io/version": "4.6.0-0.nightly-2020-09-01-070508"
    }
  },
  "image": {
    "metadata": {
      "name": "sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c",
      "uid": "44474d6c-2117-4346-89cf-f046310ce498",
      "resourceVersion": "21791",
      "creationTimestamp": "2020-09-02T03:38:58Z",
      "annotations": {
        "image.openshift.io/dockerLayersOrder": "ascending"
      }
    },
    "dockerImageReference": "registry.redhat.io/ubi8/nodejs-12@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c",
    "dockerImageMetadata": {
      "kind": "DockerImage",
      "apiVersion": "1.0",
      "Id": "sha256:d23c54eb789c247b3fe58c4e62f74e1b8cef5370b9b529bc43adcf24ec41189d",
      "Created": "2020-07-23T05:55:42Z",
      "Container": "54bfdabeada3b70898caae24b153367762fba7182105a636561b5138f0b9d956",
      "ContainerConfig": {
        "Hostname": "54bfdabeada3",
        "Env": [
          "PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
          "container=oci",
          "SUMMARY=Base image with essential libraries and tools used as a base for builder images like perl, python, ruby, etc.",
          "DESCRIPTION=The s2i-base image, being built upon s2i-core, provides any images layered on top of it with all the tools needed to use source-to-image functionality. Additionally, s2i-base also contains various libraries needed for it to serve as a base for other builder images, like s2i-python or s2i-ruby.",
          "STI_SCRIPTS_URL=image:///usr/libexec/s2i",
          "STI_SCRIPTS_PATH=/usr/libexec/s2i",
          "APP_ROOT=/opt/app-root",
          "HOME=/opt/app-root/src",
          "PLATFORM=el8",
          "NODEJS_VER=10"
        ],
        "Cmd": [
          "#(imagebuilder)\nsleep 86400"
        ],
        "Image": "sha256:abfa4ab9f12a3d501cb0f1bb697c1616fec65935fdf9ff1682cdbcb4245de55c",
        "WorkingDir": "/opt/app-root/src",
        "Entrypoint": [
          "/bin/sh",
          "-c"
        ],
        "Labels": {
          "architecture": "x86_64",
          "build-date": "2020-07-22T16:03:38.058198",
          "com.redhat.build-host": "cpt-1008.osbs.prod.upshift.rdu2.redhat.com",
          "com.redhat.component": "s2i-base-container",
          "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
          "description": "The s2i-base image, being built upon s2i-core, provides any images layered on top of it with all the tools needed to use source-to-image functionality. Additionally, s2i-base also contains various libraries needed for it to serve as a base for other builder images, like s2i-python or s2i-ruby.",
          "distribution-scope": "public",
          "io.k8s.description": "The s2i-base image, being built upon s2i-core, provides any images layered on top of it with all the tools needed to use source-to-image functionality. Additionally, s2i-base also contains various libraries needed for it to serve as a base for other builder images, like s2i-python or s2i-ruby.",
          "io.k8s.display-name": "s2i base",
          "io.openshift.expose-services": "",
          "io.openshift.s2i.scripts-url": "image:///usr/libexec/s2i",
          "io.openshift.tags": "base rhel8",
          "io.s2i.scripts-url": "image:///usr/libexec/s2i",
          "maintainer": "Red Hat, Inc.",
          "name": "ubi8/s2i-base",
          "release": "185",
          "summary": "Base image with essential libraries and tools used as a base for builder images like perl, python, ruby, etc.",
          "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/s2i-base/images/1-185",
          "vcs-ref": "be21e5ddc9c07ed78b099403a77afef0ffbfbf86",
          "vcs-type": "git",
          "vendor": "Red Hat, Inc.",
          "version": "1"
        }
      },
      "DockerVersion": "1.13.1",
      "Config": {
        "Hostname": "eba898107bd8",
        "User": "1001",
        "ExposedPorts": {
          "8080/tcp": {}
        },
        "Env": [
          "NODEJS_VERSION=12",
          "NPM_RUN=start",
          "NAME=nodejs",
          "NPM_CONFIG_PREFIX=/opt/app-root/src/.npm-global",
          "PATH=/opt/app-root/src/node_modules/.bin/:/opt/app-root/src/.npm-global/bin/:/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
          "SUMMARY=Platform for building and running Node.js 12 applications",
          "DESCRIPTION=Node.js 12 available as container is a base platform for building and running various Node.js 12 applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.",
          "container=oci",
          "STI_SCRIPTS_URL=image:///usr/libexec/s2i",
          "STI_SCRIPTS_PATH=/usr/libexec/s2i",
          "APP_ROOT=/opt/app-root",
          "HOME=/opt/app-root/src",
          "PLATFORM=el8",
          "NODEJS_VER=10"
        ],
        "Cmd": [
          "/bin/sh",
          "-c",
          "$STI_SCRIPTS_PATH/usage"
        ],
        "WorkingDir": "/opt/app-root/src",
        "Entrypoint": [
          "container-entrypoint"
        ],
        "Labels": {
          "architecture": "x86_64",
          "build-date": "2020-07-23T05:54:39.075680",
          "com.redhat.build-host": "cpt-1004.osbs.prod.upshift.rdu2.redhat.com",
          "com.redhat.component": "nodejs-12-container",
          "com.redhat.deployments-dir": "/opt/app-root/src",
          "com.redhat.dev-mode": "DEV_MODE:false",
          "com.redhat.dev-mode.port": "DEBUG_PORT:5858",
          "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
          "description": "Node.js 12 available as container is a base platform for building and running various Node.js 12 applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.",
          "distribution-scope": "public",
          "help": "For more information visit https://github.com/sclorg/s2i-nodejs-container",
          "io.k8s.description": "Node.js 12 available as container is a base platform for building and running various Node.js 12 applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.",
          "io.k8s.display-name": "Node.js 12",
          "io.openshift.expose-services": "8080:http",
          "io.openshift.s2i.scripts-url": "image:///usr/libexec/s2i",
          "io.openshift.tags": "builder,nodejs,nodejs12",
          "io.s2i.scripts-url": "image:///usr/libexec/s2i",
          "maintainer": "SoftwareCollections.org <sclorg@redhat.com>",
          "name": "ubi8/nodejs-12",
          "release": "52",
          "summary": "Platform for building and running Node.js 12 applications",
          "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/nodejs-12/images/1-52",
          "usage": "s2i build <SOURCE-REPOSITORY> ubi8/nodejs-12:latest <APP-NAME>",
          "vcs-ref": "a6b3970d86fb885d9c20445676a2f31aa9bedf0b",
          "vcs-type": "git",
          "vendor": "Red Hat, Inc.",
          "version": "1"
        }
      },
      "Architecture": "amd64",
      "Size": 277905910
    },
    "dockerImageMetadataVersion": "1.0",
    "dockerImageLayers": [
      {
        "name": "sha256:77c58f19bd6e67185938abb6bbb6ec229e07a5e607453904294d982de141d2f0",
        "size": 73964020,
        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip"
      },
      {
        "name": "sha256:47db82df7f3f4393c1f19c362a2db2c47ca049b6fb20bef041dfc9bdb12a4504",
        "size": 1718,
        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip"
      },
      {
        "name": "sha256:71391dc11a78542160544b68e45bc123ff55a2e84aeb6fa99b672d75765bc2f8",
        "size": 16717830,
        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip"
      },
      {
        "name": "sha256:6cc5487eb078291c64e0539c6d57546606b3936b71eabc7eec7960d069927ba4",
        "size": 135727160,
        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip"
      },
      {
        "name": "sha256:6d6438589cd483270636e0a53e0827953e083bafb73a868144427457222be977",
        "size": 51488123,
        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip"
      }
    ],
    "dockerImageManifestMediaType": "application/vnd.docker.distribution.manifest.v2+json"
  }
}

@prietyc123
Copy link
Contributor Author

prietyc123 commented Sep 2, 2020

Running on 4.6 cluster

$ odo create nodejs frontend 
 ✗  given component type doesn't expose any ports, please use --port flag to specify a port

$ oc -n openshift get is nodejs -o yaml
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
  annotations:
    openshift.io/display-name: Node.js
    openshift.io/image.dockerRepositoryCheck: "2020-09-02T13:39:06Z"
    samples.operator.openshift.io/version: 4.6.0-0.nightly-2020-09-01-070508
  name: nodejs
  namespace: openshift
  resourceVersion: "19049"
  selfLink: /apis/image.openshift.io/v1/namespaces/openshift/imagestreams/nodejs
  uid: f244a3a8-637d-4b95-9a46-459a958bff6f
spec:
  lookupPolicy:
    local: false
  tags:
  - annotations:
      description: Build and run Node.js 10 applications on RHEL 7. For more information
        about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/10/README.md.
      iconClass: icon-nodejs
      openshift.io/display-name: Node.js 10
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nodejs-ex.git
      tags: builder,nodejs,hidden
      version: "10"
    from:
      kind: DockerImage
      name: registry.redhat.io/rhscl/nodejs-10-rhel7:latest
    generation: 2
    importPolicy: {}
    name: "10"
    referencePolicy:
      type: Local
  - annotations:
      description: Build and run Node.js 10 applications on UBI 7. For more information
        about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/10/README.md.
      iconClass: icon-nodejs
      openshift.io/display-name: Node.js 10 (UBI 7)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nodejs-ex.git
      tags: builder,nodejs
      version: "10"
    from:
      kind: DockerImage
      name: registry.redhat.io/ubi7/nodejs-10:latest
    generation: 2
    importPolicy: {}
    name: 10-ubi7
    referencePolicy:
      type: Local
  - annotations:
      description: Build and run Node.js 10 applications on UBI 8. For more information
        about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/10/README.md.
      iconClass: icon-nodejs
      openshift.io/display-name: Node.js 10 (UBI 8)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nodejs-ex.git
      tags: builder,nodejs
      version: "10"
    from:
      kind: DockerImage
      name: registry.redhat.io/ubi8/nodejs-10:latest
    generation: 2
    importPolicy: {}
    name: 10-ubi8
    referencePolicy:
      type: Local
  - annotations:
      description: Build and run Node.js 12 applications on RHEL 7. For more information
        about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.
      iconClass: icon-nodejs
      openshift.io/display-name: Node.js 12
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nodejs-ex.git
      tags: builder,nodejs,hidden
      version: "12"
    from:
      kind: DockerImage
      name: registry.redhat.io/rhscl/nodejs-12-rhel7:latest
    generation: 2
    importPolicy: {}
    name: "12"
    referencePolicy:
      type: Local
  - annotations:
      description: Build and run Node.js 12 applications on UBI 7. For more information
        about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.
      iconClass: icon-nodejs
      openshift.io/display-name: Node.js 12 (UBI 7)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nodejs-ex.git
      tags: builder,nodejs
      version: "12"
    from:
      kind: DockerImage
      name: registry.redhat.io/ubi7/nodejs-12:latest
    generation: 2
    importPolicy: {}
    name: 12-ubi7
    referencePolicy:
      type: Local
  - annotations:
      description: Build and run Node.js 12 applications on UBI 8. For more information
        about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.
      iconClass: icon-nodejs
      openshift.io/display-name: Node.js 12 (UBI 8)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nodejs-ex.git
      tags: builder,nodejs
      version: "12"
    from:
      kind: DockerImage
      name: registry.redhat.io/ubi8/nodejs-12:latest
    generation: 2
    importPolicy: {}
    name: 12-ubi8
    referencePolicy:
      type: Local
  - annotations:
      description: |-
        Build and run Node.js applications on UBI. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-nodejs-container/blob/master/12/README.md.

        WARNING: By selecting this tag, your application will automatically update to use the latest version of Node.js available on OpenShift, including major version updates.
      iconClass: icon-nodejs
      openshift.io/display-name: Node.js (Latest)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nodejs-ex.git
      supports: nodejs
      tags: builder,nodejs
    from:
      kind: ImageStreamTag
      name: 12-ubi8
    generation: 1
    importPolicy: {}
    name: latest
    referencePolicy:
      type: Local
status:
  dockerImageRepository: image-registry.openshift-image-registry.svc:5000/openshift/nodejs
  tags:
  - items:
    - created: "2020-09-02T13:39:06Z"
      dockerImageReference: registry.redhat.io/rhscl/nodejs-10-rhel7@sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69
      generation: 2
      image: sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69
    tag: "10"
  - items:
    - created: "2020-09-02T13:39:06Z"
      dockerImageReference: registry.redhat.io/ubi7/nodejs-10@sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69
      generation: 2
      image: sha256:7a32c67dfa9f6f67a98f0c1eac5b68c088849abe4c9833d2fbdca7a10e01ed69
    tag: 10-ubi7
  - items:
    - created: "2020-09-02T13:39:06Z"
      dockerImageReference: registry.redhat.io/ubi8/nodejs-10@sha256:f6244b9028c0ace789abba6f5a36d7a824f1585c559b50be3a31e7b1d7f71793
      generation: 2
      image: sha256:f6244b9028c0ace789abba6f5a36d7a824f1585c559b50be3a31e7b1d7f71793
    tag: 10-ubi8
  - items:
    - created: "2020-09-02T13:39:06Z"
      dockerImageReference: registry.redhat.io/rhscl/nodejs-12-rhel7@sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482
      generation: 2
      image: sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482
    tag: "12"
  - items:
    - created: "2020-09-02T13:39:06Z"
      dockerImageReference: registry.redhat.io/ubi7/nodejs-12@sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482
      generation: 2
      image: sha256:2bfd71b41a1591a1ea19513cb92e5c1f43d235bbdf15b114b8fddd5521e99482
    tag: 12-ubi7
  - items:
    - created: "2020-09-02T13:39:06Z"
      dockerImageReference: registry.redhat.io/ubi8/nodejs-12@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c
      generation: 2
      image: sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c
    tag: 12-ubi8
  - items:
    - created: "2020-09-02T13:39:06Z"
      dockerImageReference: registry.redhat.io/ubi8/nodejs-12@sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c
      generation: 2
      image: sha256:41ab6bd38e01c2746072e3cd1cfdb085ecff6fc31fb0ee06bcd53a88e377d64c
    tag: latest

@prietyc123
Copy link
Contributor Author

prietyc123 commented Sep 2, 2020

And interestingly I am not able to produce it on 4.5 cluster

$ odo create nodejs frontend 
Validation
 ✓  Validating component [1s]

Please use `odo push` command to create the component with source deployed

So not sure it is cluster specific or something else 🙁

@prietyc123
Copy link
Contributor Author

prietyc123 commented Sep 7, 2020

This is specifically hitting on 4.6 cluster with s2i images. However I tried creating nodejs application on openshift

$ oc new-app nodejs~https://github.com/openshift/nodejs-ex.git
--> Found image d23c54e (6 weeks old) in image stream "openshift/nodejs" under tag "12-ubi8" for "nodejs"
    Node.js 12 
    ---------- 
    Node.js 12 available as container is a base platform for building and running various Node.js 12 applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
    Tags: builder, nodejs, nodejs12
    * A source build using source code from https://github.com/openshift/nodejs-ex.git will be created
      * The resulting image will be pushed to image stream tag "nodejs-ex:latest"
      * Use 'oc start-build' to trigger a new build
    * This image will be deployed in deployment config "nodejs-ex"
    * Port 8080/tcp will be load balanced by service "nodejs-ex"
      * Other containers can access this service through the hostname "nodejs-ex"
--> Creating resources ...
    imagestream.image.openshift.io "nodejs-ex" created
    buildconfig.build.openshift.io "nodejs-ex" created
    deploymentconfig.apps.openshift.io "nodejs-ex" created
    service "nodejs-ex" created
--> Success
    Build scheduled, use 'oc logs -f bc/nodejs-ex' to track its progress.
    Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:
     'oc expose svc/nodejs-ex' 
    Run 'oc status' to view your app.

and it got succeeded. IMO if the port is not exposed we should handle it in a way that default port gets exposed explicitly. This is currently a blocker for enabling 4.6 cluster running on periodic jobs openshift/release#10346 with Failure log. Also considering the fact that just after openshift 4.6 release we need to run our tests on it. Instead of getting last min hurdles I would suggest let's fix this in time.

Imagestream details are in comment
cc_ @kadel @girishramnani @amitkrout

@amitkrout
Copy link
Contributor

amitkrout commented Sep 8, 2020

its a blocker for enabling test on 4.6 cluster openshift/release#10346

@mohammedzee1000
Copy link
Contributor

@amitkrout
Copy link
Contributor

I was playing around the issue to get more failure info and found something that may help to narrow down the debug area.

Observation (tested on master build):

It works when Experimental mode is enable that is it works for devfile component but for s2i component it does not work

$ git clone https://github.com/openshift/nodejs-ex frontend

$ cd frontend/

$ odo create nodejs frontend
 ✗  given component type doesn't expose any ports, please use --port flag to specify a port

$ odo preference view
PARAMETER             CURRENT_VALUE
[...]           
Experimental          
[...]            

$ odo preference set Experimental true

$ odo create nodejs frontend
Experimental mode is enabled, use at your own risk
[...]
Please use `odo push` command to create the component with source deployed

$ odo preference unset Experimental

$ odo create nodejs frontend
 ✗  given component type doesn't expose any ports, please use --port flag to specify a port

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. priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants