Adding debug trace to IPWrapper.get_devices()
This patch adds a debug trace to the get_devices() method due to some jobs failing in gate (especifically functional test for netns_cleanup). From gate logs, looks like rootwrap_daemon is returning the output of the previous command and this trace is to make sure what the actual output is. Change-Id: I83c59b9f0ae1ab51f166f442d99a1022e88d808e Related-Bug: #1654287
This commit is contained in:
parent
bcd6fddb12
commit
327f7fc4d5
|
@ -131,10 +131,14 @@ class IPWrapper(SubProcessBase):
|
|||
cmd = ['ip', 'netns', 'exec', self.namespace,
|
||||
'find', SYS_NET_PATH, '-maxdepth', '1',
|
||||
'-type', 'l', '-printf', '%f ']
|
||||
output = utils.execute(
|
||||
output_str = utils.execute(
|
||||
cmd,
|
||||
run_as_root=True,
|
||||
log_fail_as_error=self.log_fail_as_error).split()
|
||||
log_fail_as_error=self.log_fail_as_error)
|
||||
# NOTE(dalvarez): Logging the output of this call due to
|
||||
# bug1654287.
|
||||
LOG.debug('get_devices(): %s', output_str)
|
||||
output = output_str.split()
|
||||
except RuntimeError:
|
||||
# We could be racing with a cron job deleting namespaces.
|
||||
# Just return a empty list if the namespace is deleted.
|
||||
|
|
Loading…
Reference in New Issue