* Is Xend versioned?
@ 2007-12-18 19:08 Jim Fehlig
2008-01-04 18:08 ` Mark Williamson
0 siblings, 1 reply; 3+ messages in thread
From: Jim Fehlig @ 2007-12-18 19:08 UTC (permalink / raw)
To: xen-devel
When querying Xend for version this code is invoked in
tools/python/xen/xend/XendNode.py
def xen_version(self):
info = self.xc.xeninfo()
try:
from xen import VERSION
info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
'Xend': VERSION}
except (ImportError, AttributeError):
info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
'Xend': '3.0.3'}
I cannot find a xen module from which to import VERSION, resulting in
the hardcoded one. I would cook up a patch if I understood how, or even
if, it should be versioned.
Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is Xend versioned?
2007-12-18 19:08 Is Xend versioned? Jim Fehlig
@ 2008-01-04 18:08 ` Mark Williamson
2008-01-09 2:06 ` Jim Fehlig
0 siblings, 1 reply; 3+ messages in thread
From: Mark Williamson @ 2008-01-04 18:08 UTC (permalink / raw)
To: xen-devel; +Cc: Jim Fehlig
> When querying Xend for version this code is invoked in
> tools/python/xen/xend/XendNode.py
>
> def xen_version(self):
> info = self.xc.xeninfo()
>
> try:
> from xen import VERSION
> info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
> 'Xend': VERSION}
> except (ImportError, AttributeError):
> info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
> 'Xend': '3.0.3'}
>
> I cannot find a xen module from which to import VERSION, resulting in
> the hardcoded one. I would cook up a patch if I understood how, or even
> if, it should be versioned.
You're right, I can't see what this is supposed to achieve...
If you were to add:
VERSION = "blah"
to tools/python/xen/__init__.py
then I imagine that would do the right thing. As for whether it's necessary,
I'm not sure... But presumably that code ought either to do something or to
be removed???
Cheers,
Mark
--
Dave: Just a question. What use is a unicyle with no seat? And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is Xend versioned?
2008-01-04 18:08 ` Mark Williamson
@ 2008-01-09 2:06 ` Jim Fehlig
0 siblings, 0 replies; 3+ messages in thread
From: Jim Fehlig @ 2008-01-09 2:06 UTC (permalink / raw)
To: Mark Williamson; +Cc: xen-devel
Mark Williamson wrote:
>> When querying Xend for version this code is invoked in
>> tools/python/xen/xend/XendNode.py
>>
>> def xen_version(self):
>> info = self.xc.xeninfo()
>>
>> try:
>> from xen import VERSION
>> info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
>> 'Xend': VERSION}
>> except (ImportError, AttributeError):
>> info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
>> 'Xend': '3.0.3'}
>>
>> I cannot find a xen module from which to import VERSION, resulting in
>> the hardcoded one. I would cook up a patch if I understood how, or even
>> if, it should be versioned.
>>
>
> You're right, I can't see what this is supposed to achieve...
>
> If you were to add:
>
> VERSION = "blah"
>
> to tools/python/xen/__init__.py
>
> then I imagine that would do the right thing. As for whether it's necessary,
> I'm not sure... But presumably that code ought either to do something or to
> be removed???
>
I'm not sure there is any value in versioning xend itself. Certainly
its interfaces (e.g. XenAPI) should be versioned but the whole daemon?
I will spin a patch to remove it (or fix it) if there is consensus.
Regards,
Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-09 2:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 19:08 Is Xend versioned? Jim Fehlig
2008-01-04 18:08 ` Mark Williamson
2008-01-09 2:06 ` Jim Fehlig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.