From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D18E5E00815; Wed, 18 Feb 2015 11:01:48 -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.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,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.214.172 listed in list.dnswl.org] * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 818F7E0033D for ; Wed, 18 Feb 2015 11:01:47 -0800 (PST) Received: by mail-ob0-f172.google.com with SMTP id nt9so5766870obb.3 for ; Wed, 18 Feb 2015 11:01:47 -0800 (PST) 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=MFohlTwH0MEhHPH8kE3UKLBbzJu6J+kANWJxfeeLIgU=; b=gsNUxogqWfkzYY+NAQT50XSBHKNoIREfpqIpKAr1QWlvkwdWe3BD+mOjHwhPCtP1Uv gnhzC16WYFoLVU5RNcdvYoPvs/owtOr/SL/i1lKsw3c8+AO5WePZ4NZGPkhFRtUeOm8y 5CN2fENXZ0++L4HsNiAi0eximNKmNRmQZFgRPdjG2wgjVL8ydfeXCjz6eeJPaFg64S7+ mSguPxy+FavJFJ6/EbYrZRNIJBCtT1KCY7aereq2vMIaWyeRN5dBMIhsLtw8jEAWHZqT rooZCTqRZzwJSU1yY/3o9/pFvCd6cSpnof1ISI2YlZ+UaeD09cMbggLvYna6x6uyEPz8 5hgA== X-Gm-Message-State: ALoCoQmcRULBUKa/6UBCsToYpzLQnnKw1pCXJGk4zhyC/+U9zZZ8HmY5d6yLsx7NGKgHGbiywVNV X-Received: by 10.182.20.110 with SMTP id m14mr489359obe.25.1424286107253; Wed, 18 Feb 2015 11:01:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.56.84 with HTTP; Wed, 18 Feb 2015 11:01:27 -0800 (PST) In-Reply-To: References: From: "Damian, Alexandru" Date: Wed, 18 Feb 2015 19:01:27 +0000 Message-ID: To: "Barros Pena, Belen" Cc: "toaster@yoctoproject.org" Subject: Re: [review-request] adamian/201502016_download_bugs_72207206 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, 18 Feb 2015 19:01:48 -0000 Content-Type: multipart/alternative; boundary=001a113306be7b44a3050f617303 --001a113306be7b44a3050f617303 Content-Type: text/plain; charset=UTF-8 Fixed and taken for submission, Cheers, Alex On Tue, Feb 17, 2015 at 5:59 PM, Barros Pena, Belen < belen.barros.pena@intel.com> wrote: > This is working pretty well. The only issue is that the 'download build > log' icon is missing from the project builds page. > > There is a bigger problem, though. Downloading the cooker log works, but > all other artifacts (rootfs file, task logs and other artifacts) are > throwing an error. This is the one you get when you try to download a > rootfs file > > Environment: > > > Request Method: GET > Request URL: > http://127.0.0.1:8000/toastergui/build/1/artifact/imagefile/id/1 > > Django Version: 1.6 > Python Version: 2.7.6 > Installed Applications: > ('django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.messages', > 'django.contrib.sessions', > 'django.contrib.admin', > 'django.contrib.staticfiles', > 'django.contrib.humanize', > 'orm', > 'toastermain', > 'south', > 'bldviewer', > 'toastergui', > 'bldcontrol') > Installed Middleware: > ('django.middleware.common.CommonMiddleware', > 'django.contrib.sessions.middleware.SessionMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'django.contrib.messages.middleware.MessageMiddleware') > > > Traceback: > File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" > in get_response > 114. response = wrapped_callback(request, > *callback_args, **callback_kwargs) > File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py" > in build_artifact > 3055. return _get_be_artifact(request, build_id, > artifact_type, artifact_type) > File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py" > in _get_be_artifact > 3063. file_name = _file_name_for_artifact(b, artifact_type, > artifact_id) > File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py" > in _file_name_for_artifact > 2984. file_name = > Target_Image_File.objects.get(target__build = b, pk = > artifact_id).file_name > File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py" > in get > 151. return self.get_queryset().get(*args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in > get > 298. clone = self.filter(*args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" > in filter > 590. return self._filter_or_exclude(False, *args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" > in _filter_or_exclude > 608. clone.query.add_q(Q(*args, **kwargs)) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py" > in add_q > 1198. clause = self._add_q(where_part, used_aliases) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py" > in _add_q > 1232. current_negated=current_negated) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py" > in build_filter > 1125. clause.add(constraint, AND) > File "/usr/local/lib/python2.7/dist-packages/django/utils/tree.py" in add > 104. data = self._prepare_data(data) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/where.py" > in _prepare_data > 79. value = obj.prepare(lookup_type, value) > File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/where.py" > in prepare > 352. return self.field.get_prep_lookup(lookup_type, value) > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py > " > in get_prep_lookup > 369. return self.get_prep_value(value) > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py > " > in get_prep_value > 613. return int(value) > > Exception Type: ValueError at /toastergui/build/1/artifact/imagefile/id/1 > Exception Value: invalid literal for int() with base 10: 'imagefile' > > > > > > On 16/02/2015 18:28, "Damian, Alexandru" > wrote: > > >Hello, > > > >I have a patch that brings in proper cooker log saving, and downloading, > >after a build. > > > >Can you please review this, see if it works ok ? > > > > > >Cheers, > >Alex > > > > > >-- > >Alex Damian > >Yocto Project > > > >SSG / OTC > > > > > > > > -- Alex Damian Yocto Project SSG / OTC --001a113306be7b44a3050f617303 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Fixed and taken for submission,

Cheers,
Alex
=

On Tue, Feb= 17, 2015 at 5:59 PM, Barros Pena, Belen <belen.barros.pena@inte= l.com> wrote:
This is worki= ng pretty well. The only issue is that the 'download build
log' icon is missing from the project builds page.

There is a bigger problem, though. Downloading the cooker log works, but all other artifacts (rootfs file, task logs and other artifacts) are
throwing an error. This is the one you get when you try to download a
rootfs file

Environment:


Request Method: GET
Request URL:
http://127.0.0.1:8000/toastergui/build/1/artifact/image= file/id/1

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.humanize',
'orm',
'toastermain',
'south',
'bldviewer',
'toastergui',
'bldcontrol')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base= .py"
in get_response
=C2=A0 114.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0response =3D wrapped_callback(request,
*callback_args, **callback_kwargs)
File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py= "
in build_artifact
=C2=A0 3055.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return _get_be_= artifact(request, build_id,
artifact_type, artifact_type)
File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py= "
in _get_be_artifact
=C2=A0 3063.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0file_name =3D _file_name_for_= artifact(b, artifact_type,
artifact_id)
File "/home/yocto/poky-contrib/bitbake/lib/toaster/toastergui/views.py= "
in _file_name_for_artifact
=C2=A0 2984.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0file_name =3D Target_Image_File.objects.get(target__build =3D b, pk =3D
artifact_id).file_name
File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.= py"
in get
=C2=A0 151.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return self.get_queryset().get= (*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py= " in
get
=C2=A0 298.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0clone =3D self.filter(*args, *= *kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py= "
in filter
=C2=A0 590.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return self._filter_or_exclude= (False, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py= "
in _filter_or_exclude
=C2=A0 608.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0clone.query.add_= q(Q(*args, **kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/quer= y.py"
in add_q
=C2=A0 1198.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0clause =3D self._add_q(where_= part, used_aliases)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/quer= y.py"
in _add_q
=C2=A0 1232.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0current_negated=3Dcurrent_negated)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/quer= y.py"
in build_filter
=C2=A0 1125.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0clause.add(constraint, AND) File "/usr/local/lib/python2.7/dist-packages/django/utils/tree.py"= ; in add
=C2=A0 104.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0data =3D self._prepare_data(da= ta)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/wher= e.py"
in _prepare_data
=C2=A0 79.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0value =3D obj.pre= pare(lookup_type, value)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/wher= e.py"
in prepare
=C2=A0 352.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return self.fiel= d.get_prep_lookup(lookup_type, value)
File
"/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init= __.py
"
in get_prep_lookup
=C2=A0 369.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return self.get_= prep_value(value)
File
"/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init= __.py
"
in get_prep_value
=C2=A0 613.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return int(value)

Exception Type: ValueError at /toastergui/build/1/artifact/imagefile/id/1 Exception Value: invalid literal for int() with base 10: 'imagefile'= ;





On 16/02/2015 18:28, "Damian, Alexandru" <alexandru.damian@intel.com>
wrote:

>Hello,
>
>I have a patch that brings in proper cooker log saving, and downloading= ,
>after a build.
>
>Can you please review this, see if it works ok ?
>
>
>Cheers,
>Alex
>
>
>--
>Alex Damian
>Yocto Project
>
>SSG / OTC
>
>
>




--
Alex Damian
Yocto Project
SSG / OTC=C2=A0
--001a113306be7b44a3050f617303--