This repository was archived by the owner on Jul 16, 2020. It is now read-only.
This repository was archived by the owner on Jul 16, 2020. It is now read-only.
CNCI agent should be stateless #1447
Open
Description
Currently, the CNCI agent maintains some state in a boltdb database. Architecturally, it would be preferable if the CNCI agent maintained no state at all. Instead this information could be passed to the cnici agent by controller when it first starts. In the current implementation there is CNCI migration bug which needs to be addressed. The issue is as follows.
- There is a cluster with one NN node.
- The NN is evacuated.
- Controller tries and fails to restart the CNCI so it is deleted.
- The NN is restored.
- Next time the user needs a CNCI, a new CNCI will be started on the network node, but the old state will have been lost.
Storing no state in the CNCI agent would fix this issue.