Merge lp:~allenap/maas/simplestreams-moved-checksummer-back--1.8 into lp:maas/1.8

Proposed by Gavin Panella
Status: Merged
Approved by: Gavin Panella
Approved revision: no longer in the source branch.
Merged at revision: 4050
Proposed branch: lp:~allenap/maas/simplestreams-moved-checksummer-back--1.8
Merge into: lp:maas/1.8
Diff against target: 24 lines (+1/-7)
1 file modified
src/maasserver/bootresources.py (+1/-7)
To merge this branch: bzr merge lp:~allenap/maas/simplestreams-moved-checksummer-back--1.8
Reviewer Review Type Date Requested Status
Mike Pontillo (community) Approve
Blake Rouse (community) Approve
Review via email: mp+273570@code.launchpad.net

Commit message

Backport r4351 from trunk: Find checksummer in simplestreams.util only.

The checksummer name has been republished in simplestreams.util, and the upstream has advised us to find it only there.

Description of the change

Scott has put the checksummer object back into simplestreams.util and advised us to revert our earlier change to find it in simplestreams.checksum_util. This is the backport to 1.8.

To post a comment you must log in.
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Do we know which versions of simplestreams support this? Are we certain that a compliant version of simplestreams already available in our 1.8 PPAs? (or been accepted as a SRU?) Also, is there a [simplestreams] bug we should link this branch to?

review: Needs Information
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Actually even if it's an SRU, we need to ensure it's in the PPA. (because the user may not have enabled -updates).

Do we need a corresponding packaging change here with a version restriction for simplestreams? Or should we keep the try/except style detection code?

Revision history for this message
Blake Rouse (blake-rouse) :
review: Approve
Revision history for this message
Gavin Panella (allenap) wrote :

The version of simplestreams released with the breakage was very soon superseded by a fix released via security, and we don't support Ubuntu with security updates disabled. In other words, I think we're fine.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

OK, sounds good then.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/bootresources.py'
2--- src/maasserver/bootresources.py 2015-09-25 14:38:46 +0000
3+++ src/maasserver/bootresources.py 2015-10-06 17:18:33 +0000
4@@ -98,12 +98,6 @@
5 from twisted.python import log
6
7
8-try:
9- from simplestreams.checksum_util import checksummer
10-except ImportError:
11- from simplestreams.util import checksummer
12-
13-
14 maaslog = get_maas_logger("bootresources")
15
16 # Used by maasserver.middleware.AccessMiddleware to allow
17@@ -659,7 +653,7 @@
18 """Writes the data from the given reader, into the object storage
19 for the given `BootResourceFile`."""
20 ident = self.get_resource_file_log_identifier(rfile)
21- cksummer = checksummer(
22+ cksummer = sutil.checksummer(
23 {'sha256': rfile.largefile.sha256})
24 maaslog.debug("Finalizing boot image %s.", ident)
25

Subscribers

People subscribed via source and target branches

to all changes: