Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Pradip,

Are you able to create tenants from keystone?

Once check the neutron configuration mysql section, also check the connectivity to mysql server and check permissions to neutron user correctly.

neutron net-create --tenant-id $put_id_of_admin_tenant ext_net --router:external=True

Let me know the issue fixed or not.

Regards,
RHK

Hi Pradip,

Are you able to create tenants from keystone?

Once check the neutron configuration mysql section, also check the connectivity to mysql server and check permissions to neutron user correctly.

neutron net-create --tenant-id $put_id_of_admin_tenant ext_net --router:external=True

Let me know the issue fixed or not.

# # # # # # # # #

Try this,

Install the Neutron server and the OpenVSwitch packages

apt-get install -y neutron-server neutron-plugin-ml2

Create a MySql database for Neutron

mysql -u root -p CREATE DATABASE neutron; GRANT ALL PRIVILEGES ON neutron.* TO neutron@'localhost' IDENTIFIED BY 'NEUTRON_DBPASS'; GRANT ALL PRIVILEGES ON neutron.* TO neutron@'%' IDENTIFIED BY 'NEUTRON_DBPASS'; exit;

Configure service user and role

keystone user-create --name=neutron --pass=service_pass --email=neutron@domain.com keystone user-role-add --user=neutron --tenant=service --role=admin

Register the service and create the endpoint

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

keystone endpoint-create \ --service-id=$(keystone service-list | awk '/ network / {print $2}') \ --publicurl=http://192.168.100.11:9696 \ --internalurl=http://controller:9696 \ --adminurl=http://controller:9696

Check the neutron configuration with below reference.

vi /etc/neutron/neutron.conf

[database]

replace connection = sqlite:////var/lib/neutron/neutron.sqlite with connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron

[DEFAULT]

replace core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin with core_plugin = ml2 service_plugins = router allow_overlapping_ips = True

auth_strategy = keystone rpc_backend = neutron.openstack.common.rpc.impl_kombu rabbit_host = controller

notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://controller:8774/v2 nova_admin_username = nova

Replace the SERVICE_TENANT_ID with the output of this command (keystone tenant-list | awk '/ service / { print $2 }')

nova_admin_tenant_id = SERVICE_TENANT_ID nova_admin_password = service_pass nova_admin_auth_url = http://controller:35357/v2.0

[keystone_authtoken]

auth_uri = http://controller:5000 auth_host = controller auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = neutron admin_password = service_pass

Configure the Modular Layer 2 (ML2) plug-in

vi /etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]

type_drivers = gre tenant_network_types = gre mechanism_drivers = openvswitch

[ml2_type_gre]

tunnel_id_ranges = 1:1000

[securitygroup]

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver enable_security_group = True

Restart the Networking service

service neutron-server restart

Regards,
RHK

Hi Pradip,

Are you able to create tenants from keystone?

Once check the neutron configuration mysql section, also check the connectivity to mysql server and check permissions to neutron user correctly.

neutron net-create --tenant-id $put_id_of_admin_tenant ext_net --router:external=True

--router:external=True

Let me know the issue fixed or not.

# # # # # # # # #

Try this,

Install the Neutron server and the OpenVSwitch packages

packages apt-get install -y neutron-server neutron-plugin-ml2

neutron-plugin-ml2

Create a MySql database for Neutron

mysql -u root -p
CREATE DATABASE neutron;
GRANT ALL PRIVILEGES ON neutron.* TO neutron@'localhost' IDENTIFIED BY 'NEUTRON_DBPASS';
GRANT ALL PRIVILEGES ON neutron.* TO neutron@'%' IDENTIFIED BY 'NEUTRON_DBPASS';
exit;

exit;

Configure service user and role

keystone user-create --name=neutron --pass=service_pass --email=neutron@domain.com
keystone user-role-add --user=neutron --tenant=service --role=admin

--role=admin

Register the service and create the endpoint

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

Networking" keystone endpoint-create \ --service-id=$(keystone service-list | awk '/ network / {print $2}') \ --publicurl=http://192.168.100.11:9696 \ --internalurl=http://controller:9696 \ --adminurl=http://controller:9696

--adminurl=http://controller:9696

Check the neutron configuration with below reference.

vi /etc/neutron/neutron.conf

/etc/neutron/neutron.conf

[database]

replace connection = sqlite:////var/lib/neutron/neutron.sqlite with connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron

[DEFAULT]

replace core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin with with core_plugin = ml2 service_plugins = router allow_overlapping_ips = True

auth_strategy = keystone
rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = controller

controller notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://controller:8774/v2 nova_admin_username = nova

nova

Replace the SERVICE_TENANT_ID with the output of this command (keystone tenant-list | awk '/ service / { print $2 }')

nova_admin_tenant_id = SERVICE_TENANT_ID
nova_admin_password = service_pass
nova_admin_auth_url = http://controller:35357/v2.0

http://controller:35357/v2.0

[keystone_authtoken]

auth_uri = http://controller:5000
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = service_pass

service_pass

Configure the Modular Layer 2 (ML2) plug-in

vi /etc/neutron/plugins/ml2/ml2_conf.ini

/etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]

type_drivers = gre
tenant_network_types = gre
mechanism_drivers = openvswitch

openvswitch

[ml2_type_gre]

tunnel_id_ranges = 1:1000

1:1000

[securitygroup]

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

True

Restart the Networking service

service neutron-server restart

restart

Regards,
RHK