snappy ssh setup ERROR: The --channel option does not work with --image

Bug #1474735 reported by Federico Gimenez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Hi, I'm getting the error in the bug title when trying to execute adt-run over a snappy image, debug log attached. autopkgtest version:

$ apt-cache policy autopkgtest
  Installed: 3.16
  Candidate: 3.16
  Version table:
 *** 3.16 0
        500 http://es.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

Thanks!

Related branches

Revision history for this message
Federico Gimenez (fgimenez) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

The error message says it all. If you use --image, then it does not make sense to specify --release and --channel, as these are for using ubuntu-device-flash to create a temporary image to run the test in. Your existing image already has a release and channel.

Changed in autopkgtest (Ubuntu):
status: New → Invalid
Revision history for this message
Federico Gimenez (fgimenez) wrote :

From the log attached you can see that the command used is:

$ /usr/bin/adt-run -B --setup-commands 'touch /run/autopkgtest_no_reboot.stamp' --override-control _integration-tests/data/output/control --built-tree /home/fgimenez/workspace/snappy/trunk --output-dir /tmp/snappy-test/output/latest-failover-update-shell --debug --- ssh -s /usr/share/autopkgtest/ssh-setup/snappy -- -i /tmp/snappy-test/image/snappy-rolling-edge-latest.img

Here just the image is specified, not the channel nor the release. How can I call adt-run so that these don't get set?

Thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

Oops, sorry, I missed that! Fixed in http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=7253488e

You can get the fixed version from http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/plain/ssh-setup/snappy and put it into /usr/share/autopkgtest/ssh-setup/ until there's a new package available.

Changed in autopkgtest (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: Invalid → Fix Committed
Revision history for this message
Federico Gimenez (fgimenez) wrote :

Awesome, thanks a lot for the immediate fix pitti, cheers! :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.16.1

---------------
autopkgtest (3.16.1) unstable; urgency=medium

  * setup-commands/cloud-vm-setup: Fix installation of linux-generic on
    Ubuntu.
  * ssh-setup/nova: Clean up userdata temp file on failed nova boot.
  * If the test fails with exit code 127 (usually "command not found"),
    consider this a test failure (code 4), not a testbed failure (code 16).
  * doc/README.package-tests.rst: Document that "Tests:" and similar fields
    can be comma separated too, like everywhere else in Debian's control
    files.
  * ssh-setup/nova: Show name of created nova instance, so that it's easier to
    map instances to a test.
  * run-from-checkout: Exec adt-run to avoid keeping the shell wrapper process
    around.
  * ssh-setup/snappy: Fix check whether --image and --channel are specified
    together. (LP: #1474735)
  * ssh-setup/nova: Allow selecting net IDs by name.

 -- Martin Pitt <email address hidden> Fri, 17 Jul 2015 11:11:36 +0200

Changed in autopkgtest (Ubuntu):
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.