<?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>7767</bug_id>
          
          <creation_ts>2015-05-14 18:08:18 +0000</creation_ts>
          <short_desc>systemd shudown hang</short_desc>
          <delta_ts>2015-05-28 11:21:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="forrest Kenney">gonesailing</reporter>
          <assigned_to name="forrest Kenney">gonesailing</assigned_to>
          <cc>cristina-danielax.agurida</cc>
    
    <cc>randy.e.witt</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51022</commentid>
    <comment_count>0</comment_count>
    <who name="forrest Kenney">gonesailing</who>
    <bug_when>2015-05-14 18:08:18 +0000</bug_when>
    <thetext>using systemctl shutdown the system hangs.

After a bunch of tracing we have found that systemd is restarting the two services with watchdog timers after they have been initially stopped as part of shutting down.  Eventually, systemd reports a dependency failure for one of these daemons and quits.  At this point the systemd has shutdown enough of the system that we are unable to get in and force a reboot.

Raising the watchdog timeout on the daemons to a large enough value is a allows the system to shutdown.  But that value is way larger than we can tolerate one of these daemons being hung.  

The assumption is we have done something wrong in the our daemons but are not sure what.  Is this a know problem have we done something wrong if so what are we not doing that we should be doing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51028</commentid>
    <comment_count>1</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2015-05-14 20:43:51 +0000</bug_when>
    <thetext>I tried running &quot;systemctl poweroff&quot; in qemu using core-image-sato on fido and it shut down successfully.

That suggests it really is something to do with the configuration of your services or with systemd itself. Do you have an example of failure using a Yocto Project image without your services that fails to shutdown using &quot;systemctl poweroff?&quot;

If you do, could you please provide more information on how to reproduce the issue?

If not, I would suggest that you contact the systemd mailing list or IRC.
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
#systemd on irc.freenode.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51169</commentid>
    <comment_count>2</comment_count>
    <who name="forrest Kenney">gonesailing</who>
    <bug_when>2015-05-20 14:58:25 +0000</bug_when>
    <thetext>We seem to have stumbled across a work around for the issue that does not involve getting rid of the watchdog timers or changing the timing.



Forrest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51170</commentid>
    <comment_count>3</comment_count>
    <who name="forrest Kenney">gonesailing</who>
    <bug_when>2015-05-20 15:02:23 +0000</bug_when>
    <thetext>We seem to have stumbled across a work around for the issue that does not involve getting rid of the watchdog timers or changing the timing.



Forrest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51319</commentid>
    <comment_count>4</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-05-28 11:21:05 +0000</bug_when>
    <thetext>Verified on master: 5170177719a93a69cc6c7c1218b3f26eed82d6e0 

 I followed the steps of reproducing the issue provided by Randy in his comment and running &quot;systemctl poweroff&quot; worked successfully. I used a core-image-sato image on qemux86.
 Based on Forrest last comment I changed the status in &quot;verified worksforme&quot; since from his initial comment I can&apos;t get more details.

Cristina</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>