All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] toaster: broken custom.xml and threads patch
@ 2018-05-29  3:26 David Reyna
  2018-05-29  3:26 ` [PATCH 1/2] bitbake: toaster: do not fail on optional 'custom.xml' file David Reyna
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Reyna @ 2018-05-29  3:26 UTC (permalink / raw)
  To: bitbake-devel

From: David Reyna <David.Reyna@windriver.com>

The Toaster for Rocko is broken on HEAD. There are two patches that made it into master and Sumo, but missed Rocko.

The first patch fixes an error that breaks the initialization of Toaster.
The second patches fixes a change in behaviour for Django that creates an extra thread that blocks Toaster from shutting down.

The following changes since commit 7e7ee662f5dea4d090293045f7498093322802cc:

  build-appliance-image: Update to rocko head revision (2018-05-23 17:46:34 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib dreyna/submit/dreyna/toaster/broken_customxml_threads_12751_patch
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=dreyna/submit/dreyna/toaster/broken_customxml_threads_12751_patch

David Reyna (2):
  bitbake: toaster: do not fail on optional 'custom.xml' file
  bitbake: Toaster: fix shutdown and extra threads

 bin/toaster                                                 | 4 ++--
 lib/toaster/bldcontrol/management/commands/checksettings.py | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] bitbake: toaster: do not fail on optional 'custom.xml' file
  2018-05-29  3:26 [PATCH 0/2] toaster: broken custom.xml and threads patch David Reyna
@ 2018-05-29  3:26 ` David Reyna
  2018-05-29  3:26 ` [PATCH 2/2] bitbake: Toaster: fix shutdown and extra threads David Reyna
  2018-05-29 14:22 ` [PATCH 0/2] toaster: broken custom.xml and threads patch akuster808
  2 siblings, 0 replies; 4+ messages in thread
From: David Reyna @ 2018-05-29  3:26 UTC (permalink / raw)
  To: bitbake-devel

From: David Reyna <David.Reyna@windriver.com>

Explicitly capture and ignore errors when trying to load the optional
'custom.xml' fixture file.

[YOCTO #12554]

(Bitbake rev: 132458939d3987ebc58685397714af3d6d5cd8fd)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/toaster/bldcontrol/management/commands/checksettings.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/toaster/bldcontrol/management/commands/checksettings.py b/lib/toaster/bldcontrol/management/commands/checksettings.py
index 582114a..823c6f1 100644
--- a/lib/toaster/bldcontrol/management/commands/checksettings.py
+++ b/lib/toaster/bldcontrol/management/commands/checksettings.py
@@ -107,7 +107,10 @@ class Command(BaseCommand):
                                 action="ignore",
                                 message="^.*No fixture named.*$")
                             print("Importing custom settings if present")
-                            call_command("loaddata", "custom")
+                            try:
+                                call_command("loaddata", "custom")
+                            except:
+                                print("NOTE: optional fixture 'custom' not found")
 
                         # we run lsupdates after config update
                         print("\nFetching information from the layer index, "
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] bitbake: Toaster: fix shutdown and extra threads
  2018-05-29  3:26 [PATCH 0/2] toaster: broken custom.xml and threads patch David Reyna
  2018-05-29  3:26 ` [PATCH 1/2] bitbake: toaster: do not fail on optional 'custom.xml' file David Reyna
@ 2018-05-29  3:26 ` David Reyna
  2018-05-29 14:22 ` [PATCH 0/2] toaster: broken custom.xml and threads patch akuster808
  2 siblings, 0 replies; 4+ messages in thread
From: David Reyna @ 2018-05-29  3:26 UTC (permalink / raw)
  To: bitbake-devel

From: David Reyna <David.Reyna@windriver.com>

Fix typo in shutdown code to kill threads when "kill -0" is not enough.
Use the '--noreload' flag for 'runserver' so that there are no extra
and unaccounted threads.

[YOCTO #12555]

(Bitbake rev: 256990943075e89cb9aee2bc6488344b6783e07b)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 bin/toaster | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/toaster b/bin/toaster
index 4036f0a..ed365ee 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -68,7 +68,7 @@ webserverKillAll()
         if [ -f ${pidfile} ]; then
             pid=`cat ${pidfile}`
             while kill -0 $pid 2>/dev/null; do
-                kill -SIGTERM -$pid 2>/dev/null
+                kill -SIGTERM $pid 2>/dev/null
                 sleep 1
             done
             rm  ${pidfile}
@@ -91,7 +91,7 @@ webserverStartAll()
 
     echo "Starting webserver..."
 
-    $MANAGE runserver "$ADDR_PORT" \
+    $MANAGE runserver --noreload "$ADDR_PORT" \
            </dev/null >>${BUILDDIR}/toaster_web.log 2>&1 \
            & echo $! >${BUILDDIR}/.toastermain.pid
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] toaster: broken custom.xml and threads patch
  2018-05-29  3:26 [PATCH 0/2] toaster: broken custom.xml and threads patch David Reyna
  2018-05-29  3:26 ` [PATCH 1/2] bitbake: toaster: do not fail on optional 'custom.xml' file David Reyna
  2018-05-29  3:26 ` [PATCH 2/2] bitbake: Toaster: fix shutdown and extra threads David Reyna
@ 2018-05-29 14:22 ` akuster808
  2 siblings, 0 replies; 4+ messages in thread
From: akuster808 @ 2018-05-29 14:22 UTC (permalink / raw)
  To: David Reyna, bitbake-devel



On 05/28/2018 08:26 PM, David Reyna wrote:
> From: David Reyna <David.Reyna@windriver.com>
>
> The Toaster for Rocko is broken on HEAD. There are two patches that made it into master and Sumo, but missed Rocko.
>
> The first patch fixes an error that breaks the initialization of Toaster.
> The second patches fixes a change in behaviour for Django that creates an extra thread that blocks Toaster from shutting down.
>
> The following changes since commit 7e7ee662f5dea4d090293045f7498093322802cc:
>
>   build-appliance-image: Update to rocko head revision (2018-05-23 17:46:34 +0100)

thanks for the head up.

- armin
>
> are available in the git repository at:
>
>   git://git.yoctoproject.org/poky-contrib dreyna/submit/dreyna/toaster/broken_customxml_threads_12751_patch
>   http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=dreyna/submit/dreyna/toaster/broken_customxml_threads_12751_patch
>
> David Reyna (2):
>   bitbake: toaster: do not fail on optional 'custom.xml' file
>   bitbake: Toaster: fix shutdown and extra threads
>
>  bin/toaster                                                 | 4 ++--
>  lib/toaster/bldcontrol/management/commands/checksettings.py | 5 ++++-
>  2 files changed, 6 insertions(+), 3 deletions(-)
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-29 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-29  3:26 [PATCH 0/2] toaster: broken custom.xml and threads patch David Reyna
2018-05-29  3:26 ` [PATCH 1/2] bitbake: toaster: do not fail on optional 'custom.xml' file David Reyna
2018-05-29  3:26 ` [PATCH 2/2] bitbake: Toaster: fix shutdown and extra threads David Reyna
2018-05-29 14:22 ` [PATCH 0/2] toaster: broken custom.xml and threads patch akuster808

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.