network creation error but it is recorded at neutron DB side.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DragonFlow |
Fix Released
|
High
|
Li Ma |
Bug Description
Here is the problem:
A network is created and written in neutron DB. At the meantime, Etcd cannot get the corresponding key 'lswitch', which causes unable to create subnet for this network.
The log file says that Etcd was disconnected at the network creation.
AFAIK, if the operation on Etcd fails, the DB transaction should also be rollbacked at the neutron DB side to prevent from updating DB records. This causes inconsistency of DB backends.
The related code in dragonflow/
def create_
with context.
result = super(DFPlugin, self).create_
return self.create_
description: | updated |
description: | updated |
Changed in dragonflow: | |
assignee: | nobody → Li Ma (nick-ma-z) |
Changed in dragonflow: | |
assignee: | Li Ma (nick-ma-z) → nobody |
Changed in dragonflow: | |
importance: | Undecided → High |
Changed in dragonflow: | |
assignee: | nobody → Li Ma (nick-ma-z) |
It is easy to reproduce.
1. kill etcd
2. run 'neutron net-create network11'
3. It shows neutron cannot create network.
4. run 'neutron net-list'