Importing blueprints unreliable

Bug #665589 reported by Dave Walker on 2010-10-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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 "./", line 11, in <module>
  File "/usr/lib/pymodules/python2.6/django/core/management/", line 362, in execute_manager
  File "/usr/lib/pymodules/python2.6/django/core/management/", line 303, in execute
  File "/usr/lib/pymodules/python2.6/django/core/management/", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/pymodules/python2.6/django/core/management/", line 222, in execute
    output = self.handle(*args, **options)
  File "/srv/", line 39, in handle
  File "/srv/", line 163, in update_from_launchpad
    export = urllib2.urlopen(url)
  File "/usr/lib/python2.6/", line 126, in urlopen
    return, data, timeout)
  File "/usr/lib/python2.6/", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.6/", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 502: Bad Gateway

Related branches

Changed in summit:
status: New → Confirmed
Nigel Babu (nigelbabu) on 2011-06-03
tags: added: bitesize
Nigel Babu (nigelbabu) on 2011-06-08
Changed in summit:
assignee: nobody → Penelope Stowe (pendulum)
status: Confirmed → In Progress
Nigel Babu (nigelbabu) on 2011-06-10
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  Edit
Everyone can see this information.

Other bug subscribers