[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#623443: [xen-tools-discuss] Bug? use of apt proxy with xen-create-image



Control: found 623443 0.9.8.2
Control: found 623443 0.9.9

Hi Kevin,

On Tue, Jul 09, 2013 at 01:53:31PM +0200, Kevin FAUCHON wrote:
> The actual manpage of debian wheezy say:
> "--apt_proxy=url  Specify a proxy to be used by debootstrap, and within
> the guest."
> 
> So i launch this command:
> xen-create-image --apt_proxy=88.191.190.70:3142 --hostname=test2
> --size=2048Mb \
> --memory=128Mb --swap=32Mb --ip=192.168.254.98 --role=udev

Can you try --apt_proxy=http://88.191.190.70:3142/ instead?

"=url" implies (admittedly not very clearly) that a protocol needs to
be included.

> And near the end of the logfile, these errors:
> W: Failed to fetch
> http://ftp.fr.debian.org/debian/dists/wheezy/main/binary-amd64/Packages
> Cannot initiate the connection to 3142:80 (0.0.12.70). - connect (22:
> Invalid argument)

Fits: It took 88.191.190.70 as protocol (i.e. before the colon) and
3142 as hostname (behind the colon). But it's strange that it was able
to look up 3142 as hostname (or use it aas IP). But then again
0.0.12.70 is not a valid IP address anyway and hence it fails.

On a first glance I'd say that this is an APT bug because it doesn't
parse the setting properly before using it. Digging a little deeper my
suspicion got confirmed as the issue already has been reported at
http://bugs.debian.org/623443 (Cc'ed) and I could reproduce the issue
on Debian Testing with apt 0.9.8.2 as well as on Debian Unstable with
apt 0.9.9:

  Cannot initiate the connection to 3142:80 (0.0.12.70). - connect (22: Invalid argument)

I'll update the xen-tools documentation with regards to that and may
even add such a check to xen-create-image so that it fails earlier in
cases like your's. So thanks for the report despite the bug sits
elsewhere than you suspected.

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@deuxchevaux.org  (Mail)
 X   See http://www.asciiribbon.org/              | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)


Reply to: