Public bug reported: The nova-api-wsgi script provides a quick and easy way to run the nova- api from the command line. In at least python3.6 it fails with:
ERROR nova Traceback (most recent call last): ERROR nova File "/usr/local/bin/nova-api-wsgi", line 50, in <module> ERROR nova server.serve_forever() ERROR nova File "/usr/lib/python3.6/socketserver.py", line 232, in serve_forever ERROR nova with _ServerSelector() as selector: ERROR nova File "/usr/lib/python3.6/selectors.py", line 348, in __init__ ERROR nova self._poll = select.poll() ERROR nova AttributeError: module 'select' has no attribute 'poll' ERROR nova this is because eventlet is being monkey patched too late, see https://stackoverflow.com/questions/51524589/attributeerror-module- select-has-no-attribute-poll importing eventlet at the top of the script fixes it. It's not clear this is necessarily worth fixing, as running nova-api this way is not really a thing. I only did because I was trying to confirm that a problem was not the result of uwsgi. But report it for sake of discussion. ** Affects: nova Importance: Undecided Status: New ** Tags: api -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1795502 Title: running nova-api-wsgi from the command line fails in python3.6 Status in OpenStack Compute (nova): New Bug description: The nova-api-wsgi script provides a quick and easy way to run the nova-api from the command line. In at least python3.6 it fails with: ERROR nova Traceback (most recent call last): ERROR nova File "/usr/local/bin/nova-api-wsgi", line 50, in <module> ERROR nova server.serve_forever() ERROR nova File "/usr/lib/python3.6/socketserver.py", line 232, in serve_forever ERROR nova with _ServerSelector() as selector: ERROR nova File "/usr/lib/python3.6/selectors.py", line 348, in __init__ ERROR nova self._poll = select.poll() ERROR nova AttributeError: module 'select' has no attribute 'poll' ERROR nova this is because eventlet is being monkey patched too late, see https://stackoverflow.com/questions/51524589/attributeerror-module- select-has-no-attribute-poll importing eventlet at the top of the script fixes it. It's not clear this is necessarily worth fixing, as running nova-api this way is not really a thing. I only did because I was trying to confirm that a problem was not the result of uwsgi. But report it for sake of discussion. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1795502/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

