← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1656629] Re: Pagination exception from commit 175bfe048283ae930b60b1cea87874d1fa1d10d6

 

** Changed in: neutron
       Status: In Progress => Invalid

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

Title:
  Pagination exception from commit
  175bfe048283ae930b60b1cea87874d1fa1d10d6

Status in neutron:
  Invalid

Bug description:
  Commit 175bfe048283ae930b60b1cea87874d1fa1d10d6 causes unit tests to
  fail.

  ft104.52: vmware_nsx.tests.unit.nsx_v3.test_plugin.TestL3NatTestCase.test_floatingip_list_with_pagination_StringException: Empty attachments:
    stderr
    stdout

  pythonlogging:'': {{{
  WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
   WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network 86846ccf-7d6f-4165-b7c9-40f92f162ee9: no agents available; will retry on subsequent port and subnet creation events.
   WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
   WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network 57eb1b8f-8ae1-4a9a-81e0-9db04e9ec511: no agents available; will retry on subsequent port and subnet creation events.
   WARNING [neutron.scheduler.dhcp_agent_scheduler] No more DHCP agents
   WARNING [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] Unable to schedule network 4ab1629b-67a1-40c6-a455-589f7c132ef7: no agents available; will retry on subsequent port and subnet creation events.
     ERROR [neutron.api.v2.resource] index failed: No details.
  Traceback (most recent call last):
    File "/tmp/openstack/neutron/neutron/api/v2/resource.py", line 79, in resource
      result = method(request=request, **args)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 92, in wrapped
      setattr(e, '_RETRY_EXCEEDED', True)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 88, in wrapped
      return f(*args, **kwargs)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
      ectxt.value = e.inner_exc
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
      return f(*args, **kwargs)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 128, in wrapped
      traceback.format_exc())
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 123, in wrapped
      return f(*dup_args, **dup_kwargs)
    File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 369, in index
      return self._items(request, True, parent_id)
    File "/tmp/openstack/neutron/neutron/api/v2/base.py", line 308, in _items
      obj_list = obj_getter(request.context, **kwargs)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 163, in wrapped
      return method(*args, **kwargs)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 92, in wrapped
      setattr(e, '_RETRY_EXCEEDED', True)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 88, in wrapped
      return f(*args, **kwargs)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
      ectxt.value = e.inner_exc
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
      return f(*args, **kwargs)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 128, in wrapped
      traceback.format_exc())
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/tmp/openstack/neutron/neutron/db/api.py", line 123, in wrapped
      return f(*dup_args, **dup_kwargs)
    File "/tmp/openstack/neutron/neutron/db/l3_db.py", line 1413, in get_floatingips
      page_reverse=page_reverse)
    File "/tmp/openstack/neutron/neutron/db/common_db_mixin.py", line 253, in _get_collection
      page_reverse=page_reverse)
    File "/tmp/openstack/neutron/neutron/db/common_db_mixin.py", line 243, in _get_collection_query
      sort_dirs=sort_dirs)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/utils.py", line 235, in paginate_query
      crit_attrs.append((model_attr > marker_values[i]))
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/operators.py", line 318, in __gt__
      return self.operate(gt, other)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 175, in operate
      return op(self.comparator, *other, **kwargs)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/operators.py", line 318, in __gt__
      return self.operate(gt, other)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/orm/properties.py", line 269, in operate
      return op(self.__clause_element__(), *other, **kwargs)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/operators.py", line 318, in __gt__
      return self.operate(gt, other)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 742, in operate
      return op(self.comparator, *other, **kwargs)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/operators.py", line 318, in __gt__
      return self.operate(gt, other)
    File "<string>", line 1, in <lambda>
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/type_api.py", line 60, in operate
      return o[0](self.expr, op, *(other + o[1:]), **kwargs)
    File "/home/jenkins/workspace/gate-vmware-nsx-python27-db-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/default_comparator.py", line 53, in _boolean_compare
      "Only '=', '!=', 'is_()', 'isnot()' operators can "
  ArgumentError: Only '=', '!=', 'is_()', 'isnot()' operators can be used with None/True/False
  }}}

  Traceback (most recent call last):
    File "/tmp/openstack/neutron/neutron/tests/base.py", line 114, in func
      return f(self, *args, **kwargs)
    File "/tmp/openstack/neutron/neutron/tests/base.py", line 114, in func
      return f(self, *args, **kwargs)
    File "/tmp/openstack/neutron/neutron/tests/unit/extensions/test_l3.py", line 2713, in test_floatingip_list_with_pagination
      ('floating_ip_address', 'asc'), 2, 2)
    File "/tmp/openstack/neutron/neutron/tests/unit/db/test_db_base_plugin_v2.py", line 709, in _test_list_with_pagination
      self.assertThat(len(res[resources]),
  KeyError: 'floatingips'

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



References