Your message dated Fri, 17 Jul 2009 10:02:47 +0000
with message-id <[email protected]>
and subject line Bug#533539: fixed in virtinst 0.400.3-5
has caused the Debian Bug report #533539,
regarding virtinst: creating a new guest fails with (create:466) Generating 
macaddr failed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
533539: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533539
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: virtinst
Version: 0.400.2
Severity: normal


Output from virt-manager --no-fork --debug:

2009-06-18 15:45:14,430 (create:711): Guest type set to os_type=hvm, 
arch=x86_64, dom_type=kvm
2009-06-18 15:45:14,457 (create:466): Generating macaddr failed: invalid 
literal for int() with base 10: 'n'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 463, in 
set_conn_state
    net.setup(self.conn.vmm)
  File "/var/lib/python-support/python2.5/virtinst/VirtualNetworkInterface.py", 
line 130, in setup
    self.bridge = _util.default_bridge()
  File "/var/lib/python-support/python2.5/virtinst/util.py", line 106, in 
default_bridge
    defn = int(rt[-1])
ValueError: invalid literal for int() with base 10: 'n'


Problem occurs in default_bridge() function. It invokes default_route()
to find out default-route's network device. I used 'brlan' as interface
name for the bridge device,  the default-route is pointing to dev brlan.

u...@srv-gdo-vm01:~$ ip addr sh dev brlan
6: brlan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state 
UNKNOWN 
    link/ether 00:22:64:fa:cb:b2 brd ff:ff:ff:ff:ff:ff
    inet 10.1.128.27/20 brd 10.1.143.255 scope global brlan
    inet6 fe80::222:64ff:fefa:cbb2/64 scope link 
       valid_lft forever preferred_lft forever
u...@srv-gdo-vm01:~$ ip ro sh dev brlan
10.1.128.0/20  proto kernel  scope link  src 10.1.128.27 
default via 10.1.128.1 


If I rename the bridge to br0, it works, as the code in line 107:

        defn = int(rt[-1])

does not permitted a letter at the end of the device name.

A quick fix:

u...@srv-gdo-vm01:/usr/share/python-support/virtinst/virtinst$ diff -u 
util.py.orig util.py
--- util.py.orig        2009-06-18 16:03:06.426793000 +0200
+++ util.py     2009-06-18 16:03:24.146793189 +0200
@@ -105,12 +105,12 @@
     if rt is None:
         defn = None
     else:
-        defn = int(rt[-1])
+        defn = rt
 
     if defn is None:
         return "xenbr0"
     else:
-        return "xenbr%d"%(defn)
+        return "xenbr%s"%(defn)
 
 def default_network(conn):
     if platform.system() == 'SunOS':


to get it working, but I do not know, what deeper impact this change has.

Cheers,
Andreas

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages virtinst depends on:
ii  python                     2.5.2-3       An interactive high-level object-o
ii  python-libvirt             0.6.4-1       libvirt Python bindings
ii  python-libxml2             2.6.32.dfsg-5 Python bindings for the GNOME XML 
ii  python-support             0.8.4         automated rebuilding support for P
ii  python-urlgrabber          3.1.0-4       A high-level cross-protocol url-gr

Versions of packages virtinst recommends:
ii  qemu                      0.9.1-10lenny1 fast processor emulator
ii  virt-viewer               0.0.3-2        Displaying the graphical console o

virtinst suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: virtinst
Source-Version: 0.400.3-5

We believe that the bug you reported is fixed in the latest version of
virtinst, which is due to be installed in the Debian FTP archive:

virtinst_0.400.3-5.diff.gz
  to pool/main/v/virtinst/virtinst_0.400.3-5.diff.gz
virtinst_0.400.3-5.dsc
  to pool/main/v/virtinst/virtinst_0.400.3-5.dsc
virtinst_0.400.3-5_all.deb
  to pool/main/v/virtinst/virtinst_0.400.3-5_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guido Günther <[email protected]> (supplier of updated virtinst package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 17 Jul 2009 10:24:16 +0200
Source: virtinst
Binary: virtinst
Architecture: source all
Version: 0.400.3-5
Distribution: unstable
Urgency: low
Maintainer: Debian Libvirt Maintainers 
<[email protected]>
Changed-By: Guido Günther <[email protected]>
Description: 
 virtinst   - Programs to create and clone virtual machines
Closes: 532531 533201 533539 535781
Changes: 
 virtinst (0.400.3-5) unstable; urgency=low
 .
   [ Guido Günther ]
   * [d1f073b] add Ubuntu Karmic to osdict (Closes: #532531) - thanks to
     Christophe Sauthier
   * [a008f8b] fix bridge names not ending with digit. Pulled from upstream.
     (Closes: #533539) - thanks to Cole Robinso for the fix and Andreas
     Unterkircher for testing
 .
   [ Laurent Léonard ]
   * [16b8a6c] Turn on ACPI/APIC for Windows, except for Xen < 3.1.0.
     Pulled from upstream. (Closes: #533201) - thanks to Cole Robinson
   * [3840c11] Add Windows 7 to the osdict. (Closes: #535781)
Checksums-Sha1: 
 398952b76d4a9639736096bd8c6eb7579048f11b 1305 virtinst_0.400.3-5.dsc
 1aeccc5cebc8b9c5dd87c04a55bbf17b64e3b667 9869 virtinst_0.400.3-5.diff.gz
 82c1a138d732ffef4a19b126c76d8c857acb597d 240588 virtinst_0.400.3-5_all.deb
Checksums-Sha256: 
 ac5db8e0695059e5d0898463f203f9d984f06eff133a8cb6054fc9ada8cbe7c4 1305 
virtinst_0.400.3-5.dsc
 d3b11ed5b2c019f33c55c3b6d795207220be22f1150c7373a9c5c975c724e7ed 9869 
virtinst_0.400.3-5.diff.gz
 bc75a7989ec727e9662ce4cf5e40134107635c4d237f75018d3382c78b36cffc 240588 
virtinst_0.400.3-5_all.deb
Files: 
 b0a38c3eddf4f2544b41cbe84f025cc4 1305 admin extra virtinst_0.400.3-5.dsc
 248b846022a81b8be2c4bbc44d5ebf7b 9869 admin extra virtinst_0.400.3-5.diff.gz
 cc118326d6c49c0b086ddf4a1aadf355 240588 admin extra virtinst_0.400.3-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKYEosn88szT8+ZCYRAiC6AJ95HhMdFHymNfgPbsvvQRGD3JubTACdHCUI
Tn3xFxosYZ7RTOZIMyyL7O8=
=LPej
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to