Open babluchandran opened 7 years ago
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran notifications@github.com wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf .
name: myphp
image: '172.30.198.246:5000/cicd/myphp:latest'
ports:
-
containerPort: 8080
protocol: TCP
resources:
I still face the same issue. I am not sure whether I made the correct changes. Please help me in this.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com] Sent: 28 April 2017 19:14 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran notifications@github.com wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf .
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================
That change is correct. It should work. What is the error now?
On May 2, 2017 6:03 AM, "babluchandran" notifications@github.com wrote:
Hi Veer, Thank you for your reply. Could you please explain me how to make the changes? I tried changing the name in deployments->myphp->edit yaml and changed the name from myphp:latest to 172.30.198.246:5000/cicd/myphp:latest under the container section as shown below. spec: containers:
name: myphp image: '172.30.198.246:5000/cicd/myphp:latest' ports:
containerPort: 8080 protocol: TCP resources:
I still face the same issue. I am not sure whether I made the correct changes. Please help me in this.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com] Sent: 28 April 2017 19:14 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran notifications@github.com wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ VeerMuchandi/pipeline-example/issues/2#issuecomment-298001211, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ ATSgixt1HZ28c4Mty6aOD0t0hx1fZMiiks5r0e0OgaJpZM4NLQWf.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment-298587955, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf8HJ-uqUiEpcBFUIE2ELyeuL3ZiTks5r1v9mgaJpZM4NLQWf .
Hi Veer, I am getting the same error I mentioned in the issues section in github. But if I am trying the pipeline without disabling the autobuild functionality , deployment to openshift is working, ie. ,after building myphp application manually I am scaling the application to zero(0) and after starting the pipeline, build and deployment got success and application scales to one(1) and then two(2) as per the pipeline.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com] Sent: 02 May 2017 15:59 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
That change is correct. It should work. What is the error now?
On May 2, 2017 6:03 AM, "babluchandran" notifications@github.com<mailto:notifications@github.com> wrote:
Hi Veer, Thank you for your reply. Could you please explain me how to make the changes? I tried changing the name in deployments->myphp->edit yaml and changed the name from myphp:latest to 172.30.198.246:5000/cicd/myphp:latest under the container section as shown below. spec: containers:
name: myphp image: '172.30.198.246:5000/cicd/myphp:latest' ports:
containerPort: 8080 protocol: TCP resources:
I still face the same issue. I am not sure whether I made the correct changes. Please help me in this.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com]mailto:[mailto:notifications@github.com] Sent: 28 April 2017 19:14 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran notifications@github.com<mailto:notifications@github.com> wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ <https://github.com/%0b> VeerMuchandi/pipeline-example/issues/2#issuecomment-298001211>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> ATSgixt1HZ28c4Mty6aOD0t0hx1fZMiiks5r0e0OgaJpZM4NLQWf>.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment-298587955, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf8HJ-uqUiEpcBFUIE2ELyeuL3ZiTks5r1v9mgaJpZM4NLQWf .
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================
Hi Veer, I need some help in setting up jenkins pipeline in openshift, mainly on code qualitycheck using Sonar and also junit testing. I am able to build and deploy application using jenkinspipeline, need other pipeline functionalities for POCs purpose. Clould you please help me in this or least share some references which I can look into for setting up the Jenkins pipeline setup in openshift.
Thanks and Regards, Bablu Chandran
From: Bablu Chandran Sent: 03 May 2017 09:49 To: 'VeerMuchandi/pipeline-example' Subject: RE: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Hi Veer, I am getting the same error I mentioned in the issues section in github. But if I am trying the pipeline without disabling the autobuild functionality , deployment to openshift is working, ie. ,after building myphp application manually I am scaling the application to zero(0) and after starting the pipeline, build and deployment got success and application scales to one(1) and then two(2) as per the pipeline.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com] Sent: 02 May 2017 15:59 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
That change is correct. It should work. What is the error now?
On May 2, 2017 6:03 AM, "babluchandran" notifications@github.com<mailto:notifications@github.com> wrote:
Hi Veer, Thank you for your reply. Could you please explain me how to make the changes? I tried changing the name in deployments->myphp->edit yaml and changed the name from myphp:latest to 172.30.198.246:5000/cicd/myphp:latest under the container section as shown below. spec: containers:
name: myphp image: '172.30.198.246:5000/cicd/myphp:latest' ports:
containerPort: 8080 protocol: TCP resources:
I still face the same issue. I am not sure whether I made the correct changes. Please help me in this.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com]mailto:[mailto:notifications@github.com] Sent: 28 April 2017 19:14 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran notifications@github.com<mailto:notifications@github.com> wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ <https://github.com/%0b> VeerMuchandi/pipeline-example/issues/2#issuecomment-298001211>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> ATSgixt1HZ28c4Mty6aOD0t0hx1fZMiiks5r0e0OgaJpZM4NLQWf>.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment-298587955, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf8HJ-uqUiEpcBFUIE2ELyeuL3ZiTks5r1v9mgaJpZM4NLQWf .
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================
Which version of OpenShift are you using?
I am currently using 3.5 and my deployment config looks like below. BTW, I unchecked the two flags
Automatically start a new deployment when the image changes Automatically start a new deployment when the deployment configuration changes
apiVersion: v1 kind: DeploymentConfig metadata: name: myapp namespace: development selfLink: /oapi/v1/namespaces/development/deploymentconfigs/myapp uid: ca644fec-3119-11e7-94e9-000d3af74ea4 resourceVersion: '1063494' generation: 7 creationTimestamp: '2017-05-04T22:34:09Z' labels: app: myapp annotations: openshift.io/generated-by: OpenShiftWebConsole spec: strategy: type: Rolling rollingParams: updatePeriodSeconds: 1 intervalSeconds: 1 timeoutSeconds: 600 maxUnavailable: 25% maxSurge: 25% resources: {} activeDeadlineSeconds: 21600 triggers:
172.30.24.246:5000/development/myapp@sha256:cc0a4d1d989019b0347218e83c7c6b05bdd3e934f7c734243f91ef7d88549796 replicas: 2 test: false selector: deploymentconfig: myapp template: metadata: creationTimestamp: null labels: app: myapp deploymentconfig: myapp spec: containers:
172.30.24.246:5000/development/myapp@sha256:cc0a4d1d989019b0347218e83c7c6b05bdd3e934f7c734243f91ef7d88549796 ports:
On Wed, May 3, 2017 at 12:19 AM, babluchandran notifications@github.com wrote:
Hi Veer, I am getting the same error I mentioned in the issues section in github. But if I am trying the pipeline without disabling the autobuild functionality , deployment to openshift is working, ie. ,after building myphp application manually I am scaling the application to zero(0) and after starting the pipeline, build and deployment got success and application scales to one(1) and then two(2) as per the pipeline.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com] Sent: 02 May 2017 15:59 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
That change is correct. It should work. What is the error now?
On May 2, 2017 6:03 AM, "babluchandran" <notifications@github.com<mailto: notifications@github.com>> wrote:
Hi Veer, Thank you for your reply. Could you please explain me how to make the changes? I tried changing the name in deployments->myphp->edit yaml and changed the name from myphp:latest to 172.30.198.246:5000/cicd/myphp:latest under the container section as shown below. spec: containers:
name: myphp image: '172.30.198.246:5000/cicd/myphp:latest' ports:
containerPort: 8080 protocol: TCP resources:
I still face the same issue. I am not sure whether I made the correct changes. Please help me in this.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com]<mailto:[mailto: notifications@github.com]> Sent: 28 April 2017 19:14 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran <notifications@github.com mailto:notifications@github.com> wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ <https://github.com/%0b> VeerMuchandi/pipeline-example/ issues/2#issuecomment-298001211>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> ATSgixt1HZ28c4Mty6aOD0t0hx1fZMiiks5r0e0OgaJpZM4NLQWf>.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment- 298587955, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf8HJ- uqUiEpcBFUIE2ELyeuL3ZiTks5r1v9mgaJpZM4NLQWf .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ VeerMuchandi/pipeline-example/issues/2#issuecomment-298597273, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ ATSgi9byxPwvtYC3e7N2gTlMmJOsZ0LRks5r1wVUgaJpZM4NLQWf.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment-298820126, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf5XHWd0lF3RwL7vWLdscLlFTibjoks5r2AA2gaJpZM4NLQWf .
Hi Veer, I am using openshift version 3.3 in redhat lab environment for training purposes. Please refer to the deployment config screen shot below for details.
[cid:image001.png@01D2C58D.BD2BCA70]
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com] Sent: 05 May 2017 04:26 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Which version of OpenShift are you using?
I am currently using 3.5 and my deployment config looks like below. BTW, I unchecked the two flags
Automatically start a new deployment when the image changes Automatically start a new deployment when the deployment configuration changes
apiVersion: v1 kind: DeploymentConfig metadata: name: myapp namespace: development selfLink: /oapi/v1/namespaces/development/deploymentconfigs/myapp uid: ca644fec-3119-11e7-94e9-000d3af74ea4 resourceVersion: '1063494' generation: 7 creationTimestamp: '2017-05-04T22:34:09Z' labels: app: myapp annotations: openshift.io/generated-by: OpenShiftWebConsole spec: strategy: type: Rolling rollingParams: updatePeriodSeconds: 1 intervalSeconds: 1 timeoutSeconds: 600 maxUnavailable: 25% maxSurge: 25% resources: {} activeDeadlineSeconds: 21600 triggers:
172.30.24.246:5000/development/myapp@sha256:cc0a4d1d989019b0347218e83c7c6b05bdd3e934f7c734243f91ef7d88549796 replicas: 2 test: false selector: deploymentconfig: myapp template: metadata: creationTimestamp: null labels: app: myapp deploymentconfig: myapp spec: containers:
172.30.24.246:5000/development/myapp@sha256:cc0a4d1d989019b0347218e83c7c6b05bdd3e934f7c734243f91ef7d88549796 ports:
On Wed, May 3, 2017 at 12:19 AM, babluchandran notifications@github.com<mailto:notifications@github.com> wrote:
Hi Veer, I am getting the same error I mentioned in the issues section in github. But if I am trying the pipeline without disabling the autobuild functionality , deployment to openshift is working, ie. ,after building myphp application manually I am scaling the application to zero(0) and after starting the pipeline, build and deployment got success and application scales to one(1) and then two(2) as per the pipeline.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com]mailto:[mailto:notifications@github.com] Sent: 02 May 2017 15:59 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
That change is correct. It should work. What is the error now?
On May 2, 2017 6:03 AM, "babluchandran" <notifications@github.com<mailto: mailto:notifications@github.com%3cmailto:%0b> notifications@github.commailto:notifications@github.com>> wrote:
Hi Veer, Thank you for your reply. Could you please explain me how to make the changes? I tried changing the name in deployments->myphp->edit yaml and changed the name from myphp:latest to 172.30.198.246:5000/cicd/myphp:latest under the container section as shown below. spec: containers:
name: myphp image: '172.30.198.246:5000/cicd/myphp:latest' ports:
containerPort: 8080 protocol: TCP resources:
I still face the same issue. I am not sure whether I made the correct changes. Please help me in this.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com]mailto:[mailto:notifications@github.com]<mailto:[mailto: <mailto:[mailto:%0b>> notifications@github.commailto:notifications@github.com]> Sent: 28 April 2017 19:14 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran <notifications@github.com mailto:notifications@github.com%0b> mailto:notifications@github.com> wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> https://github.com/notifications/unsubscribe-auth/%0b> AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ <https://github.com/%0b> https://github.com/%0b> VeerMuchandi/pipeline-example/ issues/2#issuecomment-298001211>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> https://github.com/notifications/unsubscribe-auth/%0b> ATSgixt1HZ28c4Mty6aOD0t0hx1fZMiiks5r0e0OgaJpZM4NLQWf>.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment- 298587955, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf8HJ- <https://github.com/notifications/unsubscribe-auth/AGNZf8HJ-%0b> uqUiEpcBFUIE2ELyeuL3ZiTks5r1v9mgaJpZM4NLQWf> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ <https://github.com/%0b> VeerMuchandi/pipeline-example/issues/2#issuecomment-298597273>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> ATSgi9byxPwvtYC3e7N2gTlMmJOsZ0LRks5r1wVUgaJpZM4NLQWf>.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment-298820126, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf5XHWd0lF3RwL7vWLdscLlFTibjoks5r2AA2gaJpZM4NLQWf .
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================
Screenshot did the come through. Also I don't have a 3.3 environment to reproduce. So I suggest that you upgrade.
On Fri, May 5, 2017 at 1:23 AM, babluchandran notifications@github.com wrote:
Hi Veer, I am using openshift version 3.3 in redhat lab environment for training purposes. Please refer to the deployment config screen shot below for details.
[cid:image001.png@01D2C58D.BD2BCA70]
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com] Sent: 05 May 2017 04:26 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Which version of OpenShift are you using?
I am currently using 3.5 and my deployment config looks like below. BTW, I unchecked the two flags
Automatically start a new deployment when the image changes Automatically start a new deployment when the deployment configuration changes
apiVersion: v1 kind: DeploymentConfig metadata: name: myapp namespace: development selfLink: /oapi/v1/namespaces/development/deploymentconfigs/myapp uid: ca644fec-3119-11e7-94e9-000d3af74ea4 resourceVersion: '1063494' generation: 7 creationTimestamp: '2017-05-04T22:34:09Z' labels: app: myapp annotations: openshift.io/generated-by: OpenShiftWebConsole spec: strategy: type: Rolling rollingParams: updatePeriodSeconds: 1 intervalSeconds: 1 timeoutSeconds: 600 maxUnavailable: 25% maxSurge: 25% resources: {} activeDeadlineSeconds: 21600 triggers:
- type: ImageChange imageChangeParams: containerNames:
- myapp from: kind: ImageStreamTag namespace: development name: 'myapp:latest' lastTriggeredImage: >-
172.30.24.246:5000/development/myapp@sha256:cc0a4d1d989019b0347218e83c7c6b 05bdd3e934f7c734243f91ef7d88549796 replicas: 2 test: false selector: deploymentconfig: myapp template: metadata: creationTimestamp: null labels: app: myapp deploymentconfig: myapp spec: containers:
- name: myapp image: >-
172.30.24.246:5000/development/myapp@sha256:cc0a4d1d989019b0347218e83c7c6b 05bdd3e934f7c734243f91ef7d88549796 ports:
- containerPort: 8080 protocol: TCP resources: {} terminationMessagePath: /dev/termination-log imagePullPolicy: Always restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} status: latestVersion: 4 observedGeneration: 7 replicas: 2 updatedReplicas: 2 availableReplicas: 2 unavailableReplicas: 0 details: message: manual change causes:
- type: Manual conditions:
- type: Available status: 'True' lastUpdateTime: '2017-05-04T22:43:37Z' lastTransitionTime: '2017-05-04T22:43:37Z' message: Deployment config has minimum availability.
- type: Progressing status: 'True' lastUpdateTime: '2017-05-04T22:51:05Z' lastTransitionTime: '2017-05-04T22:51:03Z' reason: NewReplicationControllerAvailable message: replication controller "myapp-4" successfully rolled out readyReplicas: 2
On Wed, May 3, 2017 at 12:19 AM, babluchandran <notifications@github.com< mailto:notifications@github.com>> wrote:
Hi Veer, I am getting the same error I mentioned in the issues section in github. But if I am trying the pipeline without disabling the autobuild functionality , deployment to openshift is working, ie. ,after building myphp application manually I am scaling the application to zero(0) and after starting the pipeline, build and deployment got success and application scales to one(1) and then two(2) as per the pipeline.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com]<mailto:[mailto: notifications@github.com]> Sent: 02 May 2017 15:59 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
That change is correct. It should work. What is the error now?
On May 2, 2017 6:03 AM, "babluchandran" <notifications@github.com< mailto: mailto:notifications@github.com%3cmailto:%0b> notifications@github.com< mailto:notifications@github.com>>> wrote:
Hi Veer, Thank you for your reply. Could you please explain me how to make the changes? I tried changing the name in deployments->myphp->edit yaml and changed the name from myphp:latest to 172.30.198.246:5000/cicd/myphp:latest under the container section as shown below. spec: containers:
name: myphp image: '172.30.198.246:5000/cicd/myphp:latest' ports:
containerPort: 8080 protocol: TCP resources:
I still face the same issue. I am not sure whether I made the correct changes. Please help me in this.
Thanks and Regards, Bablu Chandran
From: VeerMuchandi [mailto:notifications@github.com]<mailto:[mailto: notifications@github.com]><mailto:[mailto: <mailto:[mailto:%0b>> notifications@github.com<mailto: notifications@github.com>]> Sent: 28 April 2017 19:14 To: VeerMuchandi/pipeline-example Cc: Bablu Chandran; Manual Subject: Re: [VeerMuchandi/pipeline-example] deploying of application to openshift fails (#2)
Please check the deployment descriptor. You may have to change the image from which the container deploys from to fully qualified name 172.30.198.246:5000/cicd/myphp:latest
It might be listed as myphp:latest. So change it to full name
On Fri, Apr 28, 2017 at 5:27 AM, babluchandran < notifications@github.com mailto:notifications@github.com%0b> mailto:notifications@github.com> wrote:
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> < https://github.com/notifications/unsubscribe-auth/%0b>> AGNZfwhKyDDtXbNnNpcpJ6JCDorkwAS7ks5r0bEZgaJpZM4NLQWf> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ <https://github.com/%0b> https://github.com/%0b> VeerMuchandi/pipeline-example/ issues/2#issuecomment-298001211>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> < https://github.com/notifications/unsubscribe-auth/%0b>> ATSgixt1HZ28c4Mty6aOD0t0hx1fZMiiks5r0e0OgaJpZM4NLQWf>.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/ issues/2#issuecomment- 298587955, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf8HJ- <https://github.com/notifications/unsubscribe-auth/AGNZf8HJ-%0b> uqUiEpcBFUIE2ELyeuL3ZiTks5r1v9mgaJpZM4NLQWf> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ <https://github.com/%0b> VeerMuchandi/pipeline-example/ issues/2#issuecomment-298597273>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ <https://github.com/notifications/unsubscribe-auth/%0b> ATSgi9byxPwvtYC3e7N2gTlMmJOsZ0LRks5r1wVUgaJpZM4NLQWf>.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment- 298820126, or mute the thread https://github.com/notifications/unsubscribe-auth/ AGNZf5XHWd0lF3RwL7vWLdscLlFTibjoks5r2AA2gaJpZM4NLQWf .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/ VeerMuchandi/pipeline-example/issues/2#issuecomment-299331625, or mute the threadhttps://github.com/notifications/unsubscribe- auth/ATSgi5hTIwK0nlN3_wdZTuyIqBx08xyeks5r2ldxgaJpZM4NLQWf.
================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/ Disclaimer.html http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html < http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra.
============================================================
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VeerMuchandi/pipeline-example/issues/2#issuecomment-299379580, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNZf-lqg8Vd3MG0KuxHsgWEnXJQR5NTks5r2rJhgaJpZM4NLQWf .
I am new to openshift. I tried jenkins pipeline with the same buildconfig yml file and also the same php application. After starting the pipeline the build is successful but the deployment fails. I am getting the below output in jenkins console. Pushing image 172.30.198.246:5000/cicd/myphp:latest ... Pushed 0/7 layers, 1% complete Pushed 1/7 layers, 16% complete Pushed 2/7 layers, 33% complete Pushed 3/7 layers, 49% complete Pushed 4/7 layers, 62% complete Pushed 5/7 layers, 92% complete Pushed 6/7 layers, 97% complete Pushed 7/7 layers, 100% complete Push successful
Exiting "Trigger OpenShift Build" successfully; build "myphp-2" has completed with status: [Complete]. [Pipeline] stage (deploy) Using the ‘stage’ step without a block argument is deprecated Entering stage deploy Proceeding [Pipeline] openshiftDeploy
Starting "Trigger OpenShift Deployment" with deployment config "myphp" from the project "cicd". Operation will timeout after 600000 milliseconds
Exiting "Trigger OpenShift Deployment" unsuccessfully; gave up on deployment "myphp-1" with status: [Running]. [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: "Trigger OpenShift Deployment" failed Finished: FAILURE
I don't know where I am commiting mistake. Please help me in this