From: Lucia Guevgeozian Odizzio Date: Fri, 7 Feb 2014 16:35:04 +0000 (+0100) Subject: More file system check for PL node X-Git-Tag: nepi-3.1.0~127 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=42c25d3e7e064bd20701dbf2921d23e715354106;p=nepi.git More file system check for PL node --- diff --git a/src/nepi/resources/planetlab/node.py b/src/nepi/resources/planetlab/node.py index e1d0e63b..330ad645 100644 --- a/src/nepi/resources/planetlab/node.py +++ b/src/nepi/resources/planetlab/node.py @@ -351,9 +351,10 @@ class PlanetlabNode(LinuxNode): else: cmd = 'mount |grep proc' ((out1, err1), proc1) = self.execute(cmd) - cmd = 'touch /tmp/tmpfile' + cmd = 'touch /tmp/tmpfile; rm /tmp/tmpfile' ((out2, err2), proc2) = self.execute(cmd) - if out1.find("/proc type proc") < 0 or err2.find("Read-only file system") > 0: + if out1.find("/proc type proc") < 0 or \ + "Read-only file system".lower() in err2.lower(): with PlanetlabNode.lock: self.warn(" Corrupted file system ") self._blacklist_node(node)