test_server_numa in test_numa_topology doesn't work on Ubuntu 14

Bug #1573157 reported by Waldemar Znoinski on 2016-04-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

23:25:02 Captured traceback:
23:25:02 ~~~~~~~~~~~~~~~~~~~
23:25:02 Traceback (most recent call last):
23:25:02 File "tempest/test.py", line 113, in wrapper
23:25:02 return f(self, *func_args, **func_kwargs)
23:25:02 File "/usr/local/lib/python2.7/dist-packages/intel_nfv_ci_tests-0.0.1.dev30-py2.7.egg/intel_nfv_ci_tests/tests/scenario/test_numa_topology.py", line 194, in test_server_numa
23:25:02 placement = self.get_placement(4)
23:25:02 File "/usr/local/lib/python2.7/dist-packages/intel_nfv_ci_tests-0.0.1.dev30-py2.7.egg/intel_nfv_ci_tests/tests/scenario/test_numa_topology.py", line 132, in get_placement
23:25:02 % out.strip(), shell=True)
23:25:02 File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 371, in execute
23:25:02 cmd=sanitized_cmd)
23:25:02 oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
23:25:02 Command: grep name /proc/28256
23:25:02 28409/cgroup
23:25:02 Exit code: 127
23:25:02 Stdout: u''
23:25:02 Stderr: u'grep: /proc/28256: Is a directory\n/bin/sh: 2: 28409/cgroup: not found\n'

Reviewed: https://review.openstack.org/309122
Committed: https://git.openstack.org/cgit/openstack/intel-nfv-ci-tests/commit/?id=824805d91dd877ded1244dfd276fe59812621ead
Submitter: Jenkins
Branch: master

commit 824805d91dd877ded1244dfd276fe59812621ead
Author: Waldemar Znoinski <email address hidden>
Date: Thu Apr 21 18:35:53 2016 +0100

    fix get_placement function to use ps and new cgroup path

    Change in path to cgroup that has vcpu placement
    information is required for the function to work properly
    when run on host VM with Ubuntu 14. This breaks this
    function run in a docker container where cgroup paths
    are different. get_placement function now uses
    ps instead of pgrep due to fact pgrep was picking
    up more than qemu/VM process - it was not filtering
    '/bin/sh pgrep...' line.

    Change-Id: I7772dee3f9cf8680a65681fe642eba6e0724f80e
    Closes-Bug: #1573157

Changed in intel-nfv-ci-tests:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers