
上QQ阅读APP看书,第一时间看更新
Configuring the Neutron user, role, and endpoint in Keystone
To function properly, Neutron requires that a user, role, and endpoint be created in Keystone. When executed from the controller node, the following commands will create a user called neutron in Keystone, associate the admin role with the neutron user, and add the neutron user to the service project:
# source ~/adminrc
# openstack user create --domain Default --password=neutron neutron
# openstack role add --project service --user neutron admin
Create a service in Keystone that describes the OpenStack Networking service by executing the following command on the controller node:
# openstack service create --name neutron
--description "OpenStack Networking" network
To create the endpoints, use the following openstack endpoint create commands:
# openstack endpoint create --region RegionOne
network public http://controller01:9696
# openstack endpoint create --region RegionOne
network internal http://controller01:9696
# openstack endpoint create --region RegionOne
network admin http://controller01:9696