image builder fails with TypeError: url_for() got an unexpected keyword argument 'region_name'

Bug #1287203 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
Critical
Paul Larson
Ubuntu CI Services
Fix Released
Critical
Paul Larson

Bug Description

https://swift.canonistack.canonical.com/v1/AUTH_4d74fc75664541b3a754cc10d468c124/ticket-1/imagebuild-output.log

[2014-03-03 13:59:35,214] __main__:INFO:on_message: {"progress_trigger": "lander_master-1-imgbuilder", "series": "saucy", "image": "http://cloud-images.ubuntu.com/releases/13.10/release-20131015/ubuntu-13.10-server-cloudimg-amd64-disk1.img", "ppa_list": ["ppa:vila/ci-pool-002"], "package_list": ["lintian4python"], "state": "WAITING", "ticket_id": "1"}
[2014-03-03 14:05:39,060] __main__:ERROR:Image build failed:
Traceback (most recent call last):
  File "./image-builder/run_worker", line 62, in on_message
    image_id = modify_image(image, repos, series, packages, status_cb)
  File "/srv/imagebuild_worker/image-builder/imagebuilder/cloud_image.py", line 185, in modify_image
    glance = ImageStore(auth_config)
  File "./image-builder/../ci-utils/ci_utils/image_store/__init__.py", line 35, in __init__
    region_name=region)
TypeError: url_for() got an unexpected keyword argument 'region_name'

<vila> ubuntu@juju-cs2-machine-18:/srv/imagebuild_worker$ apt-cache policy python-glanceclient
<vila> python-glanceclient:
<vila> Installed: 1:0.11.0-0ubuntu1~cloud0
<vila> Candidate: 1:0.11.0-0ubuntu1~cloud0
<vila> Version table:
<vila> *** 1:0.11.0-0ubuntu1~cloud0 0
<vila> 500 http://ppa.launchpad.net/canonical-ci-engineering/ci-airline-phase-0/ubuntu/ precise/main amd64 Packages
<vila> 100 /var/lib/dpkg/status

<plars> vila: wait, actually check the keystoneclient version
<vila> Installed: 1:0.3.2-0ubuntu1~cloud0

<plars> vila: yeah, they changed the api - we were using the one from pypi which supported specifying the region name, now we are using an older packaged version (but supposed to be the same api version) which does not let you specify the region name
<vila> plars: aaaargh
<plars> vila: mind filing a bug and assigning it to me? I'll take a look today. Worst case, we could build the newer version in our ppa. I'll see if there's some other way to fix it though
<vila> plars: filing
<plars> new version: def url_for(self, attr=None, filter_value=None,
<plars> service_type='identity', endpoint_type='publicURL',
<plars> region_name=None):
<plars> old version: def url_for(self, attr=None, filter_value=None,
<plars> service_type='identity', endpoint_type='publicURL'):

Tags: airline

Related branches

Vincent Ladeuil (vila)
tags: added: airline
Changed in ubuntu-ci-services-itself:
assignee: nobody → Paul Larson (pwlars)
status: New → Confirmed
importance: Undecided → Critical
Paul Larson (pwlars)
Changed in ubuntu-ci-services-itself:
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in ubuntu-ci-services-itself:
status: In Progress → Fix Released
Ursula Junque (ursinha)
Changed in uci-engine:
assignee: nobody → Paul Larson (pwlars)
importance: Undecided → Critical
status: New → 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.