Bug#603391: pygrub: unintelligible error messages

2013-06-20 Thread HoverHell
This indeed still happens with xen-utils-4.1 4.1.4-3+deb7u1

Additionally, the problem is hard to figure out (as it simply excepts with
"RuntimeError: Unable to find partition containing kernel", which it does
in many other cases as well; perhaps it should collect other caught
exceptions for debug purposes).

The grub.cfg, in my case, was generated by update-grub (from inside the
guest) and contained several lines `set root="(/dev/xvda1)"` (partially
because I am using a file as a guest's `xvda1` partition without `xvda`
drive); which also implies that if update-grub is re-run inside the guest
(e.g. on automatic update) it will break again.


Bug#603391: pygrub: unintelligible error messages

2011-02-26 Thread Fabian Hugelshofer
The image argument to pygrub does not need to be an integer.

The "invalid literal for int()" error probably means that your menu.lst
contains something like "root=(/dev/sda)". The root should be specified
in grub notation like "root=(hd0)".

You might want to have a look at /boot/grub/devices.map. To map /dev/sda
to hd0, you could add an entry like:
(hd0) /dev/sda



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#603391: pygrub: unintelligible error messages

2010-11-13 Thread Michal Suchanek
Package: xen-utils-4.0
Version: 4.0.1-1
Severity: normal
File: pygrub


The pygrub awesome error messages are captured below.

Please tell me what pygrub was doing and why it failed.

I also don't understand why  is supposed to be an integer.


#  '/usr/lib/xen-4.0/bin/pygrub' '--kernel=/vmlinuz'
  '--ramdisk=/initrd.img'  '/dev/sda3'
linux (kernel /var/run/xend/boot/boot_kernel.lRKqfu)(ramdisk
/var/run/xend/boot/boot_ramdisk '/usr/lib/xen-4.0/bin/pygrub'
'--kernel=/boot/vmlinuz' '--ramdisk=/boot/initrd.img'  '/dev/sda3'
Traceback (most recent call last):
  File "/usr/lib/xen-4.0/bin/pygrub", line 671, in 
  data = fs.open_file(chosencfg["kernel"]).read()
  IOError: [Errno 2] No such file or directory

#  '/usr/lib/xen-4.0/bin/pygrub'   '/dev/sda3'
Using  to parse /boot/grub/menu.lst
Traceback (most recent call last):
  File "/usr/lib/xen-4.0/bin/pygrub", line 669, in 
chosencfg = run_grub(file, entry, fs, incfg["args"])
  File "/usr/lib/xen-4.0/bin/pygrub", line 549, in run_grub
g = Grub(file, fs)
  File "/usr/lib/xen-4.0/bin/pygrub", line 205, in __init__
self.read_config(file, fs)
  File "/usr/lib/xen-4.0/bin/pygrub", line 413, in read_config
self.cf.parse(buf)
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 282, in parse
self.add_image(GrubImage(title, img))
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 132, in __init__
_GrubImage.__init__(self, title, lines)
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 85, in __init__
self.reset(lines)
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 101, in reset
self._parse(lines)
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 96, in _parse
map(self.set_from_line, lines)
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 139, in 
set_from_line
setattr(self, self.commands[com], arg.strip())
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 104, in set_root
self._root = GrubDiskPart(val)
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 55, in __init__
(self.disk, self.part) = str.split(",", 2)
  File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 70, in set_disk
self._disk = int(val[2:])
ValueError: invalid literal for int() with base 10: 'ev/sda'

#  '/usr/lib/xen-4.0/bin/pygrub'  --help
Usage: /usr/lib/xen-4.0/bin/pygrub [-q|--quiet] [-i|--interactive] [--output=] 
[--kernel=] [--ramdisk=] [--args=] [--entry=] 



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'stable'), (400, 'unstable'), (200, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xen-utils-4.0 depends on:
ii  e2fslibs1.41.12-2ext2/ext3/ext4 file system librari
ii  iproute 20100519-3   networking and traffic control too
ii  libc6   2.11.2-7 Embedded GNU C Library: Shared lib
ii  libncurses5 5.7+20100313-4   shared libraries for terminal hand
ii  libxenstore3.0  4.0.1-1  Xenstore communications library fo
ii  python-support  1.0.10   automated rebuilding support for P
ii  python2.5   2.5.5-10 An interactive high-level object-o
ii  udev163-2/dev/ and hotplug management daemo
ii  xen-utils-common4.0.0-1  XEN administrative tools - common 
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages xen-utils-4.0 recommends:
ii  bridge-utils  1.4-5  Utilities for configuring the Linu
ii  xen-hypervisor-4.0-amd64 [xen 4.0.1-1The Xen Hypervisor on AMD64

Versions of packages xen-utils-4.0 suggests:
pn  xen-docs-4.0   (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org