MidoNet Cluster Installation

  1. Install MidoNet Cluster package

    # apt-get install midonet-cluster
  2. Set up mn-conf

    Edit /etc/midonet/midonet.conf to point mn-conf to the ZooKeeper cluster:

    [zookeeper]
    zookeeper_hosts = nsdb1:2181,nsdb2:2181,nsdb3:2181
  3. Configure access to the NSDB

    This step needs to happen only once, it will set up access to the NSDB for the MidoNet Cluster and Agent nodes.

    Run the following command to set the cloud-wide values for the ZooKeeper and Cassandra server addresses:

    $ cat << EOF | mn-conf set -t default
    zookeeper {
        zookeeper_hosts = "nsdb1:2181,nsdb2:2181,nsdb3:2181"
    }
    
    cassandra {
        servers = "nsdb1,nsdb2,nsdb3"
    }
    EOF

    Run the following command to set the Cassandra replication factor:

    $ echo "cassandra.replication_factor : 3" | mn-conf set -t default
  4. Configure Keystone access

    This step needs to happen only once, it will set up access to Keystone for the MidoNet Cluster node(s).

    Determine domain_name and domain_id to be used for Keystone authentication:

    # openstack domain list
    +---------+---------+---------+----------------------------------------------------------------------+
    | ID      | Name    | Enabled | Description                                                          |
    +---------+---------+---------+----------------------------------------------------------------------+
    | default | Default | True    | Owns users and tenants (i.e. projects) available on Identity API v2. |
    +---------+---------+---------+----------------------------------------------------------------------+

    For tenant_name, use the project/tenant that the midonet user belongs to, as configured during user creation.

    Configure the authentication parameters for MidoNet Cluster via mn-conf:

    $ cat << EOF | mn-conf set -t default
    cluster.auth {
       admin_role = "admin"
       provider_class = "org.midonet.cluster.auth.keystone.KeystoneService"
       keystone {
          admin_token = ""
          protocol = "http"
          host = "controller"
          port = 35357
          domain_name = "Default"
          domain_id = "default"
          tenant_name = "$MIDONET_TENANT"
          user_name = "midonet"
          user_password = "$MIDONET_PASS"
          version = 3
       }
    }
    EOF
  5. Start the MidoNet Cluster

    # service midonet-cluster start
Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.