← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1657476] Re: Metadata agent fails to serve requests in python 3

 

Reviewed:  https://review.openstack.org/421976
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=7953e9886d96557b80a9afa2543d0db5008dc35f
Submitter: Jenkins
Branch:    master

commit 7953e9886d96557b80a9afa2543d0db5008dc35f
Author: Oleg Bondarev <obondarev@xxxxxxxxxxxx>
Date:   Wed Jan 18 18:37:52 2017 +0400

    Fix empty string check for python 3
    
    It's '' in py2 and b'' in py3.
    See bug for traceback.
    
    Closes-Bug: #1657476
    Change-Id: Ic2c32669bf238b702e13e81e15dd079d538a6abc


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1657476

Title:
  Metadata agent fails to serve requests in python 3

Status in neutron:
  Fix Released

Bug description:
  from http://logs.openstack.org/09/421209/7/experimental/gate-tempest-
  dsvm-nova-py35-ubuntu-xenial/2dda79b/logs/screen-q-meta.txt.gz:

  Traceback (most recent call last):
    File "/usr/local/lib/python3.5/dist-packages/eventlet/greenpool.py", line 82, in _spawn_n_impl
      func(*args, **kwargs)
    File "/usr/local/lib/python3.5/dist-packages/eventlet/wsgi.py", line 719, in process_request
      proto.__init__(sock, address, self)
    File "/opt/stack/new/neutron/neutron/agent/linux/utils.py", line 409, in __init__
      server)
    File "/usr/lib/python3.5/socketserver.py", line 681, in __init__
      self.handle()
    File "/usr/lib/python3.5/http/server.py", line 422, in handle
      self.handle_one_request()
    File "/usr/local/lib/python3.5/dist-packages/eventlet/wsgi.py", line 379, in handle_one_request
      self.environ = self.get_environ()
    File "/usr/local/lib/python3.5/dist-packages/eventlet/wsgi.py", line 593, in get_environ
      env['REMOTE_ADDR'] = self.client_address[0]
  IndexError: index out of range

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1657476/+subscriptions


References