WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] Patch discussion: Add NTP field to PIF to ntp configure

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Patch discussion: Add NTP field to PIF to ntp configure
From: Alberto González Rodríguez <alberto@xxxxxxxxxxxxx>
Date: Fri, 1 Oct 2010 10:46:49 +0200
Delivery-date: Fri, 01 Oct 2010 01:47:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
This is a simple patch, but i think could be very useful.

Until now you only can configure ntp on installation or editing
manully ntp.conf file.

Idea is has a field called NTP on PIF class, and when
interface-reconfigure is called add this servers to ntp.conf and
reload ntpd service.

I attach the patch, example to test it:


xe pif-reconfigure-ip uuid=eb6e90c5-55f2-58b2-0748-0b8ff1963587
NTP=es.pool.ntp.org,ru.pool.ntp.org mode=static IP=10.110.1.37
gateway=10.110.1.1 DNS=193.146.32.86 netmask=255.255.255.0

Now you can see on /etc/ntp.conf on bottom:
server es.pool.ntp.org
server ru.pool.ntp.org

and  " ntpq -c peers" shows the new values:

*ntp01.srv.cat   150.214.94.5     2 u    -   64  377   26.617  -85.780   1.165
+81.95.131.130   129.69.1.153     2 u   12   64  257   88.981  -84.231   1.933

And you can see

#xe pif-param-list uuid=eb6e90c5-55f2-58b2-0748-0b8ff1963587|grep NTP
                        NTP ( RO): es.pool.ntp.org,ru.pool.ntp.org

NTP is not a required parameter to reconfigure a PIF.

Attachment: ntp.patch
Description: Binary data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>