Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

XCP 1.5 beta api

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


Abhinandan.Prateek at citrix

Apr 19, 2012, 2:02 AM

Post #1 of 4 (300 views)
Permalink
XCP 1.5 beta api

We are testing support for XCP 1.5 beta in the cloudstack software. While testing we saw that the method get_mtime is omitted from /opt/xensource/sm/util.py. This method is present in XCP 1.1. The sr dir timestamp is used by cloudstack to check if the sr has changed.

Is there a reason to do that ? Will it be possible to add it back.

Thanks and Regards,
Abhinandan Prateek

_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


andrew.halley at citrix

Apr 19, 2012, 6:18 AM

Post #2 of 4 (265 views)
Permalink
Re: XCP 1.5 beta api [In reply to]

Checking.


Sent from my Mobile device - apologies for typos and brevity


-------- Original message --------
Subject: XCP 1.5 beta api
From: Abhinandan Prateek <Abhinandan.Prateek [at] citrix>
To: "xen-api [at] lists" <xen-api [at] lists>,Bob Ball <bob.ball [at] citrix>,Andrew Halley <andrew.halley [at] citrix>
CC: Kevin Kluge <Kevin.Kluge [at] citrix>,Ram Chinta <ram.chinta [at] citrix>



We are testing support for XCP 1.5 beta in the cloudstack software. While testing we saw that the method get_mtime is omitted from /opt/xensource/sm/util.py. This method is present in XCP 1.1. The sr dir timestamp is used by cloudstack to check if the sr has changed.

Is there a reason to do that ? Will it be possible to add it back.

Thanks and Regards,
Abhinandan Prateek


Jonathan.Ludlam at eu

Apr 19, 2012, 6:40 AM

Post #3 of 4 (266 views)
Permalink
Re: XCP 1.5 beta api [In reply to]

Hiya,

We don't use it any more (clearly!) but it was an extremely small function - you could probably just implement it elsewhere:

def get_mtime(path):
st = ioretry_stat(lambda: os.stat(path))
return st[stat.ST_MTIME]

Also, this isn't specific to XCP - the same code is in XS 6.0. Does that not affect you too?

Jon




On 19 Apr 2012, at 10:02, Abhinandan Prateek wrote:

>
> We are testing support for XCP 1.5 beta in the cloudstack software. While testing we saw that the method get_mtime is omitted from /opt/xensource/sm/util.py. This method is present in XCP 1.1. The sr dir timestamp is used by cloudstack to check if the sr has changed.
>
> Is there a reason to do that ? Will it be possible to add it back.
>
> Thanks and Regards,
> Abhinandan Prateek
>
> _______________________________________________
> xen-api mailing list
> xen-api [at] lists
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


Abhinandan.Prateek at citrix

Apr 19, 2012, 7:02 AM

Post #4 of 4 (266 views)
Permalink
Re: XCP 1.5 beta api [In reply to]

Hi Jon,
Thanks for quick update. If it has been removed as part of cleanup we will make appropriate changes in our codebase for XCP.
As I can see things are happening bit differently for XS 6.0 in cloudstack and there we do not use that particular method.
-Abhi

-----Original Message-----
From: Jonathan Ludlam
Sent: Thursday, April 19, 2012 7:11 PM
To: Abhinandan Prateek
Cc: xen-api [at] lists; Bob Ball; Andrew Halley; Ram Chinta; Kevin Kluge
Subject: Re: [Xen-API] XCP 1.5 beta api

Hiya,

We don't use it any more (clearly!) but it was an extremely small function - you could probably just implement it elsewhere:

def get_mtime(path):
st = ioretry_stat(lambda: os.stat(path))
return st[stat.ST_MTIME]

Also, this isn't specific to XCP - the same code is in XS 6.0. Does that not affect you too?

Jon




On 19 Apr 2012, at 10:02, Abhinandan Prateek wrote:

>
> We are testing support for XCP 1.5 beta in the cloudstack software. While testing we saw that the method get_mtime is omitted from /opt/xensource/sm/util.py. This method is present in XCP 1.1. The sr dir timestamp is used by cloudstack to check if the sr has changed.
>
> Is there a reason to do that ? Will it be possible to add it back.
>
> Thanks and Regards,
> Abhinandan Prateek
>
> _______________________________________________
> xen-api mailing list
> xen-api [at] lists
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.