OOPS on /builders page

Bug #904338 reported by Данило Шеган
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Offspring
Fix Released
High
Unassigned
Offspring
Fix Released
Undecided
Unassigned

Bug Description

When I am logged in as one of offspring admins, I get an OOPS on offspring.linaro.org/builders

Traceback (most recent call last):
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/srv/offspring.linaro.org/lib/offspring/web/queuemanager/views.py", line 102, in builders
    context_instance=RequestContext(request))
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/shortcuts/__init__.py", line 20, in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/loader.py", line 186, in render_to_string
    return t.render(context_instance)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 173, in render
    return self._render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 809, in render_node
    return node.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/loader_tags.py", line 125, in render
    return compiled_parent._render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 809, in render_node
    return node.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 809, in render_node
    return node.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/defaulttags.py", line 174, in render
    nodelist.append(node.render(context))
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/defaulttags.py", line 232, in render
    return self.nodelist_true.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 809, in render_node
    return node.render(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 844, in render
    output = self.filter_expression.resolve(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 553, in resolve
    obj = self.var.resolve(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 696, in resolve
    value = self._resolve_lookup(context)
  File "/srv/offspring.linaro.org/.virtualenv/lib/python2.6/site-packages/django/template/__init__.py", line 725, in _resolve_lookup
    current = getattr(current, bit)
  File "/srv/offspring.linaro.org/lib/offspring/web/queuemanager/models.py", line 409, in estimated_completion
    if int(hours) < 1:
ValueError: invalid literal for int() with base 10: '27 days, 23'

Changed in linaro-offspring:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Данило Шеган (danilo) wrote :

This seems to be fixed with the last night's rollout.

Changed in linaro-offspring:
status: Triaged → Fix Released
Changed in linaro-offspring:
status: Fix Released → New
description: updated
Revision history for this message
Guilherme Salgado (salgado) wrote :

I don't think it's been fixed; it looks more like a transient error (possibly because of data for one of the current jobs) as I see a couple of them from last month as well and nothing changed in Offspring that would fix this.

Revision history for this message
Kevin McDermott (bigkevmcd) wrote :

I think this will be fixed by my recent changes to this code (I removed the original code, and replaced it with a different solution).

Revision history for this message
Данило Шеган (danilo) wrote :

To roll out the latest code, here's what we need to do, according to Guilherme:

"So, the idea is to push lp:~salgado/offspring/linaro-new onto
lp:~linaro-infrastructure/offspring/linaro, do a regular deployment[1]
and hope for the best. :)

[1] https://wiki.linaro.org/Platform/Infrastructure/DeployingOffspring
"

Changed in linaro-offspring:
status: New → Triaged
milestone: none → 2012.03
Revision history for this message
James Tunnicliffe (dooferlad) wrote :

Is it correct that lp:~salgado/offspring/linaro-new isn't ready to merge yet though, or there would be a merge proposal in place?

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 904338] Re: OOPS on /builders page

On 07/03/12 07:49, James Tunnicliffe wrote:
> Is it correct that lp:~salgado/offspring/linaro-new isn't ready to merge
> yet though, or there would be a merge proposal in place?

That branch is based on trunk with the final two privacy-related changes
backported from our linaro branch. It has no new code apart from what's
coming from trunk and merging it into the 'linaro' branch causes too
many (21 to be precise) really tricky conflicts so the plan is to just
push it on top of 'linaro' and ask for a deployment.

Revision history for this message
James Tunnicliffe (dooferlad) wrote :

OK, we are going to deploy lp:~salgado/offspring/linaro-new, but need a strategy for rewinding if things go wrong...

Revision history for this message
Guilherme Salgado (salgado) wrote :

On 13/03/12 10:30, James Tunnicliffe wrote:
> OK, we are going to deploy lp:~salgado/offspring/linaro-new, but need a
> strategy for rewinding if things go wrong...

I think the best way forward is to deploy from the linaro-new branch
(keeping the existing linaro branch unchanged). That way if anything
goes wrong we can just deploy from linaro to revert it. Otherwise after
a few days we just push linaro-new on top of linaro.

Revision history for this message
James Tunnicliffe (dooferlad) wrote :
Changed in linaro-offspring:
status: Triaged → In Progress
status: In Progress → Fix Committed
Changed in offspring:
status: New → Fix Committed
Changed in linaro-offspring:
status: Fix Committed → Fix Released
Changed in offspring:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.