Get the App
SLTechnology News&Howtos  ›  Servers  › 

Openstack O version configuration compute node nova and Neutron installation

Shulou Source: shulou.com Published: 2022-06-02 23:21:09 09月22日 Update

Configure nova.conf

[root@compute ~] # yum install openstack-selinux python-openstackclient yum-plugin-priorities openstack-nova-compute openstack-utils ntpdate-y

[root@compute ~] # cp / etc/nova/nova.conf / etc/nova/nova.conf.bak

[root@compute ~] # > / etc/nova/nova.conf

[DEFAULT]

Auth_strategy = keystone

My_ip = 192.168.0.112

Use_neutron = True

Firewall_driver = nova.virt.firewall.NoopFirewallDriver

Transport_url = rabbit://openstack:devops@controller

[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 = devops

[placement]

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 = placement

Password = devops

Os_region_name = RegionOne

[vnc]

Enabled = True

Keymap = en-us

Vncserver_listen = 0.0.0.0

Vncserver_proxyclient_address = 192.168.0.112

Novncproxy_base_url = http://192.168.0.111:6080/vnc_auto.html

[glance]

Api_servers = http://controller:9292

[oslo_concurrency]

Lock_path = / var/lib/nova/tmp

[libvirt]

Virt_type = qemu setup libvirtd.service and openstack-nova-compute.service boot

[root@compute ~] # systemctl enable libvirtd.service openstack-nova-compute.service

[root@compute ~] # systemctl restart libvirtd.service openstack-nova-compute.service

[root@compute ~] # systemctl status libvirtd.service openstack-nova-compute.service to perform verification on controller

[root@controller ~] # source admin-openrc

[root@controller ~] # openstack compute service list

Install Neutron and install related software packages

[root@compute ~] # yum install openstack-neutron-linuxbridge ebtables ipset-y

[root@compute ~] # cp / etc/neutron/neutron.conf / etc/neutron/neutron.conf.bak

[root@compute ~] # > / etc/neutron/neutron.conf

[DEFAULT]

Auth_strategy = keystone

Advertise_mtu = True

Dhcp_agents_per_network = 2

Control_exchange = neutron

Nova_url = http://controller:8774/v2

Transport_url = rabbit://openstack:devops@controller

[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 = devops

[oslo_concurrency]

Lock_path = / var/lib/neutron/tmp configuration / etc/neutron/plugins/ml2/linuxbridge_agent.ini

[root@compute ~] # cat / etc/neutron/plugins/ml2/linuxbridge_agent.ini | grep-v "^ #" | grep-v "^ $"

[DEFAULT]

[agent]

[linux_bridge]

Physical_interface_mappings = provider:ens33

[securitygroup]

Enable_security_group = True

Firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

[vxlan]

Enable_vxlan = True

Local_ip = 192.168.0.112

L2_population = True configuration nova.conf

[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 = nova

Password = devops restart and enable related services

[root@compute ~] # systemctl restart libvirtd.service openstack-nova-compute.service

[root@compute ~] # systemctl enable neutron-linuxbridge-agent.service

[root@compute ~] # systemctl restart neutron-linuxbridge-agent.service

[root@compute ~] # systemctl status libvirtd.service openstack-nova-compute.service neutron-linuxbridge-agent.service

III. Perform validation on controler

[root@controller ~] # source admin-openrc

[root@controller ~] # neutron agent-list

[root@controller ~] # nova host-list

Tags: Configuration verification software software packages services nodes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS Xiaomi Redmi Linux