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

Need your help regarding Jenkins pod is not deployed #136

Open
lyu015 opened this issue Dec 18, 2019 · 0 comments
Open

Need your help regarding Jenkins pod is not deployed #136

lyu015 opened this issue Dec 18, 2019 · 0 comments

Comments

@lyu015
Copy link

lyu015 commented Dec 18, 2019

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

  • 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

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

  • 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 [email protected]
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 [email protected]
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

--> Creating resources with label build=tasks ...
error: imagestreamtag.image.openshift.io "tasks:latest" already exists
--> Failed
error: buildconfigs.build.openshift.io "tasks" already exists

  • 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"

--> Creating resources ...
--> Failed
error: deploymentconfigs.apps.openshift.io "tasks" already exists

  • 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"

--> Creating resources ...
--> Failed
error: deploymentconfigs.apps.openshift.io "tasks" already exists

  • oc set triggers dc -l app=tasks --containers=tasks --from-image=tasks:stage --manual -n stage
    deploymentconfig.apps.openshift.io/tasks triggers updated

  • oc expose dc/tasks --port=8080 -n dev
    Error from server (AlreadyExists): services "tasks" already exists

  • oc expose svc/tasks -n dev
    Error from server (AlreadyExists): routes.route.openshift.io "tasks" already exists

  • oc set probe dc/tasks --readiness --get-url=http://:8080/ws/demo/healthcheck --initial-delay-seconds=30 --failure-threshold=10 --period-seconds=10 -n dev

  • oc set probe dc/tasks --liveness --get-url=http://:8080/ws/demo/healthcheck --initial-delay-seconds=180 --failure-threshold=10 --period-seconds=10 -n dev

  • oc rollout cancel dc/tasks -n stage
    No rollout is in progress (latest rollout Nexus and Gogs don't get deployed automatically when template is instantiated #2 failed 16 hours ago)

  • oc expose dc/tasks --port=8080 -n stage
    Error from server (AlreadyExists): services "tasks" already exists

  • oc expose svc/tasks -n stage
    Error from server (AlreadyExists): routes.route.openshift.io "tasks" already exists

  • oc set probe dc/tasks --readiness --get-url=http://:8080/ws/demo/healthcheck --initial-delay-seconds=30 --failure-threshold=10 --period-seconds=10 -n stage

  • oc set probe dc/tasks --liveness --get-url=http://:8080/ws/demo/healthcheck --initial-delay-seconds=180 --failure-threshold=10 --period-seconds=10 -n stage

  • oc rollout cancel dc/tasks -n dev
    No rollout is in progress (latest rollout Nexus and Gogs don't get deployed automatically when template is instantiated #2 failed 15 hours ago)
    ++ oc get route jenkins -o template '--template={{.spec.host}}'
    ++ sed s/jenkins-cicd.//g

  • HOSTNAME=apps.paas.tcis.com

  • GOGS_HOSTNAME=gogs-cicd.apps.paas.tcis.com

  • '[' true == true ']'

  • 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/)

    • With parameters:
      • APPLICATION_NAME=gogs
      • HOSTNAME=gogs-cicd.apps.paas.tcis.com
      • Database Username=gogs
      • Database Password=gogs
      • Database Name=gogs
      • Database Admin Password=G7G3RbeJ # generated
      • Maximum Database Connections=100
      • Shared Buffer Amount=12MB
      • Database version (PostgreSQL)=9.6
      • Gogs Version=0.11.34
      • Installation lock=true
      • Skip TLS verification on webhooks=true

--> 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

  • sleep 5

  • '[' true == true ']'

  • 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

    • With parameters:
      • Postgres password=K0M3UjgsfelBUlTf # generated
      • Postgres username=usernrifaug6 # generated
      • Postgres database name=sonar
      • Postgres Container Memory size limit=1Gi
      • Postgres Container CPU limit=1
      • SonarQube memory=2Gi
      • SonarQube Container CPU limit=2
      • Force authentication=false
      • SonarQube Authentication Realm=
      • Enable auto-creation of users from external authentication systems?=false
      • Proxy server hostname/IP=
      • Proxy server port=
      • Proxy server username=
      • Proxy server password=
      • LDAP Bind DN=
      • LDAP Bind Password=
      • LDAP Server URL=
      • LDAP Realm=
      • LDAP Bind Mode=
      • LDAP User Base DN=
      • LDAP Real Name Attribute=
      • LDAP User E-Mail Attribute=
      • LDAP User Request Filter=
      • LDAP Group Base DN=
      • LDAP Group Request Filter=
      • LDAP Group Name Attribute=
      • LDAP Context Factory=com.sun.jndi.ldap.LdapCtxFactory

--> 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 set resources dc/sonardb --limits=cpu=200m,memory=512Mi --requests=cpu=50m,memory=128Mi
    deploymentconfig.apps.openshift.io/sonardb resource requirements updated

  • oc set resources dc/sonarqube --limits=cpu=1,memory=2Gi --requests=cpu=50m,memory=128Mi
    deploymentconfig.apps.openshift.io/sonarqube resource requirements updated

  • '[' true == true ']'

  • 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

    • With parameters:
      • Sonatype Nexus Service Name=nexus
      • Sonatype Nexus version=3.13.0
      • Max Memory=2Gi

--> 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

  • 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=[email protected]
  • _RETURN=404
  • sleep 5
  • '[' 404 '!=' 200 ']'
  • '[' 404 '!=' 302 ']'
  • echo 'ERROR: Failed to create Gogs admin'
    ERROR: Failed to create Gogs admin
  • cat /tmp/curl.log
	<meta name="author" content="Gogs" />
	<meta name="description" content="Gogs is a painless self-hosted Git service" />
	<meta name="keywords" content="go, git, self-hosted, gogs">

<meta name="referrer" content="no-referrer" />
<meta name="_csrf" content="5AyCXrNx6O-1cy28L1jCj-_sWO86MTU3NjY0MzIwODI2OTQ5MTgwMw==" />
<meta name="_suburl" content="" />



	<meta property="og:url" content="http://gogs-cicd.apps.paas.tcis.com/" />
	<meta property="og:type" content="website" />
	<meta property="og:title" content="Gogs">
	<meta property="og:description" content="Gogs is a painless self-hosted Git service.">
	<meta property="og:image" content="http://gogs-cicd.apps.paas.tcis.com/img/gogs-lg.png" />
	<meta property="og:site_name" content="Gogs">


<link rel="shortcut icon" href="/img/favicon.png" />

<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/libs/jquery.are-you-sure.js"></script>
<link rel="stylesheet" href="/assets/font-awesome-4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" href="/assets/octicons-4.3.0/octicons.min.css">







<link rel="stylesheet" href="/css/semantic-2.2.13.min.css">
<link rel="stylesheet" href="/css/gogs.css?v=cecb1a897806205111ddb7beeb6f99bc">


<script src="/js/semantic-2.2.13.min.js"></script>
<script src="/js/gogs.js?v=cecb1a897806205111ddb7beeb6f99bc"></script>

<title>Page Not Found - Gogs</title>

<meta name="theme-color" content="#ff5343">
Please enable JavaScript in your browser!
		<div class="following bar light">
			<div class="ui container">
				<div class="ui grid">
					<div class="column">
						<div class="ui top secondary menu">
							<a class="item brand" href="/">
								<img class="ui mini image" src="/img/favicon.png">
							</a>

							
								<a class="item" href="/">Home</a>
							

							<a class="item" href="/explore/repos">Explore</a>
							

							

								<a class="item" target="_blank" href="https://gogs.io/docs" rel="noreferrer">Help</a>
								<div class="right menu">
									
										<a class="item" href="/user/sign_up">
											<i class="octicon octicon-person"></i> Register
										</a>
									
									<a class="item" href="/user/login?redirect_to=">
										<i class="octicon octicon-sign-in"></i> Sign In
									</a>
								</div>

							
						</div>
					</div>
				</div>
			</div>
		</div>

404


Application Version: 0.11.34.1122

If you think this is an error, please open an issue on GitHub.

</div>
<footer>
	<div class="ui container">
		<div class="ui left">
			© 2017 Gogs Version: 0.11.34.1122 Page: <strong>1ms</strong> Template: <strong>1ms</strong>
		</div>
		<div class="ui right links">
			
			<div class="ui language bottom floating slide up dropdown link item">
				<i class="world icon"></i>
				<div class="text">English</div>
				<div class="menu">
					
						<a class="item active selected" href="#">English</a>
					
						<a class="item " href="?lang=zh-CN">简体中文</a>
					
						<a class="item " href="?lang=zh-HK">繁體中文(香港)</a>
					
						<a class="item " href="?lang=zh-TW">繁體中文(臺灣)</a>
					
						<a class="item " href="?lang=de-DE">Deutsch</a>
					
						<a class="item " href="?lang=fr-FR">français</a>
					
						<a class="item " href="?lang=nl-NL">Nederlands</a>
					
						<a class="item " href="?lang=lv-LV">latviešu</a>
					
						<a class="item " href="?lang=ru-RU">русский</a>
					
						<a class="item " href="?lang=ja-JP">日本語</a>
					
						<a class="item " href="?lang=es-ES">español</a>
					
						<a class="item " href="?lang=pt-BR">português do Brasil</a>
					
						<a class="item " href="?lang=pl-PL">polski</a>
					
						<a class="item " href="?lang=bg-BG">български</a>
					
						<a class="item " href="?lang=it-IT">italiano</a>
					
						<a class="item " href="?lang=fi-FI">suomi</a>
					
						<a class="item " href="?lang=tr-TR">Türkçe</a>
					
						<a class="item " href="?lang=cs-CZ">čeština</a>
					
						<a class="item " href="?lang=sr-SP">српски</a>
					
						<a class="item " href="?lang=sv-SE">svenska</a>
					
						<a class="item " href="?lang=ko-KR">한국어</a>
					
						<a class="item " href="?lang=gl-ES">galego</a>
					
						<a class="item " href="?lang=uk-UA">українська</a>
					
						<a class="item " href="?lang=en-GB">English (United Kingdom)</a>
					
						<a class="item " href="?lang=hu-HU">Magyar</a>
					
						<a class="item " href="?lang=sk-SK">slovenský</a>
					
				</div>
			</div>
			<a href="/assets/librejs/librejs.html" style="display:none" data-jslicense="1">Javascript Licenses</a>
			<a target="_blank" href="https://gogs.io">Website</a>
			<span class="version">Go1.8</span>
		</div>
	</div>
</footer>
<script src="/js/libs/emojify-1.1.0.min.js"></script> <script src="/js/libs/clipboard-1.5.9.min.js"></script>
  • exit 255
    [root@krman1 openshift-cd-demo]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant