Our OCP version is 3.11.
And I performed with "oc new-app -n cicd -f c:\cicd-template.yaml" but I found there is jenkins pod is not deployed in cicd project. Could you please kindly verify and give me some solution or guide??
Refer to the following messages. Thanks in advance.
oc set resources dc/jenkins --limits=cpu=2,memory=2Gi --requests=cpu=100m,memory=512Mi
Error from server (NotFound): deploymentconfigs.apps.openshift.io "jenkins" not found
oc label dc jenkins app=jenkins --overwrite
Error from server (NotFound): deploymentconfigs.apps.openshift.io "jenkins" not found
oc import-image wildfly --from=openshift/wildfly-120-centos7 --confirm -n dev
imagestream.image.openshift.io/wildfly imported
openshift/wildfly-120-centos7@sha256:a1fbd1b235102ae18344527b44201c34ad4c2181b0b4cbf295b1a8f0cbde8e73
19 hours ago
Image Name: wildfly:latest
Docker Image: openshift/wildfly-120-centos7@sha256:a1fbd1b235102ae18344527b44201c34ad4c2181b0b4cbf295b1a8f0cbde8e73
Name: sha256:a1fbd1b235102ae18344527b44201c34ad4c2181b0b4cbf295b1a8f0cbde8e73
Created: Less than a second ago
Annotations: image.openshift.io/dockerLayersOrder=ascending
Image Size: 616MB in 12 layers
Layers: 75.4MB sha256:8ba884070f611d31cb2c42eddb691319dc9facf5e0ec67672fcfa135181ab3df
9.674MB sha256:c3dca185eb1482e83381d99881430ebc179e91f0969bc905207cd1e2312e5b57
4.832kB sha256:ee720ba20823ba4560916cf32bc06c5e31c230cb76f641be4a5fbfc7754d7574
180.9kB sha256:497ef6ea0fac8097af3363a9b9032f0948098a9fa2b9002eb51ac65f2ed29cf6
90.4MB sha256:ebf1fb961f612b70f32c7d9184c8b3e06b9f427dff8c77385a489a4f2fbfac12
268.2MB sha256:bb1a7feb861e029fa9bcf6df26e9763bfa86bc9469efbd11858ca1ba8c362bc6
1.598MB sha256:e3446df0bb493dd808eb4b0aeac24070de733d72c542d5a1704bc14bb12037f5
2.668kB sha256:0023fa333699651a511fae27367d2e40bf7e522f7114a2f3ea0d9e08da0e2a9a
5.763kB sha256:073e90eecb4dfc611f7a93ca1b247a63a25088f03fc750b6dce7002335cb8230
964B sha256:4dda2c43ec8702a827f5d77b295c561f052d0a2ef19f29f766c13282cbe1c331
5.192kB sha256:f3003e6af02082d259e32094d3495a793546900c3cf916f52c11ff6bc9b3a444
170.6MB sha256:40cd856a9498140c76f3ea0cb6d858ef9ee96d15b14ced2e00a7c3794f62ee5b
Image Created: 6 months ago
Author: Ben Parees bparees@redhat.com
Arch: amd64
Entrypoint: container-entrypoint
Command: /bin/sh -c $STI_SCRIPTS_PATH/usage
Working Dir: /opt/app-root/src
User: 1001
Exposes Ports: 8080/tcp
Docker Labels: com.redhat.component=s2i-base-container
com.redhat.deployments-dir=/wildfly/standalone/deployments
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.description=Platform for building and running JEE applications on WildFly 12.0.0.Final
io.k8s.display-name=WildFly 12.0.0.Final
io.openshift.builder-version=ec1407a
io.openshift.expose-services=8080:http
io.openshift.s2i.assemble-input-files=/wildfly/standalone/deployments;/wildfly/standalone/configuration;/wildfly/provided_modules
io.openshift.s2i.destination=/opt/s2i/destination
io.openshift.s2i.scripts-url=image:///usr/libexec/s2i
io.openshift.tags=builder,wildfly,wildfly12
io.s2i.scripts-url=image:///usr/libexec/s2i
maintainer=Ben Parees bparees@redhat.com
name=centos/s2i-base-centos7
org.label-schema.build-date=20190305
org.label-schema.license=GPLv2
org.label-schema.name=CentOS Base Image
org.label-schema.schema-version=1.0
org.label-schema.vendor=CentOS
summary=Base image with essential libraries and tools used as a base for builder images like perl, python, ruby, etc.
version=1
Environment: PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
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=el7
BASH_ENV=/opt/app-root/etc/scl_enable
ENV=/opt/app-root/etc/scl_enable
PROMPT_COMMAND=. /opt/app-root/etc/scl_enable
NODEJS_SCL=rh-nodejs10
WILDFLY_VERSION=12.0.0.Final
MAVEN_VERSION=3.5.4
'[' false == true ']'
oc new-build --name=tasks --image-stream=wildfly:latest --binary=true -n dev
warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories.
--> Found image c1f1422 (6 months old) in image stream "dev/wildfly" under tag "latest" for "wildfly:latest"
WildFly 12.0.0.Final
Platform for building and running JEE applications on WildFly 12.0.0.Final
Tags: builder, wildfly, wildfly12
A source build using binary input will be created
The resulting image will be pushed to image stream tag "tasks:latest"
A binary build was created, use 'oc start-build --from-dir' to trigger a new build
oc new-app tasks:latest --allow-missing-images -n dev
warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories.
W1218 04:25:02.587776 71 newapp.go:483] Could not find an image stream match for "tasks:latest". Make sure that a Docker image with that tag is available on the node for the deployment to succeed.
This image will be deployed in deployment config "tasks"
oc set triggers dc -l app=tasks --containers=tasks --from-image=tasks:latest --manual -n dev
deploymentconfig.apps.openshift.io/tasks triggers updated
oc new-app tasks:stage --allow-missing-images -n stage
warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories.
W1218 04:25:04.695306 103 newapp.go:483] Could not find an image stream match for "tasks:stage". Make sure that a Docker image with that tag is available on the node for the deployment to succeed.
This image will be deployed in deployment config "tasks"
oc rollout cancel dc/tasks -n dev
No rollout is in progress (latest rollout #2 failed 15 hours ago)
++ oc get route jenkins -o template '--template={{.spec.host}}'
++ sed s/jenkins-cicd.//g
oc set resources dc/nexus --requests=cpu=200m --limits=cpu=2
deploymentconfig.apps.openshift.io/nexus resource requirements updated
++ oc get svc gogs -o template '--template={{.spec.clusterIP}}'
GOGS_SVC=172.30.43.112
GOGS_USER=gogs
GOGS_PWD=gogs
oc rollout status dc gogs
Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for rollout to finish: 0 of 1 updated replicas are available...
Waiting for latest deployment config spec to be observed by the controller loop...
replication controller "gogs-1" successfully rolled out
++ curl -o /tmp/curl.log -sL --post302 -w '%{http_code}' http://172.30.43.112:3000/user/sign_up --form user_name=gogs --form password=gogs --form retype=gogs --form email=admin@gogs.com
_RETURN=404
sleep 5
'[' 404 '!=' 200 ']'
'[' 404 '!=' 302 ']'
echo 'ERROR: Failed to create Gogs admin'
ERROR: Failed to create Gogs admin
Dear developers,
Our OCP version is 3.11. And I performed with "oc new-app -n cicd -f c:\cicd-template.yaml" but I found there is jenkins pod is not deployed in cicd project. Could you please kindly verify and give me some solution or guide?? Refer to the following messages. Thanks in advance.
[root@krman1 openshift-cd-demo]# oc get pod NAME READY STATUS RESTARTS AGE cicd-demo-installer-hwc8n 0/1 Completed 0 14m cicd-demo-installer-pc4rs 0/1 Error 0 16m ---------> Error msg gogs-1-7czkb 1/1 Running 0 16m gogs-postgresql-1-hntzb 1/1 Running 0 16m nexus-1-fdbq6 1/1 Running 0 16m sonardb-2-bqbsh 1/1 Running 0 16m sonarqube-2-94qxl 1/1 Running 0 16m [root@krman1 openshift-cd-demo]# [root@krman1 openshift-cd-demo]# oc logs cicd-demo-installer-pc4rs -------> Error pod's log
Name: wildfly Namespace: dev Created: 19 hours ago Labels:
Annotations: openshift.io/image.dockerRepositoryCheck=2019-12-17T09:38:11Z
Image Repository: docker-registry.default.svc:5000/dev/wildfly
Image Lookup: local=false
Unique Images: 1
Tags: 1
latest tagged from openshift/wildfly-120-centos7
Image Name: wildfly:latest Docker Image: openshift/wildfly-120-centos7@sha256:a1fbd1b235102ae18344527b44201c34ad4c2181b0b4cbf295b1a8f0cbde8e73 Name: sha256:a1fbd1b235102ae18344527b44201c34ad4c2181b0b4cbf295b1a8f0cbde8e73 Created: Less than a second ago Annotations: image.openshift.io/dockerLayersOrder=ascending Image Size: 616MB in 12 layers Layers: 75.4MB sha256:8ba884070f611d31cb2c42eddb691319dc9facf5e0ec67672fcfa135181ab3df 9.674MB sha256:c3dca185eb1482e83381d99881430ebc179e91f0969bc905207cd1e2312e5b57 4.832kB sha256:ee720ba20823ba4560916cf32bc06c5e31c230cb76f641be4a5fbfc7754d7574 180.9kB sha256:497ef6ea0fac8097af3363a9b9032f0948098a9fa2b9002eb51ac65f2ed29cf6 90.4MB sha256:ebf1fb961f612b70f32c7d9184c8b3e06b9f427dff8c77385a489a4f2fbfac12 268.2MB sha256:bb1a7feb861e029fa9bcf6df26e9763bfa86bc9469efbd11858ca1ba8c362bc6 1.598MB sha256:e3446df0bb493dd808eb4b0aeac24070de733d72c542d5a1704bc14bb12037f5 2.668kB sha256:0023fa333699651a511fae27367d2e40bf7e522f7114a2f3ea0d9e08da0e2a9a 5.763kB sha256:073e90eecb4dfc611f7a93ca1b247a63a25088f03fc750b6dce7002335cb8230 964B sha256:4dda2c43ec8702a827f5d77b295c561f052d0a2ef19f29f766c13282cbe1c331 5.192kB sha256:f3003e6af02082d259e32094d3495a793546900c3cf916f52c11ff6bc9b3a444 170.6MB sha256:40cd856a9498140c76f3ea0cb6d858ef9ee96d15b14ced2e00a7c3794f62ee5b Image Created: 6 months ago Author: Ben Parees bparees@redhat.com Arch: amd64 Entrypoint: container-entrypoint Command: /bin/sh -c $STI_SCRIPTS_PATH/usage Working Dir: /opt/app-root/src User: 1001 Exposes Ports: 8080/tcp Docker Labels: com.redhat.component=s2i-base-container com.redhat.deployments-dir=/wildfly/standalone/deployments 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.description=Platform for building and running JEE applications on WildFly 12.0.0.Final io.k8s.display-name=WildFly 12.0.0.Final io.openshift.builder-version=ec1407a io.openshift.expose-services=8080:http io.openshift.s2i.assemble-input-files=/wildfly/standalone/deployments;/wildfly/standalone/configuration;/wildfly/provided_modules io.openshift.s2i.destination=/opt/s2i/destination io.openshift.s2i.scripts-url=image:///usr/libexec/s2i io.openshift.tags=builder,wildfly,wildfly12 io.s2i.scripts-url=image:///usr/libexec/s2i maintainer=Ben Parees bparees@redhat.com name=centos/s2i-base-centos7 org.label-schema.build-date=20190305 org.label-schema.license=GPLv2 org.label-schema.name=CentOS Base Image org.label-schema.schema-version=1.0 org.label-schema.vendor=CentOS summary=Base image with essential libraries and tools used as a base for builder images like perl, python, ruby, etc. version=1 Environment: PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 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=el7 BASH_ENV=/opt/app-root/etc/scl_enable ENV=/opt/app-root/etc/scl_enable PROMPT_COMMAND=. /opt/app-root/etc/scl_enable NODEJS_SCL=rh-nodejs10 WILDFLY_VERSION=12.0.0.Final MAVEN_VERSION=3.5.4
oc new-build --name=tasks --image-stream=wildfly:latest --binary=true -n dev warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories. --> Found image c1f1422 (6 months old) in image stream "dev/wildfly" under tag "latest" for "wildfly:latest"
WildFly 12.0.0.Final
Platform for building and running JEE applications on WildFly 12.0.0.Final
Tags: builder, wildfly, wildfly12
--> Creating resources with label build=tasks ... error: imagestreamtag.image.openshift.io "tasks:latest" already exists --> Failed error: buildconfigs.build.openshift.io "tasks" already exists
--> Creating resources ... --> Failed error: deploymentconfigs.apps.openshift.io "tasks" already exists
--> Creating resources ... --> Failed error: deploymentconfigs.apps.openshift.io "tasks" already exists
oc new-app -f https://raw.githubusercontent.com/siamaksade/gogs-openshift-docker/master/openshift/gogs-template.yaml --param=GOGS_VERSION=0.11.34 --param=DATABASE_VERSION=9.6 --param=HOSTNAME=gogs-cicd.apps.paas.tcis.com --param=SKIP_TLS_VERIFY=true warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories. --> Deploying template "cicd/gogs" for "https://raw.githubusercontent.com/siamaksade/gogs-openshift-docker/master/openshift/gogs-template.yaml" to project cicd
gogs
The Gogs git server (https://gogs.io/)
--> Creating resources ... error: serviceaccounts "gogs" already exists error: services "gogs-postgresql" already exists deploymentconfig.apps.openshift.io "gogs-postgresql" created error: services "gogs" already exists error: routes.route.openshift.io "gogs" already exists error: routes.route.openshift.io "gogs-ssh" already exists deploymentconfig.apps.openshift.io "gogs" created error: imagestreams.image.openshift.io "gogs" already exists configmap "gogs-config" created --> Failed
oc new-app -f https://raw.githubusercontent.com/siamaksade/sonarqube/master/sonarqube-template.yml --param=SONARQUBE_MEMORY_LIMIT=2Gi warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories. --> Deploying template "cicd/sonarqube" for "https://raw.githubusercontent.com/siamaksade/sonarqube/master/sonarqube-template.yml" to project cicd
--> Creating resources ... error: imagestreams.image.openshift.io "sonarqube" already exists error: secrets "sonardb" already exists error: secrets "sonar-ldap-bind-dn" already exists deploymentconfig.apps.openshift.io "sonardb" created deploymentconfig.apps.openshift.io "sonarqube" created error: routes.route.openshift.io "sonarqube" already exists error: services "sonardb" already exists error: services "sonarqube" already exists --> Failed
oc new-app -f https://raw.githubusercontent.com/OpenShiftDemos/nexus/master/nexus3-template.yaml --param=NEXUS_VERSION=3.13.0 --param=MAX_MEMORY=2Gi warning: Cannot find git. Ensure that it is installed and in your path. Git is required to work with git repositories. --> Deploying template "cicd/nexus3" for "https://raw.githubusercontent.com/OpenShiftDemos/nexus/master/nexus3-template.yaml" to project cicd
nexus3
Sonatype Nexus 3 template
--> Creating resources ... error: imagestreams.image.openshift.io "nexus" already exists deploymentconfig.apps.openshift.io "nexus" created error: services "nexus" already exists error: routes.route.openshift.io "nexus" already exists --> Failed
cat /tmp/curl.log <!DOCTYPE html>
Application Version: 0.11.34.1122
If you think this is an error, please open an issue on GitHub.