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

Re: [Xen-users] vif = [ 'ip=172.48.0.101' ] error on "xm reboot"



This is the answer I got when asking the same question to the list just a couple of days ago :

This was a problem with the xend code to store the vif's ip information.
Use xen-unstable (which I'd currently reccoment, it's getting closer
to 3.0.2 every day  ;)  or just change the

 if ip:
           result.append( ...

code in
/usr/lib/python/xen/xend/server/netif.py (or your sourcetree)
to:
      if ip:
           for i in ip.split(" "):
               result.append(['ip', i])
(thats how unstable does it) or to:
      if ip:
           result.append(['ip', ip])
(thats an older fix which doesn't handle multiple IPs)


> vif = ['ip=192.168.1.12']
> Any ideas what might be wrong here ?
Nothing except your xen-version not liking IPs in a vif definition
on DomU reboot :)

Regards,
Jan-Petter

Hi,

i got the following error message in /var/log/xend.log when i try to reboot a running domU with "xm reboot".

Creating a new domU with the same domU.sxp works like expected, the
error occurs only on reboot.

Is this a bug or expected behaviour?

---<snip>---
[2006-04-01 13:24:04 xend.XendDomainInfo] ERROR (XendDomainInfo:189)
Domain construction failed Traceback (most recent call last):
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 182, in
create vm.initDomain()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1199, in
initDomain self.createDevices()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1338, in
createDevices self.createDevice(n, c)
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 975, in
createDevice return self.getDeviceController(deviceClass).createDevice
(devconfig) File "/usr/lib/python/xen/xend/server/DevController.py",
line 80, in createDevice (devid, back, front) = self.getDeviceDetails
(config) File "/usr/lib/python/xen/xend/server/netif.py", line 91, in
getDeviceDetails back['ip'] = ' '.join(ipaddr)
TypeError: sequence item 0: expected string, list found
[2006-04-01 13:24:04 xend.XendDomainInfo] DEBUG (XendDomainInfo:1272)
XendDomainInfo.destroy: domid=6 [2006-04-01 13:24:04
xend.XendDomainInfo] DEBUG (XendDomainInfo:1280)
XendDomainInfo.destroyDomain(6) [2006-04-01 13:24:04
xend.XendDomainInfo] ERROR (XendDomainInfo:1444) Failed to restart
domain 5. Traceback (most recent call last): File
"/usr/lib/python/xen/xend/XendDomainInfo.py", line 1433, in restart
new_dom = XendDomain.instance().domain_create(config) File
"/usr/lib/python/xen/xend/XendDomain.py", line 226, in domain_create
dominfo = XendDomainInfo.create(config) File
"/usr/lib/python/xen/xend/XendDomainInfo.py", line 182, in create
vm.initDomain() File "/usr/lib/python/xen/xend/XendDomainInfo.py",
line 1199, in initDomain self.createDevices() File
"/usr/lib/python/xen/xend/XendDomainInfo.py", line 1338, in
createDevices self.createDevice(n, c) File
"/usr/lib/python/xen/xend/XendDomainInfo.py", line 975, in
createDevice return self.getDeviceController(deviceClass).createDevice
(devconfig) File "/usr/lib/python/xen/xend/server/DevController.py",
line 80, in createDevice (devid, back, front) = self.getDeviceDetails
(config) File "/usr/lib/python/xen/xend/server/netif.py", line 91, in
getDeviceDetails back['ip'] = ' '.join(ipaddr) TypeError: sequence
item 0: expected string, list found
---<snap>---

Greetings,
-timo



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.