~wesley-wiedenmeier/curtin/curtin-1543263

Viewing all changes in revision 346.

  • Committer: Scott Moser
  • Date: 2016-02-10 01:02:53 UTC
  • mfrom: (344.1.18 trunk.sync-cleanup)
  • Revision ID: smoser@ubuntu.com-20160210010253-n4u75udwoq0v54nb
vmtest: fix importing of xenial images.

This cleans up the importing of images to use a simplestreams
mirror concept rather than the cmdline tools sstream-mirror and
sstream-query.

Theres a main in tests/vmtests/image_sync that allows query and
mirror from a cmdline interface:
   $ python3 -m tests.vmtests.image_sync query vmtest.d
   $ python3 -m tests.vmtests.image_sync mirror -vv \
      vmtest.d arch=amd64 release=trusty

The ./tools/vmtest-sync-images is still functional, and supports
a '--clean' option that clears the mirrors internal and derived data.
This might be useful in the event of a broken mirror output.

The default max images to keep is still 1, and old images should be
removed on a sync/mirror.

The mirror (IMAGE_DIR) now knows about the derived images and names them
vmtest.*. It can be mirrored with something like:
   sstream-mirror mirror $IMAGE_DIR out.d
If that was published on a http mirror, then http mirror would mean
no need of creating the derived files locally.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: