Skip to content
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
@markdryan

Description

@markdryan

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.

  1. There is a cluster with one NN node.
  2. The NN is evacuated.
  3. Controller tries and fails to restart the CNCI so it is deleted.
  4. The NN is restored.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions