OpenStack deployment (using openvswitch) node specific configuration information

Posted by LostKID on Mon, 11 Nov 2019 22:01:54 +0100

The overall installation steps are as follows
https://blog.csdn.net/networken/article/details/80682437
The deployment linked to the queens version can be changed to the corresponding version (other version packages corresponding to the queens version need to be installed)

In the process of deploying the network nodes in the link, because the Linux bridge is also supported to support openvswitch, it is necessary to install openstack neutron Linux bridge to install openstack neutron openvswitch when installing the package.

The specific configuration information of the control node is as follows:

network configuration

/etc/neutron/neutron.conf

[database]
connection = mysql+pymysql://neutron:nsfocus@controller/neutron

[DEFAULT]
auth_strategy = keystone
core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True
transport_url = rabbit://openstack:nsfocus@controller
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true

[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = nsfocus

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = nsfocus

[nova]
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = nsfocus

[oslo_concurrency]
lock_path = /var/lib/neutron/tmp

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

[ml2]
type_drivers = flat,vxlan tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population extension_drivers =
port_security

[ml2_type_flat]
flat_networks = provider

[ml2_type_vxlan]
vni_ranges = 1001:2000

[securitygroup]
enable_ipset = true

/etc/neutron/l3_agent.ini

[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
external_network_bridge = br-ex

/etc/neutron/dhcp_agent.ini

[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true

/etc/neutron/plugins/ml2/openvswitch_agent.ini

[ovs]
local_ip = 10.66.107.201
tunnel_bridge = br-tun
bridge_mappings =

[agent]
tunnel_types = vxlan
l2_population = True

[securitygroup]
enable_security_group = true
firewall_driver =neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

/etc/neutron/metadata_agent.ini

[DEFAULT]
nova_metadata_ip = contoller
metadata_proxy_shared_secret = nsfocus

nova configuration

/etc/nova/nova.conf

[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:nsfocus@controller
my_ip = 10.66.107.201
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver

[api_database]
connection = mysql+pymysql://nova:nsfocus@controller/nova_api

[database]
connection = mysql+pymysql://nova:nsfocus@controller/nova

[api]
auth_strategy = keystone

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nsfocus

[vnc]
enabled = true
vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip

[glance]
api_servers = http://controller:9292

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = nsfocus

[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = nsfocus
service_metadata_proxy = true
metadata_proxy_shared_secret = nsfocus

keystone configuration

/etc/keystone/keystone.conf

[DEFAULT]
rpc_backend = rabbit control_exchange = keystone

[database]
connection = mysql+pymysql://keystone:nsfocus@10.66.107.201/keystone

[oslo_messaging_notifications]
driver = messagingv2
topics = notifications

[oslo_messaging_rabbit]
rabbit_host = localhost
rabbit_userid = openstack
rabbit_password = nsfocus

[token]
provider = fernet

/etc/httpd/conf/httpd.conf
Change ServerAdmin option value to control node reference

ServerName controller

glance configuration

/etc/glance/glance-api.conf

[database]
connection = mysql+pymysql://glance:nsfocus@controller/glance

[glance_store]
stores = file,http
default_store = file
filesystem_store_datadir = /var/lib/glance/images/

[keystone_authtoken]
auth_uri = http;//controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = nsfocus

[paste_deploy]
flavor = keystone

/etc/glance/glance-registry.conf

[database]
connection = mysql+pymysql://glance:nsfocus@controller/glance

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
passowrd = nsfocus

[paste_deploy]
flavor = keystone

dashboard configuration

/etc/openstack-dashboard/local_settings
The following configuration is to modify the corresponding configuration, not all configurations

OPENSTACK_HOST = "controller"
ALLOWED_HOSTS = ['*']
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
} }

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2, }

OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default" OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
TIME_ZONE = "Asia/Shanghai"

The specific configuration of the calculation node is as follows:

network configuration

/etc/neutron/neutron.conf

[DEFAULT]
transport_url = rabbit://openstack:nsfocus@controller
auth_strategy = keystone

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = nsfocus

[oslo_concurrency]
lock_path = /var/lib/neutron/tmp

/etc/neutron/plugins/ml2/openvswitch_agent.ini

[ovs]
bridge_mappings =
tunnel_bridge = br-tun
local_ip = 10.66.107.200

[agent]
tunnel_types = vxlan
l2_population = True

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = true

nova configuration

/etc/nova/nova.conf

[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:nsfocus@controller
my_ip = 10.66.107.200
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
notification_topics=notifications,trackinstance
notification_driver=messagingv2
notify_on_state_change=vm_and_task_state

[api]
auth_strategy = keystone

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nsfocus

[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://10.66.107.201:6080/vnc_auto.html

[glance]
api_servers = http://10.66.107.201:9292

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = nsfocus

[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = nsfocus

[libvirt]
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_TUNNELLED
cpu_mode = custom
cpu_model=kvm64

Topics: OpenStack Linux MySQL Database