"ubuntu-cloudimg-query xenial daily" fails with "confused by argument: xenial"

Bug #1572188 reported by Martin Pitt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm investigating why LXC's tests [1] have started failing so often with

   ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query
   wget is /usr/bin/wget
   confused by argument: xenial
   There is no download available for release=xenial, stream=daily, arch=amd64

http://autopkgtest.ubuntu.com/packages/l/lxc/xenial/amd64/

Indeed this seems to be some weird glitch in ubuntu-cloudimg-query that curiously only seems to happen in the data center. I pretty much ruled out proxy settings, as that works fine for other releases and I tried unsetting proxy vars too:

$ rm -rf ~/.cache/ubuntu-cloudimg-query/; ubuntu-cloudimg-query precise --format '%{url}\n'; echo $?
https://cloud-images.ubuntu.com/server/releases/precise/release-20160315/ubuntu-12.04-server-cloudimg-amd64.tar.gz
0

$ rm -rf ~/.cache/ubuntu-cloudimg-query/; ubuntu-cloudimg-query trusty daily --format '%{url}\n'; echo $?
https://cloud-images.ubuntu.com/server/trusty/20160411/trusty-server-cloudimg-amd64.tar.gz
0

$ rm -rf ~/.cache/ubuntu-cloudimg-query/; ubuntu-cloudimg-query xenial daily --format '%{url}\n'; echo $?
confused by argument: xenial
1

strace shows that for the latter case, u-c-q immediately exits after "confused by argument: xenial", so I suspect it's some weird bug in argument parsing.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: cloud-image-utils 0.27-0ubuntu24
ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: i3
Date: Tue Apr 19 16:50:15 2016
EcryptfsInUse: Yes
PackageArchitecture: all
SourcePackage: cloud-utils
UpgradeStatus: No upgrade log present (probably fresh install)

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

So I think this needs to be fixed in the lxc package. Either add "Restrictions: needs-recommends" or add "distro-info" as a test dependency.

affects: cloud-utils (Ubuntu) → lxc (Ubuntu)
Changed in lxc (Ubuntu):
status: New → Triaged
Martin Pitt (pitti)
Changed in lxc (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 2.0.0-0ubuntu2

---------------
lxc (2.0.0-0ubuntu2) xenial; urgency=medium

  * Add a distro-info test dependency as it's needed to get information
    about new Ubuntu releases. (LP: #1572188)

    This is needed to fix the current autopkgtest failures.

 -- Stéphane Graber <email address hidden> Tue, 19 Apr 2016 16:06:32 +0100

Changed in lxc (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.