[livemedia-creator 1/4] livemedia-creator: add more errors

Brian C. Lane bcl at redhat.com
Wed Jul 2 22:17:38 UTC 2014


Add check for running traceback script and when the retry fails.

This also indicates something went wrong with the installation, exit
when they are seen in the logs.

Also drop looking for WARNING in the regex errors, they will be errors
after the syslog level name remap patch goes into anaconda.
---
 src/sbin/livemedia-creator | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index e5f4f77..378282f 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -143,9 +143,11 @@ class LogRequestHandler(SocketServer.BaseRequestHandler):
         simple_tests = ["Traceback (",
                         "Out of memory:",
                         "Call Trace:",
-                        "insufficient disk space:"]
-        re_tests =     [r"WARNING packaging: base repo .* not valid",
-                        r"WARNING packaging: .* requires .*"]
+                        "insufficient disk space:",
+                        "error populating transaction after",
+                        "traceback script(s) have been run"]
+        re_tests =     [r"packaging: base repo .* not valid",
+                        r"packaging: .* requires .*"]
         for t in simple_tests:
             if t in line:
                 self.server.log_error = True
-- 
1.9.3



More information about the anaconda-patches mailing list