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

Re: [Xen-users] changing domains after boot



On Mon, 2005-08-29 at 17:04 -0700, Christian Hergert wrote:
> Try stopping all the domains before shutting down Xend. This should make
> it able to start back up without errors.
> 
> ~ chris
> 
> On Mon, 2005-08-29 at 20:01 -0400, Ted Kaczmarek wrote:
> > It appears that once xend runs I am unable to change any configs in a
> > domain even after stopping xend. Also get all kinds of errors when
> > trying to do so. Is their any way to do this or is a reboot required
> > every time. I am a newb to this and experimenting, never rebooted so
> > much in one day. To add insult to injury my stupid machine has buggy
> > bios where every so ofter it decides to change my hard drive boot order.
> > 
> > Regards,
> > Ted
> > 
> > 
> > _______________________________________________
That seems to be a problem, I do an
xm shutdown test
/etc/init.d/xend stop
after that I keep getting errors, sometime without even changing
configs. Weird part is after a reboot this never happens.

kernel-xenU-2.6.12-1.1447_FC4
kernel-xen0-2.6.12-1.1447_FC4
xen-2-20050823
* Tue Aug 23 2005 Rik van Riel <riel@xxxxxxxxxx> 2-20050823
- upgrade to today's Xen snapshot



Domain construction error: 'NoneType' object has no attribute 'db'
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 566, in construct
    self.configure()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 967, in configure
    self.create_devices()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 796, in create_devices
    self.create_configured_devices()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 785, in create_configured_devices
    self.createDevice(ctrl_type, dev_config)
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 394, in createDevice
    backdb = backdom.db.addChild("/backend/%s/%s/%d" %
AttributeError: 'NoneType' object has no attribute 'db'

[root@inyoureyes log]# cat xend.log
[2005-08-29 20:18:01 xend] INFO (SrvDaemon:300) Xend Daemon started
[2005-08-29 20:18:01 xend] INFO (channel:163) Virq 3 on port 20
[2005-08-29 20:18:01 xend] DEBUG (XendDomainInfo:180)
info={'vcpu_to_cpu': [1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1], 'cpu_time': 0L, 'ssidref': 0, 'shutdown_reason': 0, 'dying': 1,
'dom': 13, 'running': 0, 'maxmem_kb': 131072, 'paused': 1, 'crashed': 0,
'vcpus': 1, 'shutdown': 0, 'mem_kb': 4, 'cpumap': [-1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0], 'blocked': 0}
[2005-08-29 20:18:01 xend] DEBUG (XendDomainInfo:181) config=(vm
    (name test)
    (memory 128)
    (ssidref -1)
    (image
        (linux
            (kernel /boot/vmlinuz-2.6.12-1.1447_FC4xenU)
            (root '/dev/sda2 ro')
            (args 4)
            (vcpus 1)
        )
    )
    (device (vbd (uname file:/root/fedora.img) (dev sda2) (mode w)))
    (device (vif (mac aa:00:00:57:23:6d)))
    (boot c)
    (display :0.0)
)

[2005-08-29 20:18:01 xend] INFO (xsobj:326) DBMap>introduceDomain> 13
176894 <EventChannel dom1:0:24
dom2:13:2> /domain/efad9475-d4a5-4183-82c8-5d5eacb81545
[2005-08-29 20:18:01 xend] DEBUG (XendDomainInfo:608) writing key
availability=online to path /cpu/0 in store
[2005-08-29 20:18:01 xend] INFO (XendRoot:141) EVENT> xend.domain.create
['test', 13]
[2005-08-29 20:18:01 xend] WARNING (XendDomainInfo:995) Unknown config
field boot
[2005-08-29 20:18:01 xend] WARNING (XendDomainInfo:995) Unknown config
field display
[2005-08-29 20:18:01 xend] ERROR (XendDomain:125) Error recreating
domain info: id=13
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line
123, in initial_refresh
    self._new_domain(domdb, doms[domid])
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line
146, in _new_domain
    dominfo = XendDomainInfo.recreate(db, info)
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 189, in recreate
    vm.construct(config)
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 573, in construct
    self.destroy()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 694, in destroy
    self.cleanup()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 665, in cleanup
    self.release_devices()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 717, in release_devices
    Blkctl.block('unbind', devdb['type'].getData(),
  File "/usr/lib/python2.4/site-packages/xen/xend/xenstore/xsobj.py",
line 425, in __getitem__
    v = self.readChildDB(k)
  File "/usr/lib/python2.4/site-packages/xen/xend/xenstore/xsobj.py",
line 521, in readChildDB
    raise LookupError("invalid key '%s'" % k)
LookupError: invalid key 'type'
[2005-08-29 20:18:01 xend] DEBUG (XendDomainInfo:180)
info={'vcpu_to_cpu': [0, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1], 'cpu_time': 401725425451L, 'ssidref': 0, 'shutdown_reason': 0,
'dying': 0, 'dom': 0, 'running': 1, 'maxmem_kb': -4, 'paused': 0,
'crashed': 0, 'vcpus': 2, 'shutdown': 0, 'mem_kb': 846848, 'cpumap':
[-1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0}
[2005-08-29 20:18:01 xend] DEBUG (XendDomainInfo:181) config='None'

[2005-08-29 20:18:01 xend] INFO (xsobj:326) DBMap>introduceDomain> 0
189200 <EventChannel dom1:0:22
dom2:0:23> /domain/0e2e4e5e-613f-41a8-a958-926f37b6d04b
[2005-08-29 20:18:01 xend] DEBUG (XendDomainInfo:608) writing key
availability=online to path /cpu/0 in store
[2005-08-29 20:18:01 xend] DEBUG (XendDomainInfo:608) writing key
availability=online to path /cpu/1 in store
[2005-08-29 20:18:01 xend] INFO (SrvServer:78) unix
path=/var/lib/xend/xend-socket
[2005-08-29 20:18:01 xend] INFO (XendRoot:141) EVENT> xend.start 0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + set -e
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
OP=start
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + shift
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + for arg
in '"$@"'
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + export
bridge=xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
bridge=xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + for arg
in '"$@"'
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + export
antispoof=no
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
antispoof=no
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
bridge=xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
netdev=eth0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
antispoof=no
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + echo
'*network start bridge=xen-br0 netdev=eth0 antispoof=no'
[2005-08-29 20:18:01 xend] INFO (process:35) [network-bridge] network
start bridge=xen-br0 netdev=eth0 antispoof=no
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + case
${OP} in
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
op_start
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + '['
xen-br0 == null ']'
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
create_bridge xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + local
bridge=xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + brctl
show
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + grep -q
xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
ifconfig xen-br0 up
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
ifconfig
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + grep -q
veth0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
ifconfig veth0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + grep -q
veth0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] +
transfer_addrs eth0 xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + local
src=eth0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + local
dst=xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + ip addr
show dev xen-br0
[2005-08-29 20:18:01 xend] ERROR (process:37) [network-bridge] + egrep
-q '^ *inet '
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] + return
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] +
transfer_routes eth0 xen-br0
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] + local
src=eth0
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] + local
dst=xen-br0
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] + ip
route list
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] + sed -ne
'
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] /dev eth0
\( \|$\)/ {
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]   h
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]   s/^/ip
route del /
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]   P
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]   g
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]
s/eth0/xen-br0/
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]   s/^/ip
route add /
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]   P
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge]   d
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] }'
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] + sh -e
[2005-08-29 20:18:02 xend] ERROR (process:37) [network-bridge] + '[' no
== yes ']'
[root@inyoureyes log]#

Regards,
Ted





_______________________________________________
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®.