Merge ~stgraber/simplestreams:master into simplestreams:master

Proposed by Stéphane Graber
Status: Merged
Approved by: Robert C Jennings
Approved revision: 368587ca888687d188cac62ad5ab440934cd87bf
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~stgraber/simplestreams:master
Merge into: simplestreams:master
Diff against target: 28 lines (+10/-0)
1 file modified
tools/make-test-data (+10/-0)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Robert C Jennings (community) Approve
Review via email: mp+382597@code.launchpad.net

Commit message

Skip disk-kvm-img as unsuable under LXD

https://bugs.launchpad.net/cloud-images/+bug/1873809

To post a comment you must log in.
Revision history for this message
Robert C Jennings (rcj) wrote :

This looks good Stéphane, thank you.

review: Approve
Revision history for this message
Server Team CI bot (server-team-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/tools/make-test-data b/tools/make-test-data
index 5343959..0be6c6e 100755
--- a/tools/make-test-data
+++ b/tools/make-test-data
@@ -310,6 +310,11 @@ def create_fake_file(prefix, item):
310 ('disk-kvm-img', '-disk-kvm.img'),310 ('disk-kvm-img', '-disk-kvm.img'),
311 ('rootxz', '-root.tar.xz'),311 ('rootxz', '-root.tar.xz'),
312 ('squashfs', '.squashfs')):312 ('squashfs', '.squashfs')):
313
314 # disk-kvm-img isn't currently bootable under LXD. LP: #1873809
315 if name == "disk-kvm-img":
316 continue
317
313 if (ftype == "lxd.tar.xz" and318 if (ftype == "lxd.tar.xz" and
314 'combined_{}_sha256'.format(name) not in FAKE_DATA[ftype]):319 'combined_{}_sha256'.format(name) not in FAKE_DATA[ftype]):
315 rootpath = item['path'].replace("-lxd.tar.xz", extension)320 rootpath = item['path'].replace("-lxd.tar.xz", extension)
@@ -583,6 +588,11 @@ def create_image_data(query_tree, out_d, streamdir):
583 ('disk-kvm-img', '-disk-kvm.img'),588 ('disk-kvm-img', '-disk-kvm.img'),
584 ('rootxz', '-root.tar.xz'),589 ('rootxz', '-root.tar.xz'),
585 ('squashfs', '.squashfs')):590 ('squashfs', '.squashfs')):
591
592 # disk-kvm-img isn't currently bootable under LXD. LP: #1873809
593 if name == "disk-kvm-img":
594 continue
595
586 root = lxd.replace('-lxd.tar.xz', extension)596 root = lxd.replace('-lxd.tar.xz', extension)
587 combined = os.path.join(dirname, ','.join([lxd, root]))597 combined = os.path.join(dirname, ','.join([lxd, root]))
588 value = get_cache_data(combined, 'sha256')598 value = get_cache_data(combined, 'sha256')

Subscribers

People subscribed via source and target branches