Bug 828748

Summary: jenkins build failed after alter domain with slave build still exist
Product: OKD Reporter: Meng Bo <bmeng>
Component: ContainersAssignee: Dan Mace <dmace>
Status: CLOSED WONTFIX QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: dmace, mmcgrath, rmillner, xtian, yujzhang
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-16 16:46:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Meng Bo 2012-06-05 10:13:57 UTC
Description of problem:
create app with jenkins embedded, make some changes and push it via jenkins, then alter domain namespace, after that the slave build 'app_namebldr' still exist on instance. make changes and push build again, jenkins job will fail.

Version-Release number of selected component (if applicable):
cartridge-jenkins-1.4-0.94.1-1.el6_2.noarch
cartridge-jenkins-client-1.4-0.28.1-1.el6_2.noarch

How reproducible:
always

Steps to Reproduce:
1.create app with jenkins embedded.
2.make some change and push it
3.alter domain
4.modify the local ~/.git/config file
5.make some change and push again
  
Actual results:
jenkins job failed.

Expected results:
jenkins job should be success.

Additional info:
alter domain from "bmengdev1" to "bmengdev2"


Application Info
================
jenkins
    Framework: jenkins-1.4
     Creation: 2012-06-05T05:37:34-04:00
         UUID: 6bf56c45ba3d4c82b8c72eb5ac3794da
      Git URL: ssh://6bf56c45ba3d4c82b8c72eb5ac3794da.rhcloud.com/~/git/jenkins.git/
   Public URL: http://jenkins-bmengdev2.dev.rhcloud.com/

 Embedded: 
      None

perl1bldr
    Framework: perl-5.10
     Creation: 2012-06-05T05:51:14-04:00
         UUID: 3475756d798d444d8c266aafb57de266
      Git URL: ssh://3475756d798d444d8c266aafb57de266.rhcloud.com/~/git/perl1bldr.git/
   Public URL: http://perl1bldr-bmengdev2.dev.rhcloud.com/

 Embedded: 
      None

perl1
    Framework: perl-5.10
     Creation: 2012-06-05T05:48:20-04:00
         UUID: afb8f001e98749cb968f0231e428934f
      Git URL: ssh://afb8f001e98749cb968f0231e428934f.rhcloud.com/~/git/perl1.git/
   Public URL: http://perl1-bmengdev2.dev.rhcloud.com/

 Embedded: 
      jenkins-client-1.4 - Job URL: https://jenkins-bmengdev2.dev.rhcloud.com/job/perl1-build/


=====jenkins output=====
Started by user Jenkins System Builder
Building remotely on perl1bldr in workspace perl1bldr/ci/jenkins/workspace/perl1-build
Checkout:perl1-build / perl1bldr/ci/jenkins/workspace/perl1-build - hudson.remoting.Channel@15c0102:perl1bldr
Using strategy: Default
Last Built Revision: Revision 6604bc9a4e0b4cf35a9853b12d80048c2a912718 (origin/HEAD, origin/master)
Checkout:perl1-build / perl1bldr/ci/jenkins/workspace/perl1-build - hudson.remoting.LocalChannel@1cf1934
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh://afb8f001e98749cb968f0231e428934f.rhcloud.com/~/git/perl1.git/
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR:  (Underlying report) : Error performing command: git fetch -t ssh://afb8f001e98749cb968f0231e428934f.rhcloud.com/~/git/perl1.git/ +refs/heads/*:refs/remotes/origin/*
Command "git fetch -t ssh://afb8f001e98749cb968f0231e428934f.rhcloud.com/~/git/perl1.git/ +refs/heads/*:refs/remotes/origin/*" returned status code 128: ssh: Could not resolve hostname perl1-bmengdev1.dev.rhcloud.com: Name or service not known
fatal: The remote end hung up unexpectedly

ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1008)
	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:287)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:679)

Comment 1 Bill DeCoste 2012-06-05 20:50:16 UTC
User needs to delete the node/builder or reload jenkins after a namespace change

Comment 2 Yujie Zhang 2012-09-06 10:22:25 UTC
(In reply to comment #1)
This issue also exists on fork_ami_opensource_console_77.

Comment 3 Mike McGrath 2013-04-16 16:46:53 UTC
Users can no longer alter their domain.  Closing as invalid.

Comment 4 Xiaoli Tian 2013-04-28 03:59:16 UTC
Since this bug is reported before disallowing updating domains with applications, close the original bug to won't fix instead of not a bug.