<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12717</bug_id>
          
          <creation_ts>2018-04-26 20:01:02 +0000</creation_ts>
          <short_desc>[autobuilder2] - Buildbot stop never saw process goes away</short_desc>
          <delta_ts>2018-07-03 02:01:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Chan">aaron.chun.yew.chan</reporter>
          <assigned_to name="Aaron Chan">aaron.chun.yew.chan</assigned_to>
          <cc>apoorv.sangal</cc>
    
    <cc>bluelightning</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>stephano</cc>
          
          <qa_contact name="Aaron Chan">aaron.chun.yew.chan</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Unknown (Hard to categorize)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80423</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-04-26 20:01:02 +0000</bug_when>
    <thetext>This is probably not a bug from autobuilder but rather from Buildbot itself.

I found this discussion along the way during my discovery - https://lists.buildbot.net/pipermail/devel/2006-October/001555.html

Hence this is what could happen, i gave up on permanent solution and resolve on my own workaround.

$ buildbot restart yocto-controller 
never saw process go away

$ ps -ef | grep twistd

user 6577  1522  1 10:19 ?        00:00:07 /usr/bin/python3 -c from twisted.scripts import twistd; twistd.run() --no_save --logfile=twistd.log --python=buildbot.tac
user 7536  4318  0 10:28 pts/2    00:00:00 grep --color=auto twistd

$ twistd-kill ~/yocto-controller restart


# Simple script to forcefully killed the reactor still running on the background.
#!/usr/bin -xe

BUILDBOT_PATH=$1
BUILDBOT_ACTION = $2

kill -9 `cat $BUILDBOT_PATH/twistd.pid`
buildbot $BUILDBOT_ACTION $BUILDBOT_PATH</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81001</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-07-03 01:59:01 +0000</bug_when>
    <thetext>This ticket is no longer needed as the issue is not with Yocto Projet but rather this threat should posted with devel-Buildbot community.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81002</commentid>
    <comment_count>2</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-07-03 02:01:03 +0000</bug_when>
    <thetext>Resolve this ticket since its not a bug. Its basically to hightlight the issues observed when we moved from old Buildbot 0.8.8 into newer version Buildbot 1.1.+</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>