networking_ovn.tests.functional.test_metadata_agent.TestMetadataAgent.test_agent_resync_on_non_existing_bridge fails because agent doesn't refresh the settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Fix Released
|
Undecided
|
Jakub Libosvar |
Bug Description
The test fails time to time with the following exception:
2019-05-23 04:14:02.029222 | primary | 2019-05-23 04:14:02.028 | Captured traceback:
2019-05-23 04:14:02.032488 | primary | 2019-05-23 04:14:02.031 | ~~~~~~~~~~~~~~~~~~~
2019-05-23 04:14:02.035876 | primary | 2019-05-23 04:14:02.035 | b'Traceback (most recent call last):'
2019-05-23 04:14:02.040320 | primary | 2019-05-23 04:14:02.039 | b' File "/opt/stack/
2019-05-23 04:14:02.046230 | primary | 2019-05-23 04:14:02.045 | b' eventlet.
2019-05-23 04:14:02.049845 | primary | 2019-05-23 04:14:02.047 | b' File "/opt/stack/
2019-05-23 04:14:02.052983 | primary | 2019-05-23 04:14:02.052 | b' hub.switch()'
2019-05-23 04:14:02.056268 | primary | 2019-05-23 04:14:02.055 | b' File "/opt/stack/
2019-05-23 04:14:02.059667 | primary | 2019-05-23 04:14:02.058 | b' return self.greenlet.
2019-05-23 04:14:02.062601 | primary | 2019-05-23 04:14:02.061 | b'eventlet.
2019-05-23 04:14:02.066974 | primary | 2019-05-23 04:14:02.065 | b''
2019-05-23 04:14:02.069651 | primary | 2019-05-23 04:14:02.068 | b'During handling of the above exception, another exception occurred:'
2019-05-23 04:14:02.071829 | primary | 2019-05-23 04:14:02.071 | b''
2019-05-23 04:14:02.075084 | primary | 2019-05-23 04:14:02.074 | b'Traceback (most recent call last):'
2019-05-23 04:14:02.078197 | primary | 2019-05-23 04:14:02.077 | b' File "/opt/stack/
2019-05-23 04:14:02.080841 | primary | 2019-05-23 04:14:02.080 | b' return f(self, *args, **kwargs)'
2019-05-23 04:14:02.084127 | primary | 2019-05-23 04:14:02.083 | b' File "/opt/stack/
2019-05-23 04:14:02.777333 | primary | 2019-05-23 04:14:02.776 | b' exception=exc)'
2019-05-23 04:14:02.781301 | primary | 2019-05-23 04:14:02.779 | b' File "/opt/stack/
2019-05-23 04:14:02.783213 | primary | 2019-05-23 04:14:02.782 | b' raise exception'
2019-05-23 04:14:02.785957 | primary | 2019-05-23 04:14:02.785 | b"Exception: Agent bridge hasn't changed from br-int to br-new in 10 seconds after Port_Binding event"
2019-05-23 04:14:02.788135 | primary | 2019-05-23 04:14:02.787 | b''
Changed in networking-ovn: | |
assignee: | nobody → Jakub Libosvar (libosvar) |
UPD: The reason agent doesn't load new configuration is that there is no Port_Binding event emitted. That's because the SB DB is not even updated after lsp_bind() call. The transaction was aborted:
2019-05-24 13:37:54.560 18162 INFO ovsdbapp. backend. ovs_idl. transaction [req-07c1404f- 5dad-4f47- 96e2-06b4883521 8e - - - - -] Running txn n=1 command(idx=0): LspBindCommand( port=ovn- port-ce658053- 294d-4e7d- 90fe-4ac5ddd36b 6b, chassis= 34e7a9f8- fc4d-48db- 8993-5aaac51063 48, may_exist=False) backend. ovs_idl. transaction [req-07c1404f- 5dad-4f47- 96e2-06b4883521 8e - - - - -] Transaction aborted
2019-05-24 13:37:54.560 18162 INFO ovsdbapp.
At this point it's unknown why the transaction gets aborted.