Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/6] runqemu: Ensure we process all tap devices
@ 2017-11-21 13:10 Richard Purdie
  2017-11-21 13:10 ` [PATCH 2/6] qemu: Add patch to avoid qemuppc boot hangs Richard Purdie
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Richard Purdie @ 2017-11-21 13:10 UTC (permalink / raw)
  To: openembedded-core

The regexp in the script misses some tap devices, e.g. we see output like:

runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap25.lock failed: [Errno 11] Resource temporarily unavailable
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap26.lock failed: [Errno 11] Resource temporarily unavailable
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap27.lock failed: [Errno 11] Resource temporarily unavailable
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap28.lock failed: [Errno 11] Resource temporarily unavailable
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap40.lock failed: [Errno 11] Resource temporarily unavailable
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap41.lock failed: [Errno 11] Resource temporarily unavailable

What happened to tap29 to tap39?

The issue is was we were missing devices with '0' in the number,
like "10:" and so on in the output from "ip link".

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index fe4459d..ad88da3 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -923,7 +923,7 @@ class BaseConfig(object):
         logger.debug('Running %s...' % cmd)
         ip_link = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8')
         # Matches line like: 6: tap0: <foo>
-        possibles = re.findall('^[1-9]+: +(tap[0-9]+): <.*', ip_link, re.M)
+        possibles = re.findall('^[0-9]+: +(tap[0-9]+): <.*', ip_link, re.M)
         tap = ""
         for p in possibles:
             lockfile = os.path.join(lockdir, p)
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-21 13:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-21 13:10 [PATCH 1/6] runqemu: Ensure we process all tap devices Richard Purdie
2017-11-21 13:10 ` [PATCH 2/6] qemu: Add patch to avoid qemuppc boot hangs Richard Purdie
2017-11-21 13:10 ` [PATCH 3/6] classes/cross: Add addto_recipe_sysroot task to cross recipes Richard Purdie
2017-11-21 13:10 ` [PATCH 4/6] runqemu: Improve relative path handling in qemuconf files Richard Purdie
2017-11-21 13:10 ` [PATCH 5/6] qemuboot: Improve relative path handling Richard Purdie
2017-11-21 13:10 ` [PATCH 6/6] qemurunner: Simplify binary data handling Richard Purdie
2017-11-21 13:35 ` ✗ patchtest: failure for "runqemu: Ensure we process all..." and 5 more Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox