build.git
14 years agorc5 coblitz-2.01-rc5
Daniel Hokka Zakrisson [Fri, 27 Nov 2009 18:54:31 +0000 (18:54 +0000)]
rc5

14 years agoSetting tag vsys-scripts-0.95-12
Thierry Parmentelat [Thu, 26 Nov 2009 14:32:44 +0000 (14:32 +0000)]
Setting tag vsys-scripts-0.95-12
improve usability of the ipfw backend

14 years agoSetting tag ipfw-0.9-6
Thierry Parmentelat [Thu, 26 Nov 2009 14:31:19 +0000 (14:31 +0000)]
Setting tag ipfw-0.9-6
root: removed goto into the main ipfw switch, enabled slice_id matching
slice: completely move netconfig checks into the backend

14 years agoSetting tag PLEWWW-4.3-39
Thierry Parmentelat [Thu, 26 Nov 2009 11:22:58 +0000 (11:22 +0000)]
Setting tag PLEWWW-4.3-39
new add-interface page : now has a checkbox for non-primary interfaces to chose between virtual or physical
this affects the settings of ifname and alias that were formerly set unconditionally
review the interface-checking javascript code
changed the interface to plekitform, method is now optional and part of an options hash

14 years agoSetting tag MyPLC-4.3-32
Thierry Parmentelat [Thu, 26 Nov 2009 11:11:08 +0000 (11:11 +0000)]
Setting tag MyPLC-4.3-32
turn off drupal on a box that acts as BOOT server but not as WWW server
cleanup some obsolete code for old chroot-jail packaging in the process
new bootcd-kernel script for keeping bootcd variants up2date

14 years agoFix /etc/sudoers, /etc/init.d/halt in vserver-reference
Andy Bavier [Tue, 24 Nov 2009 22:01:59 +0000 (22:01 +0000)]
Fix /etc/sudoers, /etc/init.d/halt in vserver-reference

14 years agotemporary change
Sapan Bhatia [Tue, 24 Nov 2009 04:57:10 +0000 (04:57 +0000)]
temporary change

14 years agofix typo
Barış Metin [Mon, 23 Nov 2009 18:05:44 +0000 (18:05 +0000)]
fix typo

14 years agoturn into a general-purpose vserver creation script
Thierry Parmentelat [Mon, 23 Nov 2009 13:53:33 +0000 (13:53 +0000)]
turn into a general-purpose vserver creation script

14 years agoSetting tag nodeconfig-4.3-6
Marc Fiuczynski [Sun, 22 Nov 2009 18:31:27 +0000 (18:31 +0000)]
Setting tag nodeconfig-4.3-6
For all MyPLC nodes deployed at Polish Telecom (PLC, PLE and CoBlitz),
use the TP local NTP servers.

14 years agoSetting tag Monitor-3.0-25
Stephen Soltesz [Fri, 20 Nov 2009 23:18:33 +0000 (23:18 +0000)]
Setting tag Monitor-3.0-25
add option for site status to include both node & pcu status
improve ticket handling
template gadget.xml for a site-specific google-gadget summary

14 years agotest plewww trunk before tagging
Thierry Parmentelat [Fri, 20 Nov 2009 10:00:23 +0000 (10:00 +0000)]
test plewww trunk before tagging

14 years agoSetting tag BootManager-4.3-14
Daniel Hokka Zakrisson [Thu, 19 Nov 2009 03:53:39 +0000 (03:53 +0000)]
Setting tag BootManager-4.3-14
Use ext2 instead of ext3.
Add NAT model option for nodes which don't resolve properly.

14 years agoSetting tag util-vserver-pl-0.3-20
Daniel Hokka Zakrisson [Thu, 19 Nov 2009 03:28:49 +0000 (03:28 +0000)]
Setting tag util-vserver-pl-0.3-20
Log the error as well.

14 years agotest plcapi trunk
Thierry Parmentelat [Wed, 18 Nov 2009 20:07:12 +0000 (20:07 +0000)]
test plcapi trunk

14 years agoSetting tag PLEWWW-4.3-38
Thierry Parmentelat [Tue, 17 Nov 2009 22:43:59 +0000 (22:43 +0000)]
Setting tag PLEWWW-4.3-38
can't use php objects for showing node status, this is too slow
fix interface add page

14 years agoSetting tag PLEWWW-4.3-37
Thierry Parmentelat [Mon, 16 Nov 2009 23:23:42 +0000 (23:23 +0000)]
Setting tag PLEWWW-4.3-37
consistency in the way nodes status is displayed in the node and slice areas
extra tags columns show up on the nodes page as well, tweaked in the process
roles management in person page fixed

14 years agotweaks in onelab-k27
Thierry Parmentelat [Mon, 16 Nov 2009 15:32:02 +0000 (15:32 +0000)]
tweaks in onelab-k27

14 years agoSetting tag sfa-0.9-6
Anil-Kumar Vengalil [Mon, 16 Nov 2009 15:17:49 +0000 (15:17 +0000)]
Setting tag sfa-0.9-6
This tag includes:
- Sfatables
- Preliminary version of hash based authentication
- Initial code for Component Manager
- Authority structure is moved to /var/lib/sfa/
- some bug-fixes

14 years agowsdl needs python-ZSI while building
Anil-Kumar Vengalil [Mon, 16 Nov 2009 13:07:37 +0000 (13:07 +0000)]
wsdl needs python-ZSI while building

14 years agotesting sfa in the trunk
Anil-Kumar Vengalil [Mon, 16 Nov 2009 11:51:29 +0000 (11:51 +0000)]
testing sfa in the trunk

14 years agoturn off ipfw in 2.6.27 for now, not ready yet
Thierry Parmentelat [Mon, 16 Nov 2009 09:36:09 +0000 (09:36 +0000)]
turn off ipfw in 2.6.27 for now, not ready yet

14 years agoSetting tag PLEWWW-4.3-36
Thierry Parmentelat [Sun, 15 Nov 2009 22:30:33 +0000 (22:30 +0000)]
Setting tag PLEWWW-4.3-36
displaying node tags in the nodes page as well
table headers now can have a 'title' that shows up when hovering on the column header

14 years agoSetting tag PLEWWW-4.3-35
Thierry Parmentelat [Sat, 14 Nov 2009 13:26:24 +0000 (13:26 +0000)]
Setting tag PLEWWW-4.3-35
bugfix for the custom sortAlphaNumeric{Bottom,Top} sortable types

14 years agoSetting tag PLEWWW-4.3-34
Thierry Parmentelat [Fri, 13 Nov 2009 13:38:07 +0000 (13:38 +0000)]
Setting tag PLEWWW-4.3-34
extensible set of columns in the nodes area of the (my)slice page
nodegroups can be added/deleted/updated
tags management improved marginally

14 years agoSetting tag ipfw-0.9-5
Thierry Parmentelat [Mon, 9 Nov 2009 08:18:18 +0000 (08:18 +0000)]
Setting tag ipfw-0.9-5
additional features on matching packets, including uid match

14 years agoUse CoBlitz tag.
Daniel Hokka Zakrisson [Mon, 9 Nov 2009 02:45:36 +0000 (02:45 +0000)]
Use CoBlitz tag.

14 years agoSetting tag MyPLC-4.3-31
Daniel Hokka Zakrisson [Mon, 9 Nov 2009 02:39:48 +0000 (02:39 +0000)]
Setting tag MyPLC-4.3-31
Make the /etc/hosts manipulation optional.

14 years agonozomi out with 2.6.27 for now
Thierry Parmentelat [Sun, 8 Nov 2009 15:29:49 +0000 (15:29 +0000)]
nozomi out with 2.6.27 for now

14 years agoDisable fprobe-ulog.
Daniel Hokka Zakrisson [Fri, 6 Nov 2009 21:32:54 +0000 (21:32 +0000)]
Disable fprobe-ulog.

14 years agofirst draft of a 27 kernel for PLE
Thierry Parmentelat [Fri, 6 Nov 2009 16:25:29 +0000 (16:25 +0000)]
first draft of a 27 kernel for PLE

14 years agoSetting tag fprobe-ulog-1.1.3-1
Daniel Hokka Zakrisson [Thu, 5 Nov 2009 23:57:33 +0000 (23:57 +0000)]
Setting tag fprobe-ulog-1.1.3-1
Proper initscript semantics.

14 years agoSetting tag MyPLC-4.3-30
Daniel Hokka Zakrisson [Thu, 5 Nov 2009 20:38:47 +0000 (20:38 +0000)]
Setting tag MyPLC-4.3-30
Fix SetRole.

14 years agosync to right MyPLC tag
Marc Fiuczynski [Tue, 3 Nov 2009 21:33:12 +0000 (21:33 +0000)]
sync to right MyPLC tag

14 years agomake coblitz-tag point at the latest MyPLC tag
Marc Fiuczynski [Tue, 3 Nov 2009 21:20:22 +0000 (21:20 +0000)]
make coblitz-tag point at the latest MyPLC tag

14 years agoSetting tag MyPLC-4.3-29
Marc Fiuczynski [Tue, 3 Nov 2009 21:19:17 +0000 (21:19 +0000)]
Setting tag MyPLC-4.3-29
- Added "SetRole()" so that db-config.d/ scriplets can insert roles
into the DB.
- Added the root ssh key handling support back into plc.d/ssh and the
default xml file.  This should be identical to the way it was in
rc12.
- Added support in the db-config.d/01-init script to register the root
ssh public key with the default administrator.  In this way the root
ssh key will make it into the root account on the nodes by means of
NodeManager's specialaccounts plugin.

14 years agoSetting tag PLCRT-1.0-11
Marc Fiuczynski [Tue, 3 Nov 2009 21:13:12 +0000 (21:13 +0000)]
Setting tag PLCRT-1.0-11
Make sure to do updates to sendmail files, rather than appeneding same
hostname values to the end of files.

14 years agoSetting tag PLCAPI-4.3-30
Marc Fiuczynski [Tue, 3 Nov 2009 21:11:15 +0000 (21:11 +0000)]
Setting tag PLCAPI-4.3-30
Redacting password, session, and authstring values from the event log.

14 years agoswitch temporarily to MyPLC trunk
Marc Fiuczynski [Tue, 3 Nov 2009 21:02:18 +0000 (21:02 +0000)]
switch temporarily to MyPLC trunk

14 years agousing linux-2.6/tags/linux-2.6-22-39-1
Thierry Parmentelat [Tue, 3 Nov 2009 13:38:33 +0000 (13:38 +0000)]
using linux-2.6/tags/linux-2.6-22-39-1

14 years agooops
Thierry Parmentelat [Tue, 3 Nov 2009 13:37:40 +0000 (13:37 +0000)]
oops

14 years agocatching up
Thierry Parmentelat [Tue, 3 Nov 2009 13:36:04 +0000 (13:36 +0000)]
catching up

14 years agomove to centos5.4
Thierry Parmentelat [Tue, 3 Nov 2009 10:33:40 +0000 (10:33 +0000)]
move to centos5.4

14 years agopointing sfa back to the latest tag
Anil-Kumar Vengalil [Sat, 31 Oct 2009 22:17:45 +0000 (22:17 +0000)]
pointing sfa back to the latest tag

14 years agoadd centos5.4
Thierry Parmentelat [Sat, 31 Oct 2009 13:57:02 +0000 (13:57 +0000)]
add centos5.4

14 years agotesting sfa
Anil-Kumar Vengalil [Sat, 31 Oct 2009 08:04:56 +0000 (08:04 +0000)]
testing sfa

14 years agoSetting tag NodeManager-1.8-20
Sapan Bhatia [Fri, 30 Oct 2009 18:18:11 +0000 (18:18 +0000)]
Setting tag NodeManager-1.8-20
This tag is identical to 1.8-19. The main addition is PLC-controllable vsys scripts. The reason I am
retagging is to eliminate any confusion associated with the -19 tag which was (temporarily) modified a few
days ago.

14 years agogoing back to the status of today morning - what nightly has been using
Anil-Kumar Vengalil [Fri, 30 Oct 2009 17:52:56 +0000 (17:52 +0000)]
going back to the status of today morning - what nightly has been using

14 years agotest build for vsys
Anil-Kumar Vengalil [Fri, 30 Oct 2009 15:03:14 +0000 (15:03 +0000)]
test build for vsys

14 years agofor testing vsys
Anil-Kumar Vengalil [Fri, 30 Oct 2009 14:38:56 +0000 (14:38 +0000)]
for testing vsys

14 years agofor guthemberg to test vsys; will revert back to the previous configuration after...
Anil-Kumar Vengalil [Fri, 30 Oct 2009 12:23:55 +0000 (12:23 +0000)]
for guthemberg to test vsys; will revert back to the previous configuration after a test build

14 years agoTemporarily revert NodeManager to one that is running on VINI
Andy Bavier [Thu, 29 Oct 2009 18:15:35 +0000 (18:15 +0000)]
Temporarily revert NodeManager to one that is running on VINI

14 years agoSetting tag vsys-scripts-0.95-11
Sapan Bhatia [Thu, 29 Oct 2009 01:09:20 +0000 (01:09 +0000)]
Setting tag vsys-scripts-0.95-11
* Load the tun module if it is not already loaded
* Fixed a bug in fd_tuntap

14 years agoSetting tag vsys-scripts-0.95-10
Sapan Bhatia [Wed, 28 Oct 2009 02:58:00 +0000 (02:58 +0000)]
Setting tag vsys-scripts-0.95-10
Adds Thom Haddow's tun/tap changes. I omitted a change in my previous commit.

14 years agoSetting tag vsys-scripts-0.95-9
Sapan Bhatia [Wed, 28 Oct 2009 02:53:39 +0000 (02:53 +0000)]
Setting tag vsys-scripts-0.95-9
This update adds Thom Haddow's custom tun/tap-device scripts.

14 years agoSetting tag NodeManager-1.8-19
Sapan Bhatia [Wed, 28 Oct 2009 01:47:07 +0000 (01:47 +0000)]
Setting tag NodeManager-1.8-19
This patch makes vsys scripts PLC-configurable. Previously, vsys scripts needed to be
self-contained. With this change, they will be able to refer to the attributes associated with a
slice.

14 years agoSetting tag util-vserver-pl-0.3-19
Daniel Hokka Zakrisson [Wed, 28 Oct 2009 01:44:34 +0000 (01:44 +0000)]
Setting tag util-vserver-pl-0.3-19
Set ulimits for NM too.

14 years agoThierry's changes to handle svn_magic_line.
Barış Metin [Mon, 26 Oct 2009 13:39:27 +0000 (13:39 +0000)]
Thierry's changes to handle svn_magic_line.

14 years agoSetting tag BootstrapFS-1.0-10
Thierry Parmentelat [Thu, 22 Oct 2009 09:25:29 +0000 (09:25 +0000)]
Setting tag BootstrapFS-1.0-10
cosmetic change in message at build-time

14 years agoadopting manual tag BootManager-4.3-13
Thierry Parmentelat [Thu, 22 Oct 2009 09:24:18 +0000 (09:24 +0000)]
adopting manual tag BootManager-4.3-13

14 years agofix for syntax error
Barış Metin [Thu, 22 Oct 2009 09:13:40 +0000 (09:13 +0000)]
fix for syntax error

Setting tag NodeManager-1.8-18

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: tools.py
===================================================================
--- tools.py (.../tags/NodeManager-1.8-17) (révision 15402)
+++ tools.py (.../trunk) (révision 15402)
@@ -18,18 +18,21 @@
     return interface

 def get_hwaddr_from_plnode():
-    for line in open("/usr/boot/plnode.txt", 'r').readlines():
-        if line.startswith("NET_DEVICE"):
-            return line.split("=")[1].strip().strip('"')
+    try:
+        for line in open("/usr/boot/plnode.txt", 'r').readlines():
+            if line.startswith("NET_DEVICE"):
+                return line.split("=")[1].strip().strip('"')
+    except:
+        pass
     return None

 def get_if_from_hwaddr(hwaddr):
-   import sioc
-   devs = sioc.gifconf()
-   for dev in devs:
-      dev_hwaddr = sioc.gifhwaddr(dev)
-      if dev_hwaddr == hwaddr: return dev
-   return None
+    import sioc
+    devs = sioc.gifconf()
+    for dev in devs:
+        dev_hwaddr = sioc.gifhwaddr(dev)
+        if dev_hwaddr == hwaddr: return dev
+    return None

 def as_daemon_thread(run):
     """Call function <run> with no arguments in its own thread."""
Index: bwmon.py
===================================================================
--- bwmon.py (.../tags/NodeManager-1.8-17) (révision 15402)
+++ bwmon.py (.../trunk) (révision 15402)
@@ -324,7 +324,7 @@
                   (self.name,
                    bwlimit.format_tc_rate(maxrate),
                    bwlimit.format_tc_rate(maxi2rate)), 1)
-            bwlimit.set(xid = self.xid, dev = dev_default
+            bwlimit.set(xid = self.xid, dev = dev_default,
                 minrate = self.MinRate * 1000,
                 maxrate = self.MaxRate * 1000,
                 maxexemptrate = self.Maxi2Rate * 1000,

14 years ago- add install_date
Barış Metin [Thu, 22 Oct 2009 07:59:29 +0000 (07:59 +0000)]
- add install_date

Setting tag Monitor-3.0-24

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: nodequery.py
===================================================================
--- nodequery.py (.../tags/Monitor-3.0-23) (révision 15400)
+++ nodequery.py (.../trunk) (révision 15400)
@@ -38,6 +38,8 @@
  fbnode['bootcd_version'] = "unknown"
         if not fbnode['boot_server']:
                 fbnode['boot_server'] = "unknown"
+        if not fbnode['install_date']:
+                fbnode['install_date'] = "unknown"
  fbnode['pcu'] = color_pcu_state(fbnode)

  if not fields:
@@ -60,7 +62,7 @@
  #print "ERROR!!!!!!!!!!!!!!!!!!!!!"
  pass

- print "%(hostname)-45s | %(date_checked)11.11s | %(boot_state)5.5s| %(observed_status)8.8s | %(ssh_status)5.5s | %(pcu)6.6s | %(bootcd_version)6.6s | %(boot_server)s | %(kernel_version)s" % fbnode
+ print "%(hostname)-45s | %(date_checked)11.11s | %(boot_state)5.5s| %(observed_status)8.8s | %(ssh_status)5.5s | %(pcu)6.6s | %(bootcd_version)6.6s | %(boot_server)s | %(install_date)s | %(kernel_version)s" % fbnode
  else:
  format = ""
  for f in fields:
Index: web/MonitorWeb/monitorweb/controllers.py
===================================================================
--- web/MonitorWeb/monitorweb/controllers.py (.../tags/Monitor-3.0-23) (révision 15400)
+++ web/MonitorWeb/monitorweb/controllers.py (.../trunk) (révision 15400)
@@ -54,6 +54,7 @@
  kernel_version = widgets.CheckBox(label="Kernel")
  bootcd_version = widgets.CheckBox(label="BootCD")
         boot_server = widgets.CheckBox(label="Boot Server")
+        install_date = widgets.CheckBox(label="Installation Date")
  observed_status = widgets.CheckBox(label="Observed Status")
  uptime = widgets.CheckBox(label="Uptime")
  traceroute = widgets.CheckBox(label="Traceroute")
Index: web/MonitorWeb/monitorweb/templates/nodescanhistory.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/nodescanhistory.kid (.../tags/Monitor-3.0-23) (révision 15400)
+++ web/MonitorWeb/monitorweb/templates/nodescanhistory.kid (.../trunk) (révision 15400)
@@ -63,6 +63,7 @@
       <th class="sortable plekit_table">kernel</th>
       <th class="sortable plekit_table">BootCD</th>
       <th class="sortable plekit_table">Boot Server</th>
+      <th class="sortable plekit_table">Installation Date</th>
       <th class="sortable plekit_table">Last_contact</th>
   </tr>
   </thead>
@@ -78,6 +79,7 @@
  <td nowrap="true" py:content="node.kernel"></td>
  <td nowrap="true" py:content="node.node.bootcd_version"></td>
  <td nowrap="true" py:content="node.node.boot_server"></td>
+ <td nowrap="true" py:content="node.node.install_date"></td>
  <td  id="node-${node.node.observed_status}" py:content="diff_time(node.node.plc_node_stats['last_contact'])"></td>
  </span>
     </tr>
Index: web/MonitorWeb/monitorweb/templates/node_template.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/node_template.kid (.../tags/Monitor-3.0-23) (révision 15400)
+++ web/MonitorWeb/monitorweb/templates/node_template.kid (.../trunk) (révision 15400)
@@ -16,6 +16,7 @@
  <th>kernel</th>
                 <th>BootCD</th>
                 <th>Boot Server</th>
+                <th>Installation Date</th>
  <th>last_contact</th>
  </span>
  <span py:if="node is not None">
@@ -43,6 +44,7 @@
  <td nowrap="true" py:content="node.kernel"></td>
  <td nowrap="true" py:content="node.node.bootcd_version"></td>
  <td nowrap="true" py:content="node.node.boot_server"></td>
+ <td nowrap="true" py:content="node.node.install_date"></td>
  <td  id="node-${node.node.observed_status}" py:content="diff_time(node.node.plc_node_stats['last_contact'])"></td>
  </span>
 </span>
Index: upgrade/monitor-server-3.0-23.sql
===================================================================
--- upgrade/monitor-server-3.0-23.sql (.../tags/Monitor-3.0-23) (révision 0)
+++ upgrade/monitor-server-3.0-23.sql (.../trunk) (révision 15400)
@@ -0,0 +1,3 @@
+
+ALTER TABLE findbadnoderecord ADD COLUMN install_date varchar DEFAULT NULL;
+ALTER TABLE findbadnoderecord_history ADD COLUMN install_date varchar DEFAULT NULL;
Index: monitor/database/info/findbad.py
===================================================================
--- monitor/database/info/findbad.py (.../tags/Monitor-3.0-23) (révision 15400)
+++ monitor/database/info/findbad.py (.../trunk) (révision 15400)
@@ -39,6 +39,7 @@
  kernel_version = Field(String,default=None)
  bootcd_version = Field(String,default=None)
         boot_server = Field(String,default=None)
+        install_date = Field(String,default=None)
  nm_status = Field(String,default=None)
  fs_status = Field(String,default=None)
  iptables_status = Field(String,default=None)
Index: monitor/scanapi.py
===================================================================
--- monitor/scanapi.py (.../tags/Monitor-3.0-23) (révision 15400)
+++ monitor/scanapi.py (.../trunk) (révision 15400)
@@ -238,6 +238,7 @@
  echo '  "bmlog":"'`ls /tmp/bm.log`'",'
  echo '  "bootcd_version":"'`cat /mnt/cdrom/bootme/ID`'",'
  echo '  "boot_server":"'`cat /mnt/cdrom/bootme/BOOTSERVER`'",'
+ echo '  "install_date":"'`python -c "import os,time,stat; print time.ctime(os.stat('/usr/boot/plnode.txt')[stat.ST_CTIME])"`'",'
  echo '  "nm_status":"'`ps ax | grep nm.py | grep -v grep`'",'
  echo '  "dns_status":"'`host boot.planet-lab.org 2>&1`'",'
  echo '  "iptables_status":"'`iptables -t mangle -nL | awk '$1~/^[A-Z]+$/ {modules[$1]=1;}END{for (k in modules) {if (k) printf "%s ",k;}}'`'",'
@@ -262,6 +263,7 @@
  else:
  values.update({'kernel_version': "", 'bmlog' : "", 'bootcd_version' : '',
                                                                         'boot_server' : '',
+                                                                        'install_date' : '',
  'nm_status' : '',
  'fs_status' : '',
  'uptime' : '',

14 years agotesting the trunk of NM
Anil-Kumar Vengalil [Thu, 22 Oct 2009 07:42:25 +0000 (07:42 +0000)]
testing the trunk of NM

14 years agoSetting tag NodeManager-1.8-17
Anil-Kumar Vengalil [Wed, 21 Oct 2009 10:40:20 +0000 (10:40 +0000)]
Setting tag NodeManager-1.8-17

-fixed problem with sioc import at the build side
-bwlimit.set() now accepts the device and does not asume that it is eth0

14 years ago- don't hardcode the device name (depends on util-vserver-pl change rev. 15385)
Barış Metin [Tue, 20 Oct 2009 12:58:19 +0000 (12:58 +0000)]
- don't hardcode the device name (depends on util-vserver-pl change rev. 15385)

Setting tag NodeManager-1.8-16

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: tools.py
===================================================================
--- tools.py (.../tags/NodeManager-1.8-15) (révision 15386)
+++ tools.py (.../trunk) (révision 15386)
@@ -8,12 +8,31 @@
 import threading
 import fcntl
 import commands
+import sioc

 import logger

 PID_FILE = '/var/run/nm.pid'

+def get_default_if():
+    interface = get_if_from_hwaddr(get_hwaddr_from_plnode())
+    if not interface: interface = "eth0"
+    return interface
+
+def get_hwaddr_from_plnode():
+    for line in open("/usr/boot/plnode.txt", 'r').readlines():
+        if line.startswith("NET_DEVICE"):
+            return line.split("=")[1].strip().strip('"')
+    return None
+
+def get_if_from_hwaddr(hwaddr):
+    devs = sioc.gifconf()
+    for dev in devs:
+        dev_hwaddr = sioc.gifhwaddr(dev)
+        if dev_hwaddr == hwaddr: return dev
+    return None
+
 def as_daemon_thread(run):
     """Call function <run> with no arguments in its own thread."""
     thr = threading.Thread(target=run)
Index: bwmon.py
===================================================================
--- bwmon.py (.../tags/NodeManager-1.8-15) (révision 15386)
+++ bwmon.py (.../trunk) (révision 15386)
@@ -52,8 +52,9 @@
 seconds_per_day = 24 * 60 * 60
 bits_per_byte = 8

+dev_default = tools.get_default_if()
 # Burst to line rate (or node cap).  Set by NM. in KBit/s
-default_MaxRate = int(bwlimit.get_bwcap() / 1000)
+default_MaxRate = int(bwlimit.get_bwcap(dev_default) / 1000)
 default_Maxi2Rate = int(bwlimit.bwmax / 1000)
 # 5.4 Gbyte per day. 5.4 * 1024 k * 1024M * 1024G
 # 5.4 Gbyte per day max allowed transfered per recording period
@@ -323,7 +324,7 @@
                   (self.name,
                    bwlimit.format_tc_rate(maxrate),
                    bwlimit.format_tc_rate(maxi2rate)), 1)
-            bwlimit.set(xid = self.xid,
+            bwlimit.set(xid = self.xid, dev = dev_default
                 minrate = self.MinRate * 1000,
                 maxrate = self.MaxRate * 1000,
                 maxexemptrate = self.Maxi2Rate * 1000,
@@ -704,7 +705,7 @@
         nmdbcopy = copy.deepcopy(database.db)
         database.db_lock.release()
         try:
-            if getDefaults(nmdbcopy) and len(bwlimit.tc("class show dev eth0")) > 0:
+            if getDefaults(nmdbcopy) and len(bwlimit.tc("class show dev %s" % dev_default)) > 0:
                 # class show to check if net:InitNodeLimit:bwlimit.init has run.
                 sync(nmdbcopy)
             else: logger.log("bwmon:  BW limits DISABLED.")
Index: net.py
===================================================================
--- net.py (.../tags/NodeManager-1.8-15) (révision 15386)
+++ net.py (.../trunk) (révision 15386)
@@ -11,8 +11,10 @@
 import sioc, plnet

 # local modules
-import bwlimit, logger, iptables
+import bwlimit, logger, iptables, tools

+dev_default = tools.get_default_if()
+
 def start(options, conf):
     logger.log("net plugin starting up...")

@@ -22,7 +24,7 @@
     if 'OVERRIDES' in dir(config):
         if config.OVERRIDES.get('net_max_rate') == '-1':
             logger.log("net: Slice and node BW Limits disabled.")
-            if len(bwlimit.tc("class show dev eth0")):
+            if len(bwlimit.tc("class show dev %s" % dev_default)):
                 logger.verbose("*** DISABLING NODE BW LIMITS ***")
                 bwlimit.stop()
         else:
Index: plugins/rawdisk.py
===================================================================
--- plugins/rawdisk.py (.../tags/NodeManager-1.8-15) (révision 15386)
+++ plugins/rawdisk.py (.../trunk) (révision 15386)
@@ -39,7 +39,6 @@
             break
         buf = buf.strip()
         fields = re.split(pat, buf)
-        print fields
         dev = fields[-1]
         if not dev.startswith("dm-") and dev.endswith("1") and dev not in in_vg:
             devices.append("/dev/%s" % dev)

14 years agobwlimit.set() now accepts the device and don't assume that it's eth0
Barış Metin [Tue, 20 Oct 2009 12:53:58 +0000 (12:53 +0000)]
bwlimit.set() now accepts the device and don't assume that it's eth0

Setting tag util-vserver-pl-0.3-18

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: python/bwlimit.py
===================================================================
--- python/bwlimit.py (.../tags/util-vserver-pl-0.3-17) (révision 15382)
+++ python/bwlimit.py (.../trunk) (révision 15382)
@@ -573,8 +573,8 @@
        (dev, exempt_minor | xid, exempt_minor | xid))

-def set(xid, share = None, minrate = None, maxrate = None, minexemptrate = None, maxexemptrate = None):
-    on(xid = xid, share = share,
+def set(xid, share = None, minrate = None, maxrate = None, minexemptrate = None, maxexemptrate = None, dev = dev ):
+    on(xid = xid, dev = dev, share = share,
        minrate = minrate, maxrate = maxrate,
        minexemptrate = minexemptrate, maxexemptrate = maxexemptrate)

14 years agousing tag for monitor
Thierry Parmentelat [Tue, 20 Oct 2009 12:52:12 +0000 (12:52 +0000)]
using tag for monitor

14 years agominor fixes
Thierry Parmentelat [Tue, 20 Oct 2009 12:51:41 +0000 (12:51 +0000)]
minor fixes

14 years agoSetting tag MyPLC-4.3-28
Thierry Parmentelat [Tue, 20 Oct 2009 12:49:00 +0000 (12:49 +0000)]
Setting tag MyPLC-4.3-28
db-config ignores sliver tags
sirius's db-config script renamed (was sirious)

14 years agoSetting tag PLEWWW-4.3-33
Thierry Parmentelat [Tue, 20 Oct 2009 12:45:05 +0000 (12:45 +0000)]
Setting tag PLEWWW-4.3-33
fix pending sites page - was getting fooled by ext_consortium_id=None

14 years agoSetting tag VserverReference-4.2-16
Thierry Parmentelat [Tue, 20 Oct 2009 12:43:15 +0000 (12:43 +0000)]
Setting tag VserverReference-4.2-16
fix issue about locating the post-install script(s)
this was causing the onelab distro to miss the /etc/sudoers patch

14 years agoSetting tag PLEWWW-4.3-32
Thierry Parmentelat [Tue, 20 Oct 2009 07:41:43 +0000 (07:41 +0000)]
Setting tag PLEWWW-4.3-32
resetting tag as something went wrong when setting 31

14 years ago- comment out requiretty
Barış Metin [Mon, 19 Oct 2009 20:25:44 +0000 (20:25 +0000)]
- comment out requiretty

Setting tag VserverReference-4.2-15

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: build.sh
===================================================================
--- build.sh (.../tags/VserverReference-4.2-14) (révision 15364)
+++ build.sh (.../trunk) (révision 15364)
@@ -137,5 +137,6 @@

 # fix sudoers config
 [ -f ${vref}/etc/sudoers ] && echo -e "\nDefaults\tlogfile=/var/log/sudo\n" >> ${vref}/etc/sudoers
+[ -f ${vref}/etc/sudoers ] && sed -i 's,^Defaults.*requiretty,#Defaults requiretty,' ${vref}/etc/sudoers

 exit 0

14 years agosupport for <package>-EXCLUDE-DEVEL-RPMS
Thierry Parmentelat [Mon, 19 Oct 2009 11:31:41 +0000 (11:31 +0000)]
support for <package>-EXCLUDE-DEVEL-RPMS

14 years agoSetting tag PLCAPI-4.3-29
Thierry Parmentelat [Mon, 19 Oct 2009 08:32:50 +0000 (08:32 +0000)]
Setting tag PLCAPI-4.3-29
let AddSite set ext_consortium_id - required for the poorman registration pages
drop version constraint on Requires: postgresql-python
don't log system calls nor ReportRunLevel

14 years ago- remove monitor-client.cron
Barış Metin [Mon, 19 Oct 2009 08:31:00 +0000 (08:31 +0000)]
- remove monitor-client.cron
- remove unused monitor-client init script
- fix UP/DOWN summary on nodes page.
- make node page display all nodes by default
- add boot_server field
- add myops_ssh_key to the keychain
- use ext_consortium_id to distinguish pending sites.

Setting tag Monitor-3.0-23

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: monitor.cron
===================================================================
--- monitor.cron (.../tags/Monitor-3.0-22) (révision 15357)
+++ monitor.cron (.../trunk) (révision 15357)
@@ -1,5 +0,0 @@
-# Runs once a day at 12pm to fetch the monitor account keys in case it was
-# inaccessible previously due to a network outage.
-
-0 12 * * * root    /etc/init.d/monitor start > /dev/null 2>&1
-
Index: monitor-client.init
===================================================================
--- monitor-client.init (.../tags/Monitor-3.0-22) (révision 15357)
+++ monitor-client.init (.../trunk) (révision 15357)
@@ -1,53 +0,0 @@
-#!/bin/bash
-#
-# monitor  Enables the monitor account by setting up the ssh key from the enabled PLC.
-#
-# Load before nm, vcached, and vservers, vserver-reference
-# chkconfig: 3 59 80
-# description: Fetch monitor ssh key to enable access to machine via monitor immediately.
-#
-# Stephen Soltesz <soltesz@cs.princeton.edu>
-# Copyright (C) 2008 The Trustees of Princeton University
-#
-# $Id$
-#
-
-case "$1" in
-    start|restart|reload)
- ;;
-    stop|status)
- exit 0
- ;;
-    *)
- echo $"Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
-esac
-
-#
-# NOTE: This user is not used by monitor for the moment so better not create it.
-#
-
-# # NOTE: If user already exists, this just exists with status 9.  I think it's
-# # ok to simply let this command check and error out.
-# # Parse PLC configuration
-# if [ -r /etc/planetlab/plc_config ] ; then
-#     . /etc/planetlab/plc_config
-# else
-#     PLC_NAME="PlanetLab"
-#     PLC_SLICE_PREFIX="pl"
-#     PLC_BOOT_HOST="boot.planet-lab.org"
-# fi
-
-# USER="${PLC_SLICE_PREFIX}_monitor"
-# /usr/sbin/useradd -p "" -m $USER &> /dev/null || :
-
-# if [ ! -d /home/$USER/.ssh ] ; then
-#  mkdir /home/$USER/.ssh
-#  chmod 700 /home/$USER/.ssh
-#  chown $USER.$USER /home/$USER/.ssh
-# fi
-
-# URL="http://${PLC_BOOT_HOST}/PlanetLabConf/keys.php?$USER"
-# curl -s "$URL" > /home/$USER/.ssh/authorized_keys
-# chown $USER.$USER /home/$USER/.ssh/authorized_keys
Index: nodequery.py
===================================================================
--- nodequery.py (.../tags/Monitor-3.0-22) (révision 15357)
+++ nodequery.py (.../trunk) (révision 15357)
@@ -36,6 +36,8 @@
  fbnode['bootcd_version'] = fbnode['bootcd_version'].split()[-1]
  else:
  fbnode['bootcd_version'] = "unknown"
+        if not fbnode['boot_server']:
+                fbnode['boot_server'] = "unknown"
  fbnode['pcu'] = color_pcu_state(fbnode)

  if not fields:
@@ -58,7 +60,7 @@
  #print "ERROR!!!!!!!!!!!!!!!!!!!!!"
  pass

- print "%(hostname)-45s | %(date_checked)11.11s | %(boot_state)5.5s| %(observed_status)8.8s | %(ssh_status)5.5s | %(pcu)6.6s | %(bootcd_version)6.6s | %(kernel_version)s" % fbnode
+ print "%(hostname)-45s | %(date_checked)11.11s | %(boot_state)5.5s| %(observed_status)8.8s | %(ssh_status)5.5s | %(pcu)6.6s | %(bootcd_version)6.6s | %(boot_server)s | %(kernel_version)s" % fbnode
  else:
  format = ""
  for f in fields:
Index: web/MonitorWeb/monitorweb/controllers.py
===================================================================
--- web/MonitorWeb/monitorweb/controllers.py (.../tags/Monitor-3.0-22) (révision 15357)
+++ web/MonitorWeb/monitorweb/controllers.py (.../trunk) (révision 15357)
@@ -53,6 +53,7 @@
  external_dns_status = widgets.CheckBox(label="Hostname Resolves?")
  kernel_version = widgets.CheckBox(label="Kernel")
  bootcd_version = widgets.CheckBox(label="BootCD")
+        boot_server = widgets.CheckBox(label="Boot Server")
  observed_status = widgets.CheckBox(label="Observed Status")
  uptime = widgets.CheckBox(label="Uptime")
  traceroute = widgets.CheckBox(label="Traceroute")
Index: web/MonitorWeb/monitorweb/templates/nodescanhistory.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/nodescanhistory.kid (.../tags/Monitor-3.0-22) (révision 15357)
+++ web/MonitorWeb/monitorweb/templates/nodescanhistory.kid (.../trunk) (révision 15357)
@@ -62,6 +62,7 @@
       <th class="sortable plekit_table">Stat</th>
       <th class="sortable plekit_table">kernel</th>
       <th class="sortable plekit_table">BootCD</th>
+      <th class="sortable plekit_table">Boot Server</th>
       <th class="sortable plekit_table">Last_contact</th>
   </tr>
   </thead>
@@ -76,6 +77,7 @@
                 <td py:content="node.node.plc_node_stats['boot_state']">boot</td>
  <td nowrap="true" py:content="node.kernel"></td>
  <td nowrap="true" py:content="node.node.bootcd_version"></td>
+ <td nowrap="true" py:content="node.node.boot_server"></td>
  <td  id="node-${node.node.observed_status}" py:content="diff_time(node.node.plc_node_stats['last_contact'])"></td>
  </span>
     </tr>
Index: web/MonitorWeb/monitorweb/templates/node_template.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/node_template.kid (.../tags/Monitor-3.0-22) (révision 15357)
+++ web/MonitorWeb/monitorweb/templates/node_template.kid (.../trunk) (révision 15357)
@@ -15,6 +15,7 @@
  <th>pcu</th>
  <th>kernel</th>
                 <th>BootCD</th>
+                <th>Boot Server</th>
  <th>last_contact</th>
  </span>
  <span py:if="node is not None">
@@ -41,6 +42,7 @@
  </td>
  <td nowrap="true" py:content="node.kernel"></td>
  <td nowrap="true" py:content="node.node.bootcd_version"></td>
+ <td nowrap="true" py:content="node.node.boot_server"></td>
  <td  id="node-${node.node.observed_status}" py:content="diff_time(node.node.plc_node_stats['last_contact'])"></td>
  </span>
 </span>
Index: web/MonitorWeb/monitorweb/templates/nodelist.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/nodelist.kid (.../tags/Monitor-3.0-22) (révision 15357)
+++ web/MonitorWeb/monitorweb/templates/nodelist.kid (.../trunk) (révision 15357)
@@ -17,8 +17,8 @@
   </script>

   <center>
-  <b py:content="'BOOT: %d' % len([agg for agg in query if agg.node.observed_status == 'BOOT'])"></b> |
-  <b py:content="'DOWN: %d' % len([agg for agg in query if agg.node.observed_status == 'DOWN'])"></b><br/>
+  <b py:content="'UP: %d' % len([agg for agg in query if agg.node.status in ('online', 'good')])"></b> |
+  <b py:content="'DOWN: %d' % len([agg for agg in query if agg.node.status not in ('online', 'good')])"></b><br/>
   </center>

 <table id="nodelist" cellpadding="0" border="0" class="plekit_table sortable-onload-2 colstyle-alt no-arrow paginationcallback-nodelist_paginator max-pages-10 paginate-25">
@@ -58,6 +58,7 @@
       <th class="sortable plekit_table">pcu</th>
       <th class="sortable plekit_table">kernel</th>
       <th class="sortable plekit_table">BootCD</th>
+      <th class="sortable plekit_table">Boot Server</th>
       <th class="sortable-sortLastContact plekit_table">Last_contact</th>
   </tr>
   </thead>
Index: web/MonitorWeb/monitorweb/templates/nodefast.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/nodefast.kid (.../tags/Monitor-3.0-22) (révision 15357)
+++ web/MonitorWeb/monitorweb/templates/nodefast.kid (.../trunk) (révision 15357)
@@ -17,16 +17,16 @@
   </script>

   <center>
-  <b py:content="'BOOT: %d' % len([agg for agg in query if agg.node.status == 'good'])"></b> |
-  <b py:content="'DOWN: %d' % len([agg for agg in query if agg.node.status == 'down'])"></b><br/>
+  <b py:content="'UP: %d' % len([agg for agg in query if agg.node.status in ('online', 'good')])"></b> |
+  <b py:content="'DOWN: %d' % len([agg for agg in query if agg.node.status not in ('online', 'good')])"></b><br/>
   </center>

-<table id="nodelist" cellpadding="0" border="0" class="plekit_table sortable-onload-2 colstyle-alt no-arrow paginationcallback-nodelist_paginator max-pages-10 paginate-25">
+<table id="nodelist" cellpadding="0" border="0" class="plekit_table sortable-onload-2 colstyle-alt no-arrow paginationcallback-nodelist_paginator max-pages-10 paginate-999">
   <thead>

     <tr class='pagesize_area'><td class='pagesize_area' colspan='10'>
         <form class='pagesize' action='satisfy_xhtml_validator'><fieldset>
-            <input class='pagesize_input' type='text' id="nodelist_pagesize" value='25'
+            <input class='pagesize_input' type='text' id="nodelist_pagesize" value='999'
                    onkeyup='plekit_pagesize_set("nodelist","nodelist_pagesize", 25);'
                    size='3' maxlength='3' />
             <label class='pagesize_label'> items/page </label>
Index: web/MonitorWeb/dev.cfg
===================================================================
--- web/MonitorWeb/dev.cfg (.../tags/Monitor-3.0-22) (révision 15357)
+++ web/MonitorWeb/dev.cfg (.../trunk) (révision 15357)
@@ -31,7 +31,7 @@
 autoreload.package="monitorweb"

-server.socket_host="monitor.planet-lab.org"
+server.socket_host="www.planet-lab.eu"
 server.socket_port=8082
 #server.webpath="/monitor/"
 #base_url_filter.on = False
Index: upgrade/monitor-server-3.0-22.sql
===================================================================
--- upgrade/monitor-server-3.0-22.sql (.../tags/Monitor-3.0-22) (révision 0)
+++ upgrade/monitor-server-3.0-22.sql (.../trunk) (révision 15357)
@@ -0,0 +1,5 @@
+-- If there's an existing database, these commands will upgrade it to the
+-- current version
+
+ALTER TABLE findbadnoderecord ADD COLUMN boot_server varchar DEFAULT NULL;
+ALTER TABLE findbadnoderecord_history ADD COLUMN boot_server varchar DEFAULT NULL;
Index: Monitor.spec
===================================================================
--- Monitor.spec (.../tags/Monitor-3.0-22) (révision 15357)
+++ Monitor.spec (.../trunk) (révision 15357)
@@ -129,8 +129,8 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 #################### CLIENT
-install -D -m 755 monitor-client.init $RPM_BUILD_ROOT/%{_initrddir}/monitor
-install -D -m 644 monitor.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor
+#install -D -m 755 monitor-client.init $RPM_BUILD_ROOT/%{_initrddir}/monitor
+#install -D -m 644 monitor.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor
 install -D -m 755 timeout.pl $RPM_BUILD_ROOT/usr/bin/timeout.pl

@@ -208,8 +208,8 @@

 %files client
 %defattr(-,root,root)
-%{_initrddir}/monitor
-%{_sysconfdir}/cron.d/monitor
+#%{_initrddir}/monitor
+#%{_sysconfdir}/cron.d/monitor
 /usr/bin/timeout.pl

 %files pcucontrol
Index: monitor/wrapper/plc.py
===================================================================
--- monitor/wrapper/plc.py (.../tags/Monitor-3.0-22) (révision 15357)
+++ monitor/wrapper/plc.py (.../trunk) (révision 15357)
@@ -14,6 +14,11 @@
 import traceback
 from monitor import database

+# note: this needs to be consistent with the value in PLEWWW/planetlab/includes/plc_functions.php
+PENDING_CONSORTIUM_ID = 0
+# not used in monitor
+#APPROVED_CONSORTIUM_ID = 999999
+
 try:
  from monitor import config
  debug = config.debug
@@ -116,12 +121,12 @@
  except:
  print "Call %s FAILED: Using old cached data" % cachename
  load_old_cache = True
-
+
  if load_old_cache:
  values = database.dbLoad(cachename)
  else:
  database.dbDump(cachename, values)
-
+
  return values
  else:
  values = database.dbLoad(cachename)
@@ -324,6 +329,22 @@
  #'last_updated', 'peer_node_id', 'ssh_rsa_key' ])
  return nodes

+
+# Check if the site is a pending site that needs to be approved.
+def isPendingSite(loginbase):
+        api = xmlrpclib.Server(auth.server, verbose=False)
+        try:
+                site = api.GetSites(auth.auth, loginbase)[0]
+        except Exception, exc:
+                login.info("ERROR: No site %s" % loginbase)
+                return False
+
+        if not site['enabled'] and site['ext_consortium_id'] == PENDING_CONSORTIUM_ID:
+                return True
+
+        return False
+
+
 '''
 Sets boot state of a node.
 '''
@@ -400,6 +421,7 @@

 def enableSlices(nodename):
  api = xmlrpclib.Server(auth.server, verbose=False, allow_none=True)
+
  for slice in slices(siteId(nodename)):
  logger.info("Enabling slices %s" % slice)
  try:
@@ -417,6 +439,7 @@
  logger.info("enableSlices: %s" % exc)
  print "exception: %s" % exc

+
 #I'm commenting this because this really should be a manual process.
 #'''
 #Enable suspended site slices.
@@ -428,6 +451,12 @@
 # api.SliceAttributeAdd(auth.auth, slice, "plc_slice_state", {"state" : "suspended"})
 #
 def enableSiteSliceCreation(loginbase):
+        if isPendingSite(loginbase):
+                msg = "INFO: enableSiteSliceCreation: Pending Site (%s)" % loginbase
+                print msg
+                logger.info(msg)
+                return
+
  api = xmlrpclib.Server(auth.server, verbose=False, allow_none=True)
  try:
  logger.info("Enabling slice creation for site %s" % loginbase)
@@ -442,10 +471,7 @@
  api = xmlrpclib.Server(auth.server, verbose=False, allow_none=True)
  try:
  loginbase = siteId(nodename)
- logger.info("Enabling slice creation for site %s" % loginbase)
- if not debug:
- logger.info("\tcalling UpdateSite(%s, enabled=True)" % loginbase)
- api.UpdateSite(auth.auth, loginbase, {'enabled': True})
+                enableSiteSliceCreation(loginbase)
  except Exception, exc:
  print "ERROR: enableSliceCreation:  %s" % exc
  logger.info("ERROR: enableSliceCreation:  %s" % exc)
@@ -453,13 +479,20 @@
 '''
 Removes site's ability to create slices. Returns previous max_slices
 '''
-def removeSiteSliceCreation(sitename):
- print "removeSiteSliceCreation(%s)" % sitename
+def removeSiteSliceCreation(loginbase):
+        print "removeSiteSliceCreation(%s)" % loginbase
+
+        if isPendingSite(loginbase):
+                msg = "INFO: removeSiteSliceCreation: Pending Site (%s)" % loginbase
+                print msg
+                logger.info(msg)
+                return
+
  api = xmlrpclib.Server(auth.server, verbose=False)
  try:
- logger.info("Removing slice creation for site %s" % sitename)
+ logger.info("Removing slice creation for site %s" % loginbase)
  if not debug:
- api.UpdateSite(auth.auth, sitename, {'enabled': False})
+ api.UpdateSite(auth.auth, loginbase, {'enabled': False})
  except Exception, exc:
  logger.info("removeSiteSliceCreation:  %s" % exc)

@@ -471,12 +504,7 @@
  api = xmlrpclib.Server(auth.server, verbose=False)
  try:
  loginbase = siteId(nodename)
- #numslices = api.GetSites(auth.auth, {"login_base": loginbase},
- # ["max_slices"])[0]['max_slices']
- logger.info("Removing slice creation for site %s" % loginbase)
- if not debug:
- #api.UpdateSite(auth.auth, loginbase, {'max_slices': 0})
- api.UpdateSite(auth.auth, loginbase, {'enabled': False})
+                removeSiteSliceCreation(loginbase)
  except Exception, exc:
  logger.info("removeSliceCreation:  %s" % exc)

Index: monitor/database/info/findbad.py
===================================================================
--- monitor/database/info/findbad.py (.../tags/Monitor-3.0-22) (révision 15357)
+++ monitor/database/info/findbad.py (.../trunk) (révision 15357)
@@ -38,6 +38,7 @@
 # INTERNAL
  kernel_version = Field(String,default=None)
  bootcd_version = Field(String,default=None)
+        boot_server = Field(String,default=None)
  nm_status = Field(String,default=None)
  fs_status = Field(String,default=None)
  iptables_status = Field(String,default=None)
Index: monitor/scanapi.py
===================================================================
--- monitor/scanapi.py (.../tags/Monitor-3.0-22) (révision 15357)
+++ monitor/scanapi.py (.../trunk) (révision 15357)
@@ -237,6 +237,7 @@
  echo '  "kernel_version":"'`uname -a`'",'
  echo '  "bmlog":"'`ls /tmp/bm.log`'",'
  echo '  "bootcd_version":"'`cat /mnt/cdrom/bootme/ID`'",'
+ echo '  "boot_server":"'`cat /mnt/cdrom/bootme/BOOTSERVER`'",'
  echo '  "nm_status":"'`ps ax | grep nm.py | grep -v grep`'",'
  echo '  "dns_status":"'`host boot.planet-lab.org 2>&1`'",'
  echo '  "iptables_status":"'`iptables -t mangle -nL | awk '$1~/^[A-Z]+$/ {modules[$1]=1;}END{for (k in modules) {if (k) printf "%s ",k;}}'`'",'
@@ -260,6 +261,7 @@
  break
  else:
  values.update({'kernel_version': "", 'bmlog' : "", 'bootcd_version' : '',
+                                                                        'boot_server' : '',
  'nm_status' : '',
  'fs_status' : '',
  'uptime' : '',
Index: automate-default.sh
===================================================================
--- automate-default.sh (.../tags/Monitor-3.0-22) (révision 15357)
+++ automate-default.sh (.../trunk) (révision 15357)
@@ -56,6 +56,7 @@
         # if no agent is running, set it up.
         ssh-agent > ${MONITOR_SCRIPT_ROOT}/agent.sh
         source ${MONITOR_SCRIPT_ROOT}/agent.sh
+        ssh-add /etc/planetlab/myops_ssh_key.rsa
         ssh-add /etc/planetlab/debug_ssh_key.rsa
         ssh-add /etc/planetlab/root_ssh_key.rsa
 fi

14 years agousing a few trunks
Thierry Parmentelat [Fri, 16 Oct 2009 17:16:51 +0000 (17:16 +0000)]
using a few trunks

14 years agopackaging nrpe
Thierry Parmentelat [Thu, 15 Oct 2009 14:37:57 +0000 (14:37 +0000)]
packaging nrpe

14 years agoSetting tag tests-4.3-5
Anil-Kumar Vengalil [Thu, 15 Oct 2009 07:53:20 +0000 (07:53 +0000)]
Setting tag tests-4.3-5
modification in fetching the /var/log/* of node in the context of special account

14 years agoSetting tag PLCAPI-4.3-28
Daniel Hokka Zakrisson [Thu, 15 Oct 2009 00:31:16 +0000 (00:31 +0000)]
Setting tag PLCAPI-4.3-28
Fix requires for CentOS.

14 years agoUpdate NodeManager tag
Andy Bavier [Tue, 13 Oct 2009 18:21:58 +0000 (18:21 +0000)]
Update NodeManager tag

14 years agoSetting tag MyPLC-4.3-27
Thierry Parmentelat [Tue, 13 Oct 2009 16:56:01 +0000 (16:56 +0000)]
Setting tag MyPLC-4.3-27
fix for silverauth - missing tag types now created at plc startup time

14 years agoSetting tag MyPLC-4.3-26
Thierry Parmentelat [Fri, 9 Oct 2009 20:05:59 +0000 (20:05 +0000)]
Setting tag MyPLC-4.3-26
plc.d/ssl preserves SSL certificates when it thinkfs they're obsolete

14 years agoNeeded to make the trellis version of util-vserver build.
Sapan Bhatia [Fri, 9 Oct 2009 18:15:14 +0000 (18:15 +0000)]
Needed to make the trellis version of util-vserver build.

14 years agobring closer in sync with planetlab-tags.mk
Marc Fiuczynski [Fri, 9 Oct 2009 17:02:51 +0000 (17:02 +0000)]
bring closer in sync with planetlab-tags.mk

14 years agoswitch to using PLCAPI-4.3-26 now that we have a somewhat ok feeling that postgres...
Marc Fiuczynski [Fri, 9 Oct 2009 16:58:12 +0000 (16:58 +0000)]
switch to using PLCAPI-4.3-26 now that we have a somewhat ok feeling that postgres 8.2 will work on CentOS

14 years agoshow/hide advance query form.
Barış Metin [Fri, 9 Oct 2009 15:52:11 +0000 (15:52 +0000)]
show/hide advance query form.

Setting tag Monitor-3.0-22

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: web/MonitorWeb/monitorweb/controllers.py
===================================================================
--- web/MonitorWeb/monitorweb/controllers.py (.../tags/Monitor-3.0-21) (révision 15272)
+++ web/MonitorWeb/monitorweb/controllers.py (.../trunk) (révision 15272)
@@ -63,6 +63,7 @@
 class QueryForm(widgets.TableForm):
     template = """
     <form xmlns:py="http://purl.org/kid/ns#"
+        id="queryform"
         name="${name}"
         action="${action}"
         method="${method}"
Index: web/MonitorWeb/monitorweb/templates/sitemenu.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/sitemenu.kid (.../tags/Monitor-3.0-21) (révision 15272)
+++ web/MonitorWeb/monitorweb/templates/sitemenu.kid (.../trunk) (révision 15272)
@@ -7,11 +7,13 @@

     <script type="text/javascript" src="/plekit/prototype/prototype.js"></script>

+    <script type="text/javascript" src="/plekit/toggle/toggle.js"></script>
     <script type="text/javascript" src="/plekit/tablesort/tablesort.js"></script>
     <script type="text/javascript" src="/plekit/tablesort/customsort.js"></script>
     <script type="text/javascript" src="/plekit/tablesort/paginate.js"></script>
     <script type="text/javascript" src="/plekit/table/table.js"></script>
     <link href="/plekit/table/table.css" rel="stylesheet" type="text/css" />
+    <link href="/plekit/toggle/toggle.css" rel="stylesheet" type="text/css" />

     <script type="text/javascript" src="/plekit/niftycorner/niftycube.js"></script>
     <script type="text/javascript" src="/plekit/niftycorner/nifty_init.js"></script>
Index: web/MonitorWeb/monitorweb/templates/query.kid
===================================================================
--- web/MonitorWeb/monitorweb/templates/query.kid (.../tags/Monitor-3.0-21) (révision 15272)
+++ web/MonitorWeb/monitorweb/templates/query.kid (.../trunk) (révision 15272)
@@ -13,11 +13,18 @@

   <div py:match="item.tag == 'content'">
    <h2>Functional, but Under Development...</h2>
+
+<img id="toggle-image-visible-query" src="/plekit/icons/toggle-visible.png" style="height:18px;" onclick="plc_toggle('query')" />
+<img id="toggle-image-hidden-query" src="/plekit/icons/toggle-hidden.png" style="height:18px;display:none" onclick="plc_toggle('query')" /> <span style="font-size:2em;">Monitor Query</span>
+
+<div id="toggle-area-query">
  <table>
  <tr>
  <td>${queryform.display(method="GET", value=data)}</td>
  </tr>
  </table>
+</div>
+
 <h4>Results</h4>
  <table py:if="fields and len(fields.keys()) > 0" id="querylist" cellpadding="0" border="0" class="plekit_table sortable-onload-0 colstyle-alt no-arrow paginationcallback-querylist_paginator max-pages-10 paginate-50" width="100%">
  <thead>
@@ -64,5 +71,16 @@
  </tr>
       </tbody>
  </table>
+<script type="text/javascript">
+var lst = $("querylist");
+var tbody = lst.getElementsBySelector("tbody")[0];
+var trs = tbody.getElementsBySelector("tr");
+if (trs.length > 2) {
+ plc_toggle("query");
+}
+</script>
+
   </div>
+
+
 </html>

14 years agoRequire postgresql 8.2 (for array operators && and @>)
Barış Metin [Fri, 9 Oct 2009 15:47:53 +0000 (15:47 +0000)]
Require postgresql 8.2 (for array operators && and @>)

Setting tag PLCAPI-4.3-27

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: PLCAPI.spec
===================================================================
--- PLCAPI.spec (.../tags/PLCAPI-4.3-26) (révision 15270)
+++ PLCAPI.spec (.../trunk) (révision 15270)
@@ -28,7 +28,7 @@

 # We use set everywhere
 Requires: python >= 2.4
-Requires: postgresql postgresql-server postgresql-python
+Requires: postgresql >= 8.2, postgresql-server >= 8.2, postgresql-python >= 8.2
 Requires: python-psycopg2
 Requires: python-pycurl
 Requires: httpd

14 years agoThe seed for random previously was the meaning of life (i.e., 42) but
Marc Fiuczynski [Fri, 9 Oct 2009 15:43:24 +0000 (15:43 +0000)]
The seed for random previously was the meaning of life (i.e., 42) but
that resulted in a not so random choice for the hmac.  This
implementation now uses a random.seed that is based on the current
time.

Setting tag NodeManager-1.8-15

14 years agoSetting tag VserverReference-4.2-14
Thierry Parmentelat [Fri, 9 Oct 2009 15:42:28 +0000 (15:42 +0000)]
Setting tag VserverReference-4.2-14
can use groups in the pkgs file with +++ for space

14 years agoSetting tag BootstrapFS-1.0-9
Thierry Parmentelat [Fri, 9 Oct 2009 15:41:54 +0000 (15:41 +0000)]
Setting tag BootstrapFS-1.0-9
can use groups in the pkgs file with +++ for space

14 years agoSetting tag sfa-0.9-5
Anil-Kumar Vengalil [Fri, 9 Oct 2009 14:58:02 +0000 (14:58 +0000)]
Setting tag sfa-0.9-5
Create_slice and get_resources methods are connected to sfatables.
Other features include compatibility with RP, handling remote objects created as part of federation, preliminary version of sfatables, call tracability and logging.

14 years agomkfedora to use the same convention for group names with +++
Thierry Parmentelat [Fri, 9 Oct 2009 14:57:10 +0000 (14:57 +0000)]
mkfedora to use the same convention for group names with +++

14 years agocan yum install groups (use +++ for space) in bootstrapfs and vserver-reference
Thierry Parmentelat [Fri, 9 Oct 2009 13:40:34 +0000 (13:40 +0000)]
can yum install groups (use +++ for space) in bootstrapfs and vserver-reference

14 years agoPLCAPI-4.3-26 does not work on CentOS and so we need to stick with 4.3-25 or fork...
Marc Fiuczynski [Fri, 9 Oct 2009 13:19:26 +0000 (13:19 +0000)]
PLCAPI-4.3-26 does not work on CentOS and so we need to stick with 4.3-25 or fork to get all changes except those related to filters

14 years agooops
Thierry Parmentelat [Thu, 8 Oct 2009 16:48:40 +0000 (16:48 +0000)]
oops

14 years agofix quoting
Thierry Parmentelat [Thu, 8 Oct 2009 16:28:02 +0000 (16:28 +0000)]
fix quoting

14 years agocomments
Thierry Parmentelat [Thu, 8 Oct 2009 15:20:15 +0000 (15:20 +0000)]
comments

14 years agoSetting tag PLCAPI-4.3-26
Thierry Parmentelat [Thu, 8 Oct 2009 14:59:37 +0000 (14:59 +0000)]
Setting tag PLCAPI-4.3-26
Filter now supports the | and & features to match in sequence values
bugfix in the postgresql wrapper for sequence filter values
reviewed GetSlivers to export admin keys more efficiently
fix checking roles in UpdateSliceTag

14 years agocosmetic
Thierry Parmentelat [Thu, 8 Oct 2009 14:52:54 +0000 (14:52 +0000)]
cosmetic