Extend ubuntu-ci to download the golden image from glance

Bug #1291036 reported by Evan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
Medium
Chris Johnston
Ubuntu CI Services
Fix Released
Medium
Chris Johnston

Bug Description

8:18 PM <ev> okay, so let's extend ubuntu-ci to download an image
8:18 PM <ev> sound sensible?
8:18 PM <ev> it has the creds to hand
8:18 PM <doanac> ev: nice idea.

Tags: airline

Related branches

Revision history for this message
Evan (ev) wrote :

Please use python-glanceclient for this (with a dep added under debian/control).

Revision history for this message
Andy Doan (doanac) wrote :

I just poked around on this some and glance seems to be fighting me a bit. I get 403 errors when i try to download anything. Any ideas?

Revision history for this message
Andy Doan (doanac) wrote :

i'm starting to think that even if we get config stuff figured out for glance, its still going to be a pain or error prone making this "just work". I'm wondering if we should just push the image into swift during the image-builder step with a name like:

 ticket-<id>/img.qcow2

then we have a nice convention for finding images (not looking up glance image ids). And the CLI can do a simple swift download (its uses the same auth information)

Revision history for this message
Vincent Ladeuil (vila) wrote :

According to the discussion on IRC yesterday, this is an issue on hpcloud but not on canonistack so I'd rather invest time fixing the missing bits (some config in glance) and use glance properly than working around and adding more cruft to swift.

But whatever works in the short term...

Revision history for this message
Evan (ev) wrote :

> I'm wondering if we should just push the image into swift during the
> image-builder step with a name like:
>
> ticket-<id>/img.qcow2

Yes please. I'm coming around to the idea that this is an artifact of the process that should be separately managed from the images available to boot from. We don't know the risks associated with keeping a growing set of images available in glance forever just so people can download them. Also as mentioned in email, HP Cloud doesn't allow downloading of images from glance.

This should presumably make things a bit easier for the CLI, as it already needs to know how to talk to Swift. It makes fixing bug 1288710 (kill ~/.ubuntu-ci by talking to an intermediary that has the Swift creds) straightforward because we don't need to create proxies for both swift and glance.

I think the CLI should still have a method for "give me the image that's the current release candidate", where this is defined as the image for the most recent successfully completed ticket.

Andy Doan (doanac)
Changed in ubuntu-ci-services-itself:
status: Triaged → In Progress
Andy Doan (doanac)
Changed in ubuntu-ci-services-itself:
status: In Progress → Fix Committed
Changed in ubuntu-ci-services-itself:
status: Fix Committed → Fix Released
Ursula Junque (ursinha)
Changed in uci-engine:
assignee: nobody → Chris Johnston (cjohnston)
importance: Undecided → Medium
milestone: none → phase-0
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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