Update each Cassandra server to trust every vSphere Replication Cloud Service appliance and register each Cassandra server with the lookup service used by vCloud Director.

About this task

Note:

The current procedure pertains to configuring Cassandra servers for production deployments. If you use a Docker container to manage your Cassandra servers in test and development environments, perform the steps documented in Create Containers for Test and Development Environments.

Procedure

  1. Create a password file for the Cassandra host root user in /.ssh/cassandra.root.password.
  2. Create a trusted connection between the vCloud Availability Installer Appliance and your Cassandra hosts. This connection allows the vCloud Availability Installer Appliance to trust the Cassandra certificate and is required before you can add the Cassandra hosts to the lookup service used by vCloud Director.

    Repeat this step for every Cassandra host in your environment.

    # vcav trust add-ssh --address=$CASSANDRA_ADDRESS --root-password-file=/.ssh/cassandra.root.password --accept-all
  3. Add the vSphere Replication Cloud Service certificate to the Cassandra truststore, so that the Cassandra host accepts SSL connections from the vSphere Replication Cloud Service.

    The Cassandra truststore stores the certificates that are accepted for connection. The Cassandra keystore only stores the certificate that the Cassandra server publishes.

    Run the following command on every Cassandra server before you finish the vCloud Availability for vCloud Director configuration. Run the commands for each vSphere Replication Cloud Service host.

    # vcav cassandra import-hcs-certificate --cassandra-address=$CASSANDRA_ADDRESS --hcs-address=$HCS01_ADDRESS

    If the command cannot find the Cassandra configuration file, you can specify the path to the file by adding the --cassandra-config-file=path-to-Cassandra-config-file.

  4. Register the Cassandra hosts with the lookup service by running the following command.

    Repeat this step for every Cassandra host in your environment.

    Standard Command

    Command Using Registry

    # vcav cassandra register \
    --hcs-address=$HCS01_ADDRESS \
    --cassandra-address=$CASSANDRA_ADDRESS \
    --cassandra-port=9042 \
    --vcd-address=$VCD_ADDRESS \
    --vcd-user=$VCD_USER \
    --vcd-password-file=~/.ssh/.vcd \
    --sso-user=$SSO_USER \
    --sso-password-file=~/.ssh/.sso
    # vcav cassandra register \
    --hcs-address=$HCS01_ADDRESS \
    --cassandra-address=$CASSANDRA_ADDRESS \
    --cassandra-port=9042 \
    --vcd=vcd-01-name

    The system displays an OK message upon a successful registration.