Importing blueprints unreliable

Bug #665589 reported by Dave Walker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Summit
Fix Released
High
Penelope Stowe

Bug Description

Importing blueprints can often be unreliable, as the xml source often produces 502.

Suggesting, catch error - if 502, retry x 5 with an exponential backoff sleep.

Updating uds-n
Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 362, in execute_manager
    utility.execute()
  File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "/srv/summit.ubuntu.com/summit/../summit/schedule/management/commands/lpupdate.py", line 39, in handle
    summit.update_from_launchpad()
  File "/srv/summit.ubuntu.com/summit/../summit/schedule/models/summitmodel.py", line 163, in update_from_launchpad
    export = urllib2.urlopen(url)
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 502: Bad Gateway

Tags: bitesize

Related branches

Changed in summit:
status: New → Confirmed
Nigel Babu (nigelbabu)
tags: added: bitesize
Nigel Babu (nigelbabu)
Changed in summit:
assignee: nobody → Penelope Stowe (pendulum)
status: Confirmed → In Progress
Nigel Babu (nigelbabu)
Changed in summit:
status: In Progress → Fix Committed
Changed in summit:
importance: Undecided → High
Changed in summit:
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.