I was researching this bug and found the following.
I was creating VM as an admin user and admin group (tenant_a). When creating the VM I assigned it to the "private" network (tenant_b).
So, when a local port for VM is created, it is assigned to tenant_a. While, it's switch is assigned to tenant_b.
In log I see that the system is subscribed to tenant_a topic (and not to tenant_b). Subscribe topic: tenant_a by lport
As a result, nothing is returned for: self.db_store.get_lswitch(l_switch_id)
I was researching this bug and found the following.
I was creating VM as an admin user and admin group (tenant_a).
When creating the VM I assigned it to the "private" network
(tenant_b).
So, when a local port for VM is created, it is assigned to tenant_a.
While, it's switch is assigned to tenant_b.
In log I see that the system is subscribed to tenant_a topic
(and not to tenant_b).
Subscribe topic: tenant_a by lport
As a result, nothing is returned for: self.db_ store.get_ lswitch( l_switch_ id)