Install Networking services

Before you configure individual nodes for Networking, you must create the required OpenStack components: user, service, database, and one or more endpoints. After you complete these steps on the controller node, follow the instructions in this guide to set up OpenStack Networking nodes.

  1. Use the password that you set previously to log in as root and create a neutron database:

    # mysql -u root -p
    mysql> CREATE DATABASE neutron;
    mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \
    IDENTIFIED BY 'NEUTRON_DBPASS';
    mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \
    IDENTIFIED BY 'NEUTRON_DBPASS';
  2. Create the required user, service, and endpoint so that Networking can interface with the Identity Service.

    To list the tenant IDs:

    # keystone tenant-list

    To list role IDs:

    # keystone role-list

    Create a neutron user:

    # keystone user-create --name=neutron --pass=NEUTRON_PASS --email=[email protected]

    Add the user role to the neutron user:

    # keystone user-role-add --user=neutron --tenant=service --role=admin

    Create the neutron service:

    # keystone service-create --name=neutron --type=network \
         --description="OpenStack Networking Service"

    Create a Networking endpoint. Use the id property for the service that was returned in the previous step to create the endpoint:

    # keystone endpoint-create \
         --service-id the_service_id_above \
         --publicurl http://controller:9696 \
         --adminurl http://controller:9696 \
         --internalurl http://controller:9696
Log a bug against this page


loading table of contents...