excessive duplicate lines in osprofiler output

Bug #1394785 reported by Walt Boring
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Eric Harney

Bug Description

I'm currently working on upgrading my unit tests for the multi-attach db migration script. I'm getting errors in my migraton script and the output has an excessive amount of duplicate lines being dumped because of the osprofiler being enabled by default in cinder.

For example, one of the unit test failures

Traceback (most recent call last):
  File "/home/waboring/cinder/cinder/tests/test_volume.py", line 1644, in test_run_attach_detach_shareable_volume_for_hosts
    'rw')
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/.venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)
  File "/home/waboring/cinder/cinder/volume/manager.py", line 766, in attach_volume
    return do_attach()
  File "/home/waboring/cinder/cinder/openstack/common/lockutils.py", line 233, in inner
    retval = f(*args, **kwargs)
  File "/home/waboring/cinder/cinder/volume/manager.py", line 690, in do_attach
    raise exception.InvalidVolume(reason=msg)
InvalidVolume: Invalid volume: status must be available or attaching

Traceback (most recent call last):
_StringException: Empty attachments:
  stderr
  stdout

Revision history for this message
Boris Pavlovic (boris-42) wrote :

Seems like this line:

https://github.com/openstack/cinder/blob/master/cinder/service.py#L123

We need to find the better way to handle this

Eric Harney (eharney)
Changed in cinder:
status: New → Confirmed
Changed in cinder:
assignee: nobody → Eric Harney (eharney)
status: Confirmed → In Progress
Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-1 → 7.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.