Failed to load VM in multi-node setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DragonFlow |
Invalid
|
Medium
|
Unassigned |
Bug Description
After creating a VM in command line it was not working
and I found an exception in the log file:
[-] Dragonflow application 'DHCPApp' failed in add_local_port
Traceback (most recent call last):
File "/opt/stack/
handler(*args, **kwargs)
File "/opt/stack/
if not self._is_
File "/opt/stack/
subnet = self._get_
File "/opt/stack/
subnets = l_switch.
AttributeError: 'NoneType' object has no attribute 'get_subnets'
Changed in dragonflow: | |
importance: | Undecided → Medium |
assignee: | nobody → Yuli (stremovsky) |
Changed in dragonflow: | |
importance: | Medium → Critical |
assignee: | Yuli (stremovsky) → nobody |
importance: | Critical → Medium |
Changed in dragonflow: | |
status: | New → Invalid |
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)