← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1716243] [NEW] gw_port not persistent in session for expire call

 

Public bug reported:

occasional functional failure. Example:
http://logs.openstack.org/33/499433/4/gate/gate-neutron-dsvm-functional-
ubuntu-xenial/3cc7baf/testr_results.html.gz


Traceback (most recent call last):
  File "neutron/tests/base.py", line 118, in func
    return f(self, *args, **kwargs)
  File "neutron/tests/functional/services/l3_router/test_l3_dvr_ha_router_plugin.py", line 391, in test_dvr_ha_router_create_attach_internal_external_detach_delete
    self._clear_external_gateway(router)
  File "neutron/tests/functional/services/l3_router/test_l3_dvr_ha_router_plugin.py", line 320, in _clear_external_gateway
    {'router': {l3.EXTERNAL_GW_INFO: {}}})
  File "neutron/db/extraroute_db.py", line 65, in update_router
    context, id, router)
  File "neutron/db/l3_db.py", line 1844, in update_router
    id, router)
  File "neutron/db/api.py", line 162, in wrapped
    return method(*args, **kwargs)
  File "neutron/db/api.py", line 92, in wrapped
    setattr(e, '_RETRY_EXCEEDED', True)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "neutron/db/api.py", line 88, in wrapped
    return f(*args, **kwargs)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_db/api.py", line 150, in wrapper
    ectxt.value = e.inner_exc
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
    return f(*args, **kwargs)
  File "neutron/db/api.py", line 127, in wrapped
    LOG.debug("Retry wrapper got retriable exception: %s", e)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "neutron/db/api.py", line 123, in wrapped
    return f(*dup_args, **dup_kwargs)
  File "neutron/db/l3_db.py", line 275, in update_router
    self._update_router_gw_info(context, id, gw_info)
  File "neutron/db/l3_gwmode_db.py", line 69, in _update_router_gw_info
    context, router_id, info, router=router)
  File "neutron/db/l3_db.py", line 506, in _update_router_gw_info
    network_id)
  File "neutron/db/l3_db.py", line 425, in _delete_current_gw_port
    self._delete_router_gw_port_db(context, router)
  File "neutron/db/l3_db.py", line 443, in _delete_router_gw_port_db
    context.session.expire(gw_port)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1533, in expire
    self._expire_state(state, attribute_names)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1536, in _expire_state
    self._validate_persistent(state)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1976, in _validate_persistent
    state_str(state))
sqlalchemy.exc.InvalidRequestError: Instance '<Port at 0x7f8622f98b50>' is not persistent within this Session

** Affects: neutron
     Importance: High
     Assignee: Kevin Benton (kevinbenton)
         Status: New


** Tags: gate-failure

** Changed in: neutron
   Importance: Undecided => High

** Tags added: gate-failure

** Changed in: neutron
     Assignee: (unassigned) => Kevin Benton (kevinbenton)

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

Title:
  gw_port not persistent in session for expire call

Status in neutron:
  New

Bug description:
  occasional functional failure. Example:
  http://logs.openstack.org/33/499433/4/gate/gate-neutron-dsvm-
  functional-ubuntu-xenial/3cc7baf/testr_results.html.gz


  Traceback (most recent call last):
    File "neutron/tests/base.py", line 118, in func
      return f(self, *args, **kwargs)
    File "neutron/tests/functional/services/l3_router/test_l3_dvr_ha_router_plugin.py", line 391, in test_dvr_ha_router_create_attach_internal_external_detach_delete
      self._clear_external_gateway(router)
    File "neutron/tests/functional/services/l3_router/test_l3_dvr_ha_router_plugin.py", line 320, in _clear_external_gateway
      {'router': {l3.EXTERNAL_GW_INFO: {}}})
    File "neutron/db/extraroute_db.py", line 65, in update_router
      context, id, router)
    File "neutron/db/l3_db.py", line 1844, in update_router
      id, router)
    File "neutron/db/api.py", line 162, in wrapped
      return method(*args, **kwargs)
    File "neutron/db/api.py", line 92, in wrapped
      setattr(e, '_RETRY_EXCEEDED', True)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "neutron/db/api.py", line 88, in wrapped
      return f(*args, **kwargs)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_db/api.py", line 150, in wrapper
      ectxt.value = e.inner_exc
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
      return f(*args, **kwargs)
    File "neutron/db/api.py", line 127, in wrapped
      LOG.debug("Retry wrapper got retriable exception: %s", e)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "neutron/db/api.py", line 123, in wrapped
      return f(*dup_args, **dup_kwargs)
    File "neutron/db/l3_db.py", line 275, in update_router
      self._update_router_gw_info(context, id, gw_info)
    File "neutron/db/l3_gwmode_db.py", line 69, in _update_router_gw_info
      context, router_id, info, router=router)
    File "neutron/db/l3_db.py", line 506, in _update_router_gw_info
      network_id)
    File "neutron/db/l3_db.py", line 425, in _delete_current_gw_port
      self._delete_router_gw_port_db(context, router)
    File "neutron/db/l3_db.py", line 443, in _delete_router_gw_port_db
      context.session.expire(gw_port)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1533, in expire
      self._expire_state(state, attribute_names)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1536, in _expire_state
      self._validate_persistent(state)
    File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1976, in _validate_persistent
      state_str(state))
  sqlalchemy.exc.InvalidRequestError: Instance '<Port at 0x7f8622f98b50>' is not persistent within this Session

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


Follow ups