From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 82221E00AD7; Wed, 27 Jan 2016 08:20:59 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, HTML_MESSAGE, NORMAL_HTTP_TO_IP, RCVD_IN_DNSWL_LOW,URI_NOVOWEL,WEIRD_PORT autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.174 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (sujith.h[at]gmail.com) * 0.5 URI_NOVOWEL URI: URI hostname has long non-vowel sequence * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * 0.0 NORMAL_HTTP_TO_IP URI: URI host has a public dotted-decimal IPv4 * address * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 58D0FE00AB5 for ; Wed, 27 Jan 2016 08:20:54 -0800 (PST) Received: by mail-qk0-f174.google.com with SMTP id x1so5377055qkc.1 for ; Wed, 27 Jan 2016 08:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=TIwEAYARvIyMXaGlFs8Lwx8b9kng1p0AzF3HccaGn2Q=; b=U8bl+ytXJxOYJ3DvY2SN5lS84H4D61FPKxi2dQ5G+A76kpQVkblY2zOlDwEdg+zu5F qJjdGNFk7j38M+o9zcsTbQF1zlIYEA6ZJe3/pZ7TMr5dfxr31HoFMBsUYtg/2rq+g3m2 JVetMB8n1XJoaRDl4BfIgnJykpCfZhbvXcYpMoS/q0MP1w0XQBNEVIt9/UlXQ+H6gp41 6I54BxJ3exqgzd6dWV3RutGhW+W8yKVFkWMpwKRsg77pX3TvxDOHbxht0uLwagLrRhWZ T0EuQzEFJr7p2eo3/26AfGtYKYOSAJrQzMQqTdiuT4+ndpVi3+gCXvH0Sjjzq7cyVvKK iAfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=TIwEAYARvIyMXaGlFs8Lwx8b9kng1p0AzF3HccaGn2Q=; b=hrrCXoT7ZNuBp0wgVKwExJI8Z8w6JKDkPZBZRdHlUtV4nGKm/UkGKRgc+O37xhjDvq K0SdYLSZaxL1y9dXlL9tEn69Pt9gjgpObGywcKJ9qojUWwJAM/VpzuERUgb0r3dp5PmN WBwj/LYGKniaetyQHf3ZfoMaSUBi9W3Oq5WTb3yoMvT17Hb2/6ZWq5UWLdW+io17pBJh Giz7v3TKbWkM1WfvQyimXMM4AIAbCRlKQezDiyTG9sZiPkqjA6tpgU0fntOe1IFjasXE 1Vhd08JK0+y3P5UE7otU0vRX6+QfJu70JSiHzaSX6L40uaxVRWKb/Zydc/6TPAWIHj03 zpxg== X-Gm-Message-State: AG10YOQEA75mLmyq14Gr69KS47TlzXn9KlF78OfqTFMBZ04Tn6Uo1vZ8Mbj624W8eVs3oI+1QZMCx6jpA4HWWA== X-Received: by 10.55.40.70 with SMTP id o67mr34626034qkh.78.1453911654066; Wed, 27 Jan 2016 08:20:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.6.129 with HTTP; Wed, 27 Jan 2016 08:20:34 -0800 (PST) In-Reply-To: References: <20151218134627.GA27311@linux.intel.com> From: sujith h Date: Wed, 27 Jan 2016 21:50:34 +0530 Message-ID: To: Brian Avery Cc: "toaster@yoctoproject.org" Subject: Re: Build cancellation from toaster X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2016 16:20:59 -0000 Content-Type: multipart/alternative; boundary=001a1140a758aceffe052a532f44 --001a1140a758aceffe052a532f44 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have updated my patch set : http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=3Dsujith/toas= ter-build-cancel13 This would help to hide cancel button for builds triggered from command line in toaster. On Tue, Jan 26, 2016 at 7:52 PM, sujith h wrote: > > > On Wed, Jan 20, 2016 at 10:26 PM, Brian Avery > wrote: > >> Pointer to xmlrpc test client - >> https://bitbucket.org/srccode/xmlrpc-test-tool > > > Today I gave a try with xmlrpc-test-tool. I tried to install php on my > local machine, followed by apache and then configured it to get it workin= g > with php. Using this tool, I was getting the error as attached in the > screenshot. > >> >> >> -b >> >> On Mon, Jan 18, 2016 at 8:12 AM, sujith h wrote: >> > >> > >> > On Mon, Jan 18, 2016 at 1:13 AM, Barros Pena, Belen >> > wrote: >> >> >> >> >> >> >> >> On 13/01/2016 16:47, "sujith h" wrote: >> >> >> >> > >> >> >I have updated another patch set with which I have verified with: >> >> > >> >> >a) cancellation of a normal build >> >> > >> >> >b) run again and cancel the build >> >> > >> >> >c) stop toaster + start toaster + run again and cancel the build >> >> > >> >> >> >> > > >> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=3Dsujith/t= oast >> >> >er-build-cancel12 >> >> >> >> Sorry for the delay in looking into this. Cancellation seems to be >> working >> >> well for me for any builds I start from Toaster. However, it doesn't >> seem >> >> to work for builds I start from the command line and I track through >> >> Toaster. For those builds, a 'cancel' button appears, but when I clic= k >> it, >> >> nothing happens: the build proceeds until it completes. >> >> >> >> I am not even sure if the 'cancel' functionality can work for builds >> >> started from the command line, although it would be great if it did. >> If it >> >> is not possible to make it work, then the cancel button should not >> display >> >> for those builds. We can provide a message instead, as we do in the >> case >> >> of the 'run again' button, explaining that builds started from the >> command >> >> line can only be cancelled from the command line. >> > >> > >> > Somehow when i try to use the same logic to cancel the build triggered >> from >> > command line ( with small modification in the code though), I am getti= ng >> > error in the toaster_web.log as: >> > >> > ProtocolError: > Unavailable> >> > >> > Not able to understand why it is not able to connect to the port. >> Because as >> > per my understanding when a build is triggered from toaster, we connec= t >> to >> > the host:port and execute the commands. The runcommand is failing badl= y >> with >> > the log: >> > >> > 2016-01-18 16:06:05,608 ERROR Internal Server Error: >> > /toastergui/project/1/builds/ >> > Traceback (most recent call last): >> > File >> > >> "/home/sujith/build/poky-push/venv/lib/python2.7/site-packages/django/co= re/handlers/base.py", >> > line 132, in get_response >> > response =3D wrapped_callback(request, *callback_args, >> **callback_kwargs) >> > File >> > "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/views.py"= , >> line >> > 171, in returned_wrapper >> > context =3D view(request, *args, **kwargs) >> > File >> > "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/views.py"= , >> line >> > 2896, in projectbuilds >> > bbctrl.forceShutDown() >> > File >> > >> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbcontrolle= r.py", >> > line 73, in forceShutDown >> > return self._runCommand(["stateForceShutdown"]) >> > File >> > >> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbcontrolle= r.py", >> > line 50, in _runCommand >> > result, error =3D self.connection.runCommand(command) >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1240, in __call__ >> > return self.__send(self.__name, args) >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1599, in __request >> > verbose=3Dself.__verbose >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1280, in request >> > return self.single_request(host, handler, request_body, verbose) >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1328, in single_reque= st >> > response.msg, >> > ProtocolError: > Unavailable> >> > Internal Server Error: /toastergui/project/1/builds/ >> > Traceback (most recent call last): >> > File >> > >> "/home/sujith/build/poky-push/venv/lib/python2.7/site-packages/django/co= re/handlers/base.py", >> > line 132, in get_response >> > response =3D wrapped_callback(request, *callback_args, >> **callback_kwargs) >> > File >> > "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/views.py"= , >> line >> > 171, in returned_wrapper >> > context =3D view(request, *args, **kwargs) >> > File >> > "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/views.py"= , >> line >> > 2896, in projectbuilds >> > bbctrl.forceShutDown() >> > File >> > >> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbcontrolle= r.py", >> > line 73, in forceShutDown >> > return self._runCommand(["stateForceShutdown"]) >> > File >> > >> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbcontrolle= r.py", >> > line 50, in _runCommand >> > result, error =3D self.connection.runCommand(command) >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1240, in __call__ >> > return self.__send(self.__name, args) >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1599, in __request >> > verbose=3Dself.__verbose >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1280, in request >> > return self.single_request(host, handler, request_body, verbose) >> > File "/usr/lib64/python2.7/xmlrpclib.py", line 1328, in single_reque= st >> > response.msg, >> > ProtocolError: > Unavailable> >> > [18/Jan/2016 16:06:05] "POST /toastergui/project/1/builds/ HTTP/1.1" 5= 00 >> > 13414 >> > >> > >> > Any helping hand would be appreciated. More over I would also like to >> know >> > if we can pass commands to builds triggered from command line? >> > >> > Thanks, >> > Sujith H >> > >> > -- >> > =E0=B4=B8=E0=B5=81=E0=B4=9C=E0=B4=BF=E0=B4=A4=E0=B5=8D =E0=B4=B9=E0=B4= =B0=E0=B4=BF=E0=B4=A6=E0=B4=BE=E0=B4=B8=E0=B4=A8=E0=B5=8D >> > Bangalore >> > Contributor to KDE project >> > http://fci.wikia.com/wiki/Anti-DRM-Campaign >> > http://sujithh.info >> > >> > -- >> > _______________________________________________ >> > toaster mailing list >> > toaster@yoctoproject.org >> > https://lists.yoctoproject.org/listinfo/toaster >> > >> > > > > -- > =E0=B4=B8=E0=B5=81=E0=B4=9C=E0=B4=BF=E0=B4=A4=E0=B5=8D =E0=B4=B9=E0=B4=B0= =E0=B4=BF=E0=B4=A6=E0=B4=BE=E0=B4=B8=E0=B4=A8=E0=B5=8D > Bangalore > Contributor to KDE project > http://fci.wikia.com/wiki/Anti-DRM-Campaign > http://sujithh.info > --=20 =E0=B4=B8=E0=B5=81=E0=B4=9C=E0=B4=BF=E0=B4=A4=E0=B5=8D =E0=B4=B9=E0=B4=B0= =E0=B4=BF=E0=B4=A6=E0=B4=BE=E0=B4=B8=E0=B4=A8=E0=B5=8D Bangalore Contributor to KDE project http://fci.wikia.com/wiki/Anti-DRM-Campaign http://sujithh.info --001a1140a758aceffe052a532f44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This would help to hide cancel butt= on for builds triggered from command line in toaster.

On Tue, Jan 26,= 2016 at 7:52 PM, sujith h <sujith.h@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">


On We= d, Jan 20, 2016 at 10:26 PM, Brian Avery <avery.brian@gmail.com>= ; wrote:
Pointe= r to xmlrpc test client -
https://bitbucket.org/srccode/xmlrpc-test-tool

Today I gave a try with xmlrpc-test-too= l. I tried to install php on my local machine, followed by apache and then = configured it to get it working with php. Using this tool, I was getting th= e error as attached in the screenshot.=C2=A0


-b

On Mon, Jan 18, 2016 at 8:12 AM, sujith h <sujith.h@gmail.com> wrote:
>
>
> On Mon, Jan 18, 2016 at 1:13 AM, Barros Pena, Belen
> <b= elen.barros.pena@intel.com> wrote:
>>
>>
>>
>> On 13/01/2016 16:47, "sujith h" <sujith.h@gmail.com> wrote:
>>
>> >
>> >I have updated another patch set with which I have verified wi= th:
>> >
>> >a) cancellation of a normal build
>> >
>> >b) run again and cancel the build
>> >
>> >c) stop toaster + start toaster + run again=C2=A0 =C2=A0and ca= ncel the build
>> >
>>
>> > >http:/= /git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=3Dsujith/toast<= br> >> >er-build-cancel12
>>
>> Sorry for the delay in looking into this. Cancellation seems to be= working
>> well for me for any builds I start from Toaster. However, it doesn= 't seem
>> to work for builds I start from the command line and I track throu= gh
>> Toaster. For those builds, a 'cancel' button appears, but = when I click it,
>> nothing happens: the build proceeds until it completes.
>>
>> I am not even sure if the 'cancel' functionality can work = for builds
>> started from the command line, although it would be great if it di= d. If it
>> is not possible to make it work, then the cancel button should not= display
>> for those builds. We can provide a message instead, as we do in th= e case
>> of the 'run again' button, explaining that builds started = from the command
>> line can only be cancelled from the command line.
>
>
> Somehow when i try to use the same logic to cancel the build triggered= from
> command line ( with small modification in the code though), I am getti= ng
> error in the toaster_web.log as:
>
> ProtocolError: <ProtocolError for 0.0.0.0:42952/: 503 Service Unava= ilable>
>
> Not able to understand why it is not able to connect to the port. Beca= use as
> per my understanding when a build is triggered from toaster, we connec= t to
> the host:port and execute the commands. The runcommand is failing badl= y with
> the log:
>
> 2016-01-18 16:06:05,608 ERROR Internal Server Error:
> /toastergui/project/1/builds/
> Traceback (most recent call last):
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/venv/lib/python2.7/site-packages/dj= ango/core/handlers/base.py",
> line 132, in get_response
>=C2=A0 =C2=A0 =C2=A0response =3D wrapped_callback(request, *callback_ar= gs, **callback_kwargs)
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/view= s.py", line
> 171, in returned_wrapper
>=C2=A0 =C2=A0 =C2=A0context =3D view(request, *args, **kwargs)
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/view= s.py", line
> 2896, in projectbuilds
>=C2=A0 =C2=A0 =C2=A0bbctrl.forceShutDown()
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbco= ntroller.py",
> line 73, in forceShutDown
>=C2=A0 =C2=A0 =C2=A0return self._runCommand(["stateForceShutdown&q= uot;])
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbco= ntroller.py",
> line 50, in _runCommand
>=C2=A0 =C2=A0 =C2=A0result, error =3D self.connection.runCommand(comman= d)
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 240, in __call__
>=C2=A0 =C2=A0 =C2=A0return self.__send(self.__name, args)
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 599, in __request
>=C2=A0 =C2=A0 =C2=A0verbose=3Dself.__verbose
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 280, in request
>=C2=A0 =C2=A0 =C2=A0return self.single_request(host, handler, request_b= ody, verbose)
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 328, in single_request
>=C2=A0 =C2=A0 =C2=A0response.msg,
> ProtocolError: <ProtocolError for 0.0.0.0:42952/: 503 Service Unava= ilable>
> Internal Server Error: /toastergui/project/1/builds/
> Traceback (most recent call last):
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/venv/lib/python2.7/site-packages/dj= ango/core/handlers/base.py",
> line 132, in get_response
>=C2=A0 =C2=A0 =C2=A0response =3D wrapped_callback(request, *callback_ar= gs, **callback_kwargs)
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/view= s.py", line
> 171, in returned_wrapper
>=C2=A0 =C2=A0 =C2=A0context =3D view(request, *args, **kwargs)
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/toastergui/view= s.py", line
> 2896, in projectbuilds
>=C2=A0 =C2=A0 =C2=A0bbctrl.forceShutDown()
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbco= ntroller.py",
> line 73, in forceShutDown
>=C2=A0 =C2=A0 =C2=A0return self._runCommand(["stateForceShutdown&q= uot;])
>=C2=A0 =C2=A0File
> "/home/sujith/build/poky-push/bitbake/lib/toaster/bldcontrol/bbco= ntroller.py",
> line 50, in _runCommand
>=C2=A0 =C2=A0 =C2=A0result, error =3D self.connection.runCommand(comman= d)
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 240, in __call__
>=C2=A0 =C2=A0 =C2=A0return self.__send(self.__name, args)
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 599, in __request
>=C2=A0 =C2=A0 =C2=A0verbose=3Dself.__verbose
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 280, in request
>=C2=A0 =C2=A0 =C2=A0return self.single_request(host, handler, request_b= ody, verbose)
>=C2=A0 =C2=A0File "/usr/lib64/python2.7/xmlrpclib.py", line 1= 328, in single_request
>=C2=A0 =C2=A0 =C2=A0response.msg,
> ProtocolError: <ProtocolError for 0.0.0.0:42952/: 503 Service Unava= ilable>
> [18/Jan/2016 16:06:05] "POST /toastergui/project/1/builds/ HTTP/1= .1" 500
> 13414
>
>
> Any helping hand would be appreciated. More over I would also like to = know
> if we can pass commands to builds triggered from command line?
>
> Thanks,
> Sujith H
>
> --
> =E0=B4=B8=E0=B5=81=E0=B4=9C=E0=B4=BF=E0=B4=A4=E0=B5=8D =E0=B4=B9=E0=B4= =B0=E0=B4=BF=E0=B4=A6=E0=B4=BE=E0=B4=B8=E0=B4=A8=E0=B5=8D
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info
>
> --
> _______________________________________________
> toaster mailing list
> toaster@= yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster<= /a>
>



--
=E0=B4=B8=E0=B5=81=E0=B4=9C=E0=B4=BF=E0=B4=A4=E0=B5=8D =E0=B4=B9=E0= =B4=B0=E0=B4=BF=E0=B4=A6=E0=B4=BE=E0=B4=B8=E0=B4=A8=E0=B5=8D
Bangalore<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Ant= i-DRM-Campaign
<Blog> http://sujithh.info
--001a1140a758aceffe052a532f44--