test_multiprocessing fails on OS X

Bug #1205367 reported by Brian Elliott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Brian Elliott

Bug Description

The 'ps' command on OS X does not accept a "-ppid" argument and _get_children() returns an empty string.

======================================================================
ERROR: glance.tests.functional.v1.test_multiprocessing.TestMultiprocessing.test_interrupt_avoids_respawn_storm
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/Users/bde/glance/glance/tests/functional/v1/test_multiprocessing.py", line 63, in test_interrupt_avoids_respawn_storm
    execute(cmd, raise_error=True)
  File "/Users/bde/glance/glance/tests/utils.py", line 271, in execute
    raise RuntimeError(msg)
RuntimeError: Command kill -INT did not succeed. Returned an exit code of 1.

STDOUT:

STDERR: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Brian Elliott (belliott)
Changed in glance:
assignee: nobody → Brian Elliott (belliott)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/38820

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/38820
Committed: http://github.com/openstack/glance/commit/fcaf7d4e624184458af2c370f7192eaedc93adc5
Submitter: Jenkins
Branch: master

commit fcaf7d4e624184458af2c370f7192eaedc93adc5
Author: Brian Elliott <email address hidden>
Date: Fri Jul 19 17:33:42 2013 +0000

    Use cross-platform 'ps' for test_multiprocessing

    This fixes _get_children() on OS X.

    bug 1205367

    Change-Id: I296ea18dbd601f18fe7367b42bf5aecd9ccf9646

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → havana-3
status: Fix Committed → Fix Released
Revision history for this message
Yang Yu (yuyangbj) wrote : I will be on vacation from 9/5 to 9/15, urgent call: 13811509950

I will be out of the office starting 2013-09-05 and will not return until
2013-09-15.

I will be on my marriage leave from 9/5 to 9/15, for any urgent issue
please call me before 9/7.

For daily work, please ask my scrum master Zhu Zhu for help.
For glance issue, please ask glance SME Feilong Wang for help.
For defect report, there will be no report next week.

Thierry Carrez (ttx)
Changed in glance:
milestone: havana-3 → 2013.2
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.