Installing and Configuring OpenStack (Juno) in Oracle® Solaris

Exit Print View

Updated: June 2016
 
 

How to Configure the Compute Node

  1. Configure the NTP client.

    See Configuring the NTP Client.

  2. Restart the Remote Access Daemon (RAD).

    Nova uses RAD to communicate with the Oracle Solaris Zones framework.

    compute1# svcadm restart rad:local
  3. Configure Nova by either uncommenting or setting the following parameters in the /etc/nova/nova.conf file.
    [DEFAULT]
    rabbit_host=$CONTROLLER_ADMIN_NODE
    my_ip=$COMPUTE_ADMIN_NODE_IP
    host=$COMPUTE_ADMIN_NODE_X
    firewall_driver=nova.virt.firewall.NoopFirewallDriver
    keystone_ec2_url=http:/$CONTROLLER_ADMIN_NODE:5000/v2.0/ec2tokens
    
    [database]
    connection = mysql://nova:service-password@$CONTROLLER_ADMIN_NODE/nova
    
    [glance]
    host=$CONTROLLER_ADMIN_NODE
    
    [keystone_authtoken]
    auth_uri=http://$CONTROLLER_ADMIN_NODE:5000/v2.0/
    identity_uri=http://$CONTROLLER_ADMIN_NODE:35357/
    admin_user=nova
    admin_password=service-password
    admin_tenant_name=service
    
    [neutron]
    url=http://$CONTROLLER_ADMIN_NODE:9696
    admin_username=neutron
    admin_password=service-password
    admin_tenant_name=service
    admin_auth_url=http://$CONTROLLER_ADMIN_NODE:5000/v2.0
    
  4. Set parameters in the /etc/nova/api-paste.ini file.
    [filter:authtoken]
    admin_tenant_name = service
    admin_user = nova
    admin_password = service-password
    auth_uri = http://$CONTROLLER_ADMIN_NODE:5000/v2.0/
    identity_uri = http://$CONTROLLER_ADMIN_NODE:35357
    
  5. Set up EVS on the Compute node.
    1. Ensure that the EVS package is installed.
      compute1# pkg info evs
    2. Specify the location of the EVS controller.
      compute1# evsadm set-prop -p controller=ssh://evsuser@$CONTROLLER_ADMIN_NODE
  6. Configure the communications between the Controller and the Compute nodes.

    The distribution of the SSH keys that establishes communication between the nodes would resemble the following figure:


    image:Distribution of SSH keys.
    1. Create an SSH public key on the Compute node for the root user.
      compute1# ssh-keygen -N '' -f /root/.ssh/id_rsa -t rsa
    2. (Optional) Check the contents of the SSH key.
      compute1# cat /root/.ssh/id_rsa.pub
    3. Copy the SSH key /root/.ssh/id_rsa.pub to a location in the Controller node.
    4. On the Controller node, append the SSH key to the authorized_keys file for evsuser.
      controller# cat location/id_rsa.pub >> /var/user/evsuser/.ssh/authorized_keys
      
    5. (Optional) Verify that the SSH key from the Compute node has been appended to the authorized_keys file.
      controller# cat /var/user/evsuser/.ssh/authorized_keys

      The output should include the contents of /root/.ssh/id_rsa.pub that you generated on the Compute node.

    6. Test the Compute node's SSH connections to the controller and accept the fingerprints to be stored in the known_host file.

      Specify Yes at the prompt for confirmation.

      compute1# ssh evsuser@$CONTROLLER_ADMIN_NODE true
  7. Grant the Nova service access to the Compute node.
    1. Access the Controller node.
    2. Issue the following command:
      controller# mysql -u root -p
      Enter password: MySQL-root-password
      mysql> grant all privileges on nova.* to 'nova'@'nova-compute' identified by 'service-password';
      mysql> flush privileges
      mysql> quit

      where nova-compute is the Compute node's system name or the fully qualified domain name.

  8. On the Compute node, enable the Nova compute service.
    compute1# svcadm enable nova-compute