l_node = plc.getNodes(node_ids, ['hostname', 'last_contact', 'node_id', 'ports'])
except:
try:
- plc_nodes = plccache.l_plcnodes
+ plc_nodes = plccache.l_nodes
for n in plc_nodes:
if n['node_id'] in node_ids:
l_node.append(n)
try:
for port in [22, 806]:
ssh = command.SSH('root', nodename, port)
+ #echo ' "fs_status":"'`touch /var/log/monitor 2>&1 ; if [ -d /vservers/ ] ; then touch /vservers/monitor.log 2>&1 ; fi ; grep proc /proc/mounts | grep ro,`'",'
(oval, errval) = ssh.run_noexcept2(""" <<\EOF
echo "{"
echo ' "bmlog":"'`ls /tmp/bm.log`'",'
echo ' "bootcd_version":"'`cat /mnt/cdrom/bootme/ID`'",'
echo ' "nm_status":"'`ps ax | grep nm.py | grep -v grep`'",'
- echo ' "fs_status":"'`touch /var/log/monitor 2>&1 ; if [ -d /vservers/ ] ; then touch /vservers/monitor.log 2>&1 ; fi ; grep proc /proc/mounts | grep ro,`'",'
echo ' "dns_status":"'`host boot.planet-lab.org 2>&1`'",'
echo ' "princeton_comon_dir":"'`ls -d /vservers/princeton_comon`'",'
print traceback.print_exc()
sys.exit(1)
+ values['fs_status'] = ""
print "ALLVERSIONS: %s %s" % (nodename, values['rpm_versions'])
print "RPMVERSION: %s %s" % (nodename, values['rpm_version'])
values['dns_status'] = "DNS-OK"
else:
values['dns_status'] = "DNS-MISMATCH"
- continue_probe = False
+ values['plc_pcu_stats']['hostname'] = values['plc_pcu_stats']['ip']
except Exception, err:
values['dns_status'] = "DNS-NOENTRY"