This series of articles will teach you how to build an OpenStack development environment from scratch across multiple OpenStack systems. The installation version of OpenStack used in the current tutorial is version 20 Train (version T for short). Release Note Train, Originally Released: 16 October, 2019 13 May, 2020 Victoria, Originally Released: 14 October, 2020

The nuggets community


OpenStack Ussuri offline Deployment: OpenStack Train Offline Deployment: OpenStack Ussuri Offline deployment

OpenStack Train Offline deployment | 0 Local offline deployment yum OpenStack Train offline deployment | 1 Controller node – Environment Preparation OpenStack Train Offline deployment | 2 Compute node – Environment Preparation OpenStack Train offline deployment | 3 controller nodes -Keystone authentication service component OpenStack Train offline deployment | 4 controller nodes -Glance image service component OpenStack Train offline deployment | 5 Controller nodes -Placement service component OpenStack Train Offline deployment | 6.1 Controller Node -Nova Computing service component OpenStack Train Offline deployment | 6.2 Compute Node -Nova Computing service Component OpenStack Train Offline deployment | 6.3 Controller Node -Nova Computing service component OpenStack Train Offline Deployment | 7.1 Controller Node -Neutron Network service Component OpenStack Train Offline Deployment | 7.2 Compute Node -Neutron Network service Component OpenStack Train deployment | 7.3 Controller Node -Neutron Service component OpenStack Train Deployment | 8 Controller Node -Horizon Service component OpenStack Train Deployment | 9 Start an OpenStack instance Train Offline deployment | 10 Controller node -Heat service component OpenStack Train Offline deployment | 11.1 Controller Node -Cinder Storage Service Component OpenStack Train Offline deployment | 11.2 Storage node -Cinder storage service component OpenStack Train Offline Deployment | 11.3 Controller Node -Cinder Storage Service Component OpenStack Train Offline Deployment | 11.4 Compute Node -Cinder Storage Service Component OpenStack Offline Deployment of Train | 11.5 Instance Using -Cinder storage service components


Gold Mining community: Customizing OpenStack Images | Customizing OpenStack images | Environment Preparation Customizing OpenStack images | Windows7 Customizing OpenStack images | Windows10 Customizing OpenStack images | Linux Customize an OpenStack image | Windows Server2019


CSDN

CSDN: OpenStack Ussuri Offline Installation and Deployment Series (full) OpenStack Train Offline Installation and Deployment Series (full) Looking forward to making progress together with you.


OpenStack Train Offline deployment | 6.2 Compute Node -Nova Computing service component

Service components nova-install nova-controller -install nova-compute -install nova-install-verify Install OpenStack(Rocky edition)-05 on CentOS7. Install a Nova compute node instance. Train Installation Guide Series

Install and configure nova-related software

1. Install the Nova software

yum install openstack-nova-compute -y
yum install python-openstackclient openstack-selinux -y
#For quick configuration
yum install openstack-utils -y 
Copy the code

2. Modify the configuration file

/etc/nova_nova. conf Run the following commands in sequence to write the files to the script and execute the script

cd
touch compute-node-nova.conf.sh
vim compute-node-nova.conf.sh
bash compute-node-nova.conf.sh
Copy the code

Sh contents of the compute-node-nova.conf.sh file

#! /bin/bash
#compute-node-nova.conf.shOpenstack-config --set /etc/nova.nova. conf DEFAULT my_ip 192.168.232.111 openstack-config --set /etc/nova.nova DEFAULT use_neutron True openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis osapi_compute,metadata openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:openstack@controller openstack-config --set /etc/nova/nova.conf api auth_strategy keystone openstack-config --set /etc/nova/nova.conf keystone_authtoken www_authenticate_uri http://controller:5000/ openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://controller:5000/ openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers controller:11211 openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name default openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name default openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova openstack-config --set /etc/nova/nova.conf keystone_authtoken password nova openstack-config --set /etc/nova/nova.conf vnc enabled True openstack-config --set /etc/nova/nova.conf vnc server_listen Conf VNC server_proxyclient_address '$my_ip' openstack-config --set /etc/nova/nova.conf VNC server_proxyclient_address '$my_ip' openstack-config --set /etc/nova/nova.conf vnc novncproxy_base_url http://controller:6080/vnc_auto.html openstack-config --set /etc/nova/nova.conf glance api_servers http://controller:9292 openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp openstack-config --set /etc/nova/nova.conf placement region_name RegionOne openstack-config --set /etc/nova/nova.conf placement project_domain_name Default openstack-config --set /etc/nova/nova.conf placement project_name service openstack-config --set /etc/nova/nova.conf placement auth_type password openstack-config --set /etc/nova/nova.conf placement user_domain_name Default openstack-config --set /etc/nova/nova.conf placement auth_url http://controller:5000/v3 openstack-config --set /etc/nova/nova.conf placement username placement openstack-config --set /etc/nova/nova.conf placement password placement echo "Result of Configuration" egrep -v "^#|^$" /etc/nova/nova.confCopy the code
bash compute-node-nova.conf.sh
Copy the code

Note: Configure the [neutron] section of /etc/nova/nova.conf. Refer to the Networking service install guide for more details. The server component listens for the IP addresses of all network adapters on the local computer, while the proxy component listens for the IP addresses of the management network interfaces on the local computer. After the installation is complete, modify the following parameters: novNCproxy_base_URL indicates the IP address, and the IP address indicates the supplier address. If multiple IP addresses exist except for the management network, select an appropriate one as the external access address.

It - config - set/etc/nova/nova. Conf VNC novncproxy_base_url http://192.168.232.101:6080/vnc_auto.htmlCopy the code

3. Check whether the compute node supports VM hardware acceleration

First determine if your compute node supports hardware acceleration for your virtual machine,

egrep -c '(vmx|svm)' /proc/cpuinfo
Copy the code

(1) If 0 is returned, the compute node does not support hardware acceleration. In this case, run the following command to configure libvirt to use QEMU:

openstack-config --set  /etc/nova/nova.conf libvirt virt_type  qemu
egrep -v "^#|^$" /etc/nova/nova.conf|grep 'virt_type'
Copy the code

In addition, if OpenStack is set up in VMware, configure libvirt as qemu. ② If other values are returned, the compute node supports hardware acceleration and does not require additional configuration. Run the following command:

openstack-config --set  /etc/nova/nova.conf libvirt virt_type  kvm 
egrep -v "^#|^$" /etc/nova/nova.conf|grep 'virt_type'
Copy the code

4. Start the computing service and configure it to start upon startup

Two services need to be started

systemctl start libvirtd.service openstack-nova-compute.service 
systemctl status libvirtd.service openstack-nova-compute.service
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl list-unit-files |grep libvirtd.service
systemctl list-unit-files |grep openstack-nova-compute.service
Copy the code

Note: (1) If the nova-compute service cannot be started, check /var/log/nova-nova-compute. The error message may indicate that the firewall on the controller node is blocking access to port 5672. Configure the firewall on the controller node to enable port 5672 on the controller node and restart services on the compute node. (2) Controller node

systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service

systemctl restart rabbit_server.service
systemctl restart rabbitmq-server.service
systemctl status rabbitmq-server.service
firewall-cmd --zone=public --add-port=5672/tcp --permanent
systemctl restart firewalld
firewall-cmd --zone=public --query-port=5672/tcp
Copy the code

Add compute nodes to the cell database

Please open the next installation tutorial documentation.