Deal with domain info going away (handle new error path introduced by
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines · Xen patchbot -unstable
# HG changeset patch
# User [email protected]
# Node IDbd477fcd32aba8a3196873b702ae6ea0d8a7e43b
# Parent36f8c5900e8646b0465d92d602bd07f3d3b5a966
Deal with domain info going away (handle new error path introduced by cset 6828). Believe Dan Smith is working up a more comprehensive patch.Signed-off-by Steven Hand <[email protected]>diff -r
36f8c5900e86-rbd477fcd32abtools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/XendDomainInfo.py line 361
Quoted 10 lines
tools/python/xen/xend/XendDomainInfo.py +6
-1@@ -353,7 +353,12 @@ def update(self, info=None): """Update with info from xc.domain_getinfo(). """ - self.info = info or dom_get(self.domid) + if info: + self.info = info + else: + di = dom_get(self.domid) + if not di: + return
Um.... shouldn't there be a "self.info = di" somewhere?
Quoted 2 lines
tools/python/xen/xend/XendDomainInfo.py +0
-0self.memory = self.info['mem_kb'] / 1024 self.ssidref = self.info['ssidref']
Quoted 9 lines · Xen patchbot -unstable
Quoted 7 lines
# HG changeset patch
# User [email protected]
# Node IDbd477fcd32aba8a3196873b702ae6ea0d8a7e43b
# Parent36f8c5900e8646b0465d92d602bd07f3d3b5a966
Deal with domain info going away (handle new error path introduced by cset 6828). Believe Dan Smith is working up a more comprehensive patch.
Quoted 4 lines
Quoted 4 lines
Signed-off-by Steven Hand <[email protected]>diff -r
36f8c5900e86-rbd477fcd32abtools/python/xen/xend/XendDomainInfo.py
---a/tools/python/xen/xend/XendDomainInfo.pyThu Sep 15 01:46:40 200
5
Quoted 1 line
Quoted 1 line
+++
b/tools/python/xen/xend/XendDomainInfo.pyThu Sep 15 04:12:54 200
5
Quoted 7 lines
Quoted 7 lines
(quoted diff) +2
-1@@ -353,7 +353,12 @@ def update(self, info=None): """Update with info from xc.domain_getinfo(). """ - self.info = info or dom_get(self.domid) + if info: + self.info = info
Quoted 8 lines
Review line 361
Quoted 4 lines
(quoted diff) +4
-0+ else: + di = dom_get(self.domid) + if not di: + returnUm.... shouldn't there be a "self.info = di" somewhere?
Oops - yes.
cheers,
S.
DS> Um.... shouldn't there be a "self.info = di" somewhere?
SH> Oops - yes.
I'm testing a patch that will clean this all up. I'll post it soon.
Signature · 4 lines
Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
Just as a quick nag, it would be nice if this patch had come across xen-devel *before* being checked in, instead of afterwards. ;)
The catch happened pretty quickly on the changelog (thanks Dan), but it would still have been nice to catch it before it broke anyone.
-Sean
Quoted 43 lines · Steven Hand
Quoted 9 lines · Xen patchbot -unstable
Quoted 7 lines
# HG changeset patch
# User [email protected]
# Node IDbd477fcd32aba8a3196873b702ae6ea0d8a7e43b
# Parent36f8c5900e8646b0465d92d602bd07f3d3b5a966
Deal with domain info going away (handle new error path introduced by cset 6828). Believe Dan Smith is working up a more comprehensive patch.Quoted 4 lines
Quoted 4 lines
Signed-off-by Steven Hand <[email protected]>diff -r
36f8c5900e86-rbd477fcd32abtools/python/xen/xend/XendDomainInfo.py
---a/tools/python/xen/xend/XendDomainInfo.pyThu Sep 15 01:46:40 2005
Quoted 1 line
Quoted 1 line
+++
b/tools/python/xen/xend/XendDomainInfo.pyThu Sep 15 04:12:54 2005
Quoted 7 lines
Quoted 7 lines
(quoted diff) +2
-1@@ -353,7 +353,12 @@ def update(self, info=None): """Update with info from xc.domain_getinfo(). """ - self.info = info or dom_get(self.domid) + if info: + self.info = infoQuoted 8 lines
Review line 361
Quoted 4 lines
(quoted diff) +4
-0+ else: + di = dom_get(self.domid) + if not di: + returnUm.... shouldn't there be a "self.info = di" somewhere?
Oops - yes.
cheers,
S.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 9 lines
__________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel