prlimit bound qemu-img call fails when running under wsgi configuration
Bug #1712463 reported by
Brian Rosmaita
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
High
|
Matthew Treinish | ||
oslo.concurrency |
Fix Released
|
Undecided
|
Matthew Treinish |
Bug Description
When running under uwsgi, the tasks that call qemu-image fail. See comment #1 for a stacktrace and comment #2 for details.
Ignore the business about waitall() in comment #1, that's unrelated and is being moved to a different bug, namely, https:/
Changed in glance: | |
milestone: | none → queens-1 |
assignee: | nobody → Brian Rosmaita (brian-rosmaita) |
status: | Triaged → In Progress |
description: | updated |
Changed in glance: | |
milestone: | queens-1 → queens-2 |
description: | updated |
description: | updated |
tags: | added: uwsgi |
Changed in glance: | |
milestone: | queens-3 → queens-rc1 |
Changed in glance: | |
milestone: | queens-rc1 → queens-rc2 |
Changed in glance: | |
milestone: | queens-rc2 → rocky-1 |
To post a comment you must log in.
Had to put a waitall() on the greenpool when the task was being spawned. That gave me some useful logs and I can watch the task going to failure. Not sure yet exactly why without the waitall() the tasks are just sitting there.
This is definitely a problem though:
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: DEBUG oslo_concurrenc y.processutils [None req-81a7fc37- af25-499f- 9190-70851c43ed a5 admin admin] Running cmd (subprocess): /usr/local/ bin/uwsgi -m oslo_concurrenc y.prlimit --as=1073741824 --cpu=2 -- qemu-img info --output=json file:// /tmp/glance_ workdir/ 0d397d5e- 0662-40c5- ba24-230d11f578 8c {{(pid=65491) execute /usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/processutils. py:355} } y.processutils [None req-81a7fc37- af25-499f- 9190-70851c43ed a5 admin admin] CMD "/usr/local/ bin/uwsgi -m oslo_concurrenc y.prlimit --as=1073741824 --cpu=2 -- qemu-img info --output=json file:// /tmp/glance_ workdir/ 0d397d5e- 0662-40c5- ba24-230d11f578 8c" returned: 1 in 0.016s {{(pid=65491) execute /usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/processutils. py:385} } y.processutils [None req-81a7fc37- af25-499f- 9190-70851c43ed a5 admin admin] None local/bin/ uwsgi -m oslo_concurrenc y.prlimit --as=1073741824 --cpu=2 -- qemu-img info --output=json file:// /tmp/glance_ workdir/ 0d397d5e- 0662-40c5- ba24-230d11f578 8c' y.prlimit\ n' {{(pid=65491) execute /usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/processutils. py:424} } y.processutils [None req-81a7fc37- af25-499f- 9190-70851c43ed a5 admin admin] u'/usr/ local/bin/ uwsgi -m oslo_concurrenc y.prlimit --as=1073741824 --cpu=2 -- qemu-img info --output=json file:// /tmp/glance_ workdir/ 0d397d5e- 0662-40c5- ba24-230d11f578 8c' failed. Not Retrying. {{(pid=65491) execute /usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/processutils. py:433} }
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: DEBUG oslo_concurrenc
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: DEBUG oslo_concurrenc
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: command: u'/usr/
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: exit code: 1
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: stdout: u''
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: stderr: u'unable to load configuration from oslo_concurrenc
Aug 29 11:47:02 br-virtual-machine <email address hidden>[65490]: DEBUG oslo_concurrenc
The command being run in the subprocess seems kind of weird, i.e., /usr/local/ bin/uwsgi