Bug#379347: xen-tools: xen-create image fails at xt-create-image

2006-07-22 Thread Henning Sprang
Package: xen-tools
Version: 2.1-3
Severity: grave
Justification: renders package unusable


when running 
 xen-create-image --size=5Gb --swap=1024Mb --dhcp --lvm=virtualmachines 
--hostname=fasel --kernel=/boot/vmlinuz-2.6.16-xen 
--initrd=/boot/initrd-2.6.16-xen.img --force

it stops with the message:


--- start message ---
Creating ext3 filesystem on /dev/virtualmachines/fasel-disk
Done

Installing your system with Running command '/usr/bin/xt-install-image 
--location=/tmp/MqrYmFUWft --dist=sarge --cache=yes >/dev/null 2>/dev/null' 
failed.
--- end message ---


Unfortunately, this message doesn't give any hint what could be done better, 
and trying to run the given command to try to get more
information doesn't help, because the temporary diretory is removed already.

No idea how this package should be used.




-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-xen
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xen-tools depends on:
ii  debootstrap   0.3.3  Bootstrap a basic Debian system
ii  libtext-template-perl 1.44-1.1   Text::Template perl module
ii  perl-modules  5.8.8-4Core Perl modules

Versions of packages xen-tools recommends:
pn  reiserfsprogs  (no description available)
ii  rpmstrap  0.5.2-2bootstrap a basic RPM-based system
pn  xen | xen-hypervisor-3.0   (no description available)
pn  xfsprogs   (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#379347: xen-tools: xen-create image fails at xt-create-image

2006-07-22 Thread Steve Kemp
On Sun, Jul 23, 2006 at 12:42:28AM +, Henning Sprang wrote:
> Package: xen-tools
> Version: 2.1-3
> Severity: grave
> Justification: renders package unusable

  Grave seems a little extreme since the package clearly works for
 some.  However I'm happy to leave it there for a day or two at
 least until I can update documentation to be better.

> when running 
>  xen-create-image --size=5Gb --swap=1024Mb --dhcp --lvm=virtualmachines 
> --hostname=fasel --kernel=/boot/vmlinuz-2.6.16-xen 
> --initrd=/boot/initrd-2.6.16-xen.img --force

  It looks like you're missing an installation method.  Please add:

--dist=sarge --debootstrap

  This might be all you need. 

  It isn't clear whether you've modified the global configuration
 file /etc/xen-tools/xen-tools.conf, I will assume you haven't since 
 if you had you could have setup the various options that you've specified 
 there.

> --- start message ---
> Creating ext3 filesystem on /dev/virtualmachines/fasel-disk
> Done
> 
> Installing your system with Running command '/usr/bin/xt-install-image 
> --location=/tmp/MqrYmFUWft --dist=sarge --cache=yes >/dev/null 2>/dev/null' 
> failed.
> --- end message ---

  This means it made the filesystems, etc, but failed to install with
 debootstrap/rpmstrap/copy/tar.  That could be because you didn't 
 specify one of those options, or it might be bacuse one was specified
 in the configuration file but failed for some reason.

  I can't really tell just yet.


> Unfortunately, this message doesn't give any hint what could be done better, 
> and trying to run the given command to try to get more
> information doesn't help, because the temporary diretory is removed already.

  Indeed the temporary directory has been removed, but you can create
 it and mount the previously created image from /dev/virtualmachines/fase1-disk
 if you do wish to explore.


> No idea how this package should be used.

  It seems you do have a reasonable idea, it is just unfortunate that
 this invocation didn't proceed correctly.  Running "man
 xen-create-image" might have been useful since it does cover the
 usage of the different installation methods, and the specification
 of the distribution you wish to install ..

  I'd suggest that you repeat the command with "--dist=sarge
 --debootstrap" as an initial step.  If that fails, or if you
 wish to generate more output please add "--verbose" and 
 send the log to this bug report.


Steve
-- 
http://www.steve.org.uk/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#379347: xen-tools: xen-create image fails at xt-create-image

2006-07-22 Thread Henning Sprang
Severity: important

> 
>   I'd suggest that you repeat the command with "--dist=sarge
>  --debootstrap" as an initial step.  If that fails, or if you
>  wish to generate more output please add "--verbose" and 
>  send the log to this bug report.

Thanks for the fast feedback.

Actually, that helped, as said before, but it is not clear, or even
evident, that --debootstrap/--rpmstrap must be given from the manpage,
and it also seems unreasonable - you can't install sarge/etch with
rpmstrap, and you can't install centos or fedora with debootstrap. Bu
maybe you are working on a secret dpkg for centos?! :)


Severity still important in my opionion because the tool isn't useable
without major tweaking around with all the options.

Henning


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#379347: xen-tools: xen-create image fails at xt-create-image

2006-07-22 Thread Steve Kemp
On Sun, Jul 23, 2006 at 01:27:51AM +0200, Henning Sprang wrote:

> Actually, that helped, as said before, but it is not clear, or even
> evident, that --debootstrap/--rpmstrap must be given from the manpage,

  I think it is - from "man xen-create-image":

--cut--

INSTALLATION METHODS
 The new guest images may be installed in several different ways:

 1.  With the B command.
 2.  With the B command.
 3.  By copying an existing installation.
 4.  By untarring a file containing a previous installation.

 These different methods can be selected by either the command line
arguments, or settings in the configuration file.

--cut--

  (Hmm that should be "--debootstrap" option", and "--rpmstrap option" 
respectively.  Will update that.)

> and it also seems unreasonable - you can't install sarge/etch with
> rpmstrap, and you can't install centos or fedora with debootstrap. Bu
> maybe you are working on a secret dpkg for centos?! :)

  I guess that is true - but you might want to install "sarge" by untarring, or 
 copying a previously created image.  So "dist=sarge" cannot be assumed to
 mean "debootstrap".

  Thats the main reason why these are distinct, and mutually exclusive, 
 options.

> Severity still important in my opionion because the tool isn't useable
> without major tweaking around with all the options.

  I will update the code to ensure at least one option is supplied for
 the installation method, which I will regard as closing this bug.

  (ie in your example it would output a message and exit:

"please choose one of the following options:
--debootstrap - Install with debootstrap
--rpmstrap- Install the dist with rpmstrap
--copy- Copy from the selected directory .. etc")

 
  However I disagree utterly with the "major tweaking", because this
 option could be specified in the configuration file as the comments
 indicate.

  I have to assume that people attempting to use software will examine
 the configuration file.  Otherwise you could claim that apt-get is
 broken because the default configuration file doesn't point to a 
 local mirror without "major tweaking".

  .. still I'm glad you got it working now :)

Steve
--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#379347: xen-tools: xen-create image fails at xt-create-image

2006-07-23 Thread Henning Sprang
Hi,

Steve Kemp wrote:
> [...]
> --cut--
> 
> INSTALLATION METHODS
>  The new guest images may be installed in several different ways:
> 
>  1.  With the B command.
>  2.  With the B command.
>  3.  By copying an existing installation.
>  4.  By untarring a file containing a previous installation.
> 
>  These different methods can be selected by either the command line
> arguments, or settings in the configuration file.
> 
> --cut--
> 
>   (Hmm that should be "--debootstrap" option", and "--rpmstrap option" 
> respectively.  Will update that.)


Got me, maybe I didn't read the manual concentrated enough - it was
late.  (But that's a good usability test for 99% of the users...)

I think a user can (and will)  expect that, under most but very special
circumstances, the commands listed in the "EXAMPLES" section should just
work. I often only browse to that section and just copy and paste these
commands ...

Other Programs tell very esily in the usage section which options are
optional and which not.

For example debootstrap:

SYNOPSIS
   debootstrap [OPTION...]  SUITE TARGET [MIRROR [SCRIPT]]

   debootstrap [OPTION...]  --second-stage

You see at a glance that SUITE and TARGET are required.


xem-create disc has a SYNOPSIS section which looks like the options list
in other manpages, while nearly the same, just slightly more verbose
info is repeated again in the OPTIONS section.

Only that I find the OPTIONS section much lesse redable, because it's
one long piece of text, without any indentation or paragraphs.

(but that's maybe another wishlist documdentation bug - should I file it?)

BTW, while reading it: debootstrap|rpmstrap|copy could be listed in the
mandatory options section, also, but your proposal below is better
anyway - I think making the code better is always preferable over
documenting :)

> [...]
>   I will update the code to ensure at least one option is supplied for
>  the installation method, which I will regard as closing this bug.
> 
>   (ie in your example it would output a message and exit:
> 
> "please choose one of the following options:
> --debootstrap - Install with debootstrap
> --rpmstrap- Install the dist with rpmstrap
> --copy- Copy from the selected directory .. etc")

Yeah, that's the best solution, even better than any documentation :)

>  
>   However I disagree utterly with the "major tweaking", because this
>  option could be specified in the configuration file as the comments
>  indicate.
>

With the major tweaking I more thought of that it's much too hard to
find how it works. I don't care much about the importance level of the
bug, as you are about to fix it anyway.

>   I have to assume that people attempting to use software will examine
>  the configuration file.  Otherwise you could claim that apt-get is
>  broken because the default configuration file doesn't point to a 
>  local mirror without "major tweaking".

I think this assumption is wrong, in my opionion. Because xen-tools
looks like a very simple tool to use where only at a second or third
glance you realize that there's a config file to study.

>   .. still I'm glad you got it working now :)

Nice, even the rpmstrap installation of centos was a cheer. Thanks for
building that nice tool!

Henning


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#379347: xen-tools: xen-create image fails at xt-create-image

2006-07-25 Thread Olivier Tétard
Package: xen-tools
Version: 2.2-2
Followup-For: Bug #379347

Hello,

It seems that the proposed patch[1] prevents to create new xen images.

Attached patch should fix the problem.

Thank you,
Olivier;

1. http://lists.cvsrepository.org/xen-tools-commits/Jul06/0432.html

Index: bin/xen-create-image
===
RCS file: /home/cvs/xen-tools/bin/xen-create-image,v
retrieving revision 1.57
diff -u -r1.57 xen-create-image
--- bin/xen-create-image23 Jul 2006 00:56:29 -  1.57
+++ bin/xen-create-image25 Jul 2006 14:39:07 -
@@ -1016,7 +1016,7 @@
 my $count = 0;
 foreach my $key ( qw/debootstrap rpmstrap copy tar/ )
 {
-if ( defined $CONFIG{$key} )
+if ( $CONFIG{$key} )
 {
 $count += 1;
 }


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-xen-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages xen-tools depends on:
ii  debootstrap   0.3.3  Bootstrap a basic Debian system
ii  libtext-template-perl 1.44-1.1   Text::Template perl module
ii  perl-modules  5.8.8-6Core Perl modules

Versions of packages xen-tools recommends:
ii  reiserfsprogs 1:3.6.19-3 User-level tools for ReiserFS file
ii  rpmstrap  0.5.2-2bootstrap a basic RPM-based system
ii  xen-hypervisor-3.0-i386 [ 3.0.2+hg9697-1 The Xen Hypervisor for i386
ii  xfsprogs  2.8.4-1Utilities for managing the XFS fil

-- no debconf information

-- 
gpg --keyserver pgp.mit.edu --recv-keys 0x43CEA851

__
Olivier Tétard
site : http://www.miskin.be
JabberID : [EMAIL PROTECTED]
__