no way to avoid CDN for snap store within launchpad builds

Bug #1653851 reported by Steve Langasek
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Samuele Pedroni
click-updown
Fix Released
Undecided
Simon Davy

Bug Description

There was discussion on this in an internal Canonical RT ticket, but I haven't seen a public bug about this issue, so filing this one.

https://rt.admin.canonical.com/Ticket/Display.html?id=98451

Automated builds of ubuntu-core images on production infrastructure - i.e. Launchpad - requires that Launchpad builders be able to download snap packages from the snap store. This is currently not possible because Launchpad image and .deb package builds have a restrictive firewall by design, which is incompatible with the use of a CDN for the snap store. We need a resolution that makes it possible for launchpad to download snaps as part of image builds, not just for ubuntu-core images, but also for other classic image builds where we want snaps to be pre-installed or locally cached.

Tags: cpc
Steve Langasek (vorlon)
description: updated
summary: - no way to avoid CDN for assertions.ubuntu.com within launchpad builds
+ no way to avoid CDN for snap store within launchpad builds
Dan Watkins (oddbloke)
tags: added: cpc
Revision history for this message
Michael Vogt (mvo) wrote :

Added a server task, hope I got it right (not sure if its click-package-index or software-center-agent or something else). @store-team: if I got it wrong, please retarget appropriately.

Revision history for this message
Steve Langasek (vorlon) wrote :

Per discussion with Celso, it should be possible for the store to not redirect to the CDN when the request comes from Launchpad.

Changed in snappy:
assignee: nobody → Celso Providelo (cprov)
Revision history for this message
Jamie Bennett (jamiebennett) wrote :

What is the timeframe for this change?

Changed in snappy:
status: New → Fix Committed
Changed in click-package-index:
status: New → In Progress
Revision history for this message
Celso Providelo (cprov) wrote :

Jamie and Steve,

We have just released support for `SNAPPY_STORE_NO_CDN=1 snap install foo` in the Store. Tested with snapd 2.21.

affects: click-package-index → click-updown
Celso Providelo (cprov)
Changed in click-updown:
assignee: nobody → Simon Davy (bloodearnest)
Changed in snappy:
assignee: Celso Providelo (cprov) → nobody
Changed in snappy:
assignee: nobody → Samuele Pedroni (pedronis)
Celso Providelo (cprov)
Changed in click-updown:
status: In Progress → Fix Released
Michael Vogt (mvo)
Changed in snappy:
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.