From 40206cb80a8a1636eac0733360a0cc67bea9a6da Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Tue, 7 Feb 2012 15:57:38 -0800 Subject: nova-rootwrap: wait() for return code before exit nova-rootwrap does not wait() for the subprocess it executes to complete before returning its return code. This often ends up in 0 being returned regardless of failure/success and causing unforeseen problems in Nova. Fixes bug #928566 Change-Id: I9b6d85c747513086d0e774cb92ba403886b3283c --- bin/nova-rootwrap | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/nova-rootwrap b/bin/nova-rootwrap index 0434aed3a..c5d53b46f 100755 --- a/bin/nova-rootwrap +++ b/bin/nova-rootwrap @@ -67,6 +67,7 @@ if __name__ == '__main__': stdout=sys.stdout, stderr=sys.stderr, env=filtermatch.get_environment(userargs)) + obj.wait() sys.exit(obj.returncode) print "Unauthorized command: %s" % ' '.join(userargs) -- cgit