How to Connect OVS to Opendaylight Clustering

asked 2017-08-30 08:37:15 -0700

updated 2017-08-30 08:38:26 -0700

Hello, I have configure 3 opendaylight to be a clustring. this is my configuration of opendaylight.

Topology:

image description

Configuration :

OpenDayLight1

akka.conf

odl-cluster-data {
  akka {
    remote {
      netty.tcp {
        hostname = "192.168.122.36"
        port = 2550
      }
    }

    cluster {
        seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
    seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
    seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

      roles = [
        "member-1"
      ]

    }

    persistence {
      # By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
      # modifying the following two properties. The directory location specified may be a relative or absolute path. 
      # The relative path is always relative to KARAF_HOME.

      # snapshot-store.local.dir = "target/snapshots"
      # journal.leveldb.dir = "target/journal"

      journal {
        leveldb {
          # Set native = off to use a Java-only implementation of leveldb.
          # Note that the Java-only version is not currently considered by Akka to be production quality.

          # native = off
        }
      }
    }
  }
}

OpenDayLight2

akka.conf

odl-cluster-data {
  akka {
    remote {
      netty.tcp {
        hostname = "192.168.122.37"
        port = 2550
      }
    }

    cluster {
        seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
    seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
    seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

      roles = [
        "member-2"
      ]

    }

    persistence {
      # By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
      # modifying the following two properties. The directory location specified may be a relative or absolute path. 
      # The relative path is always relative to KARAF_HOME.

      # snapshot-store.local.dir = "target/snapshots"
      # journal.leveldb.dir = "target/journal"

      journal {
        leveldb {
          # Set native = off to use a Java-only implementation of leveldb.
          # Note that the Java-only version is not currently considered by Akka to be production quality.

          # native = off
        }
      }
    }
  }
}

OpenDayLight2

akka.conf

odl-cluster-data {
  akka {
    remote {
      netty.tcp {
        hostname = "192.168.122.29"
        port = 2550
      }
    }

    cluster {
        seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.36:2550"]
    seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.37:2550"]
    seed-nodes = ["akka.tcp://opendaylight-cluster-data@192.168.122.29:2550"]

      roles = [
        "member-3"
      ]

    }

    persistence {
      # By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
      # modifying the following two properties. The directory location specified may be a relative or absolute path. 
      # The relative path is always relative to KARAF_HOME.

      # snapshot-store.local.dir = "target/snapshots"
      # journal.leveldb.dir = "target/journal"

      journal {
        leveldb {
          # Set native = off to use a Java-only implementation of leveldb.
          # Note that the Java-only version is not currently considered by Akka to be production quality.

          # native = off
        }
      }
    }
  }
}

module-shards.conf (all same in 3 opendaylight)

module-shards = [
    {
        name = "topology"
        shards = [
            {
                name="topology"
                replicas = [
                    "member-1"
                ]
            }
        ]
    },
    {
        name = "inventory"
        shards = [
            {
                name="inventory"
                replicas = [
                    "member-2"
                ]
            }
        ]
    },
         {
             name = "toaster"
             shards = [
                 {
                     name="toaster"
                     replicas = [
                         "member-3"
                     ]
                 }
             ]
         }

]

is this configuration is right to run opendaylight in cluster mode? if the configuration is right, how to connect the ovs? thanks before :)

edit retag flag offensive close merge delete