The problem happens due to a deadlock. After the deadlock the network cleanup happened. But while port creating the same network is used. This results in given traceback.
DBDeadlock: (pymysql.err.InternalError) (1213, u'Deadlock found when trying to get lock; try restarting transaction') [SQL: u'UPDATE ports SET status=%(status)s WHERE ports.id = %(ports_id)s'] [parameters: {'status': 'ACTIVE', 'ports_id': u'a9bed451-d126-4f3a-aecc-f3965b1a6252'}]
The problem happens due to a deadlock. After the deadlock the network cleanup happened. But while port creating the same network is used. This results in given traceback.
DBDeadlock: (pymysql. err.InternalErr or) (1213, u'Deadlock found when trying to get lock; try restarting transaction') [SQL: u'UPDATE ports SET status=%(status)s WHERE ports.id = %(ports_id)s'] [parameters: {'status': 'ACTIVE', 'ports_id': u'a9bed451- d126-4f3a- aecc-f3965b1a62 52'}]