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.3 Controller Node -Nova Computing service component

OpenStack official installation guide nova-Verify

Note: The following operations are done in the control node.

1. Add compute nodes to the Cell database

The verification is complete on the controller node

1. Ensure that computing hosts exist in the database

cd
source admin-openrc.sh
openstack compute service list --service nova-compute
Copy the code

Ex. :

[root@controller ~]# source admin-openrc.sh [root@controller ~]# openstack compute service list --service nova-compute +----+--------------+----------+------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +----+--------------+----------+------+---------+-------+----------------------------+ | 7 | nova - compute | compute1 | nova | enabled | up | 2020-04-20 T07: when. 000000 | +----+--------------+----------+------+---------+-------+----------------------------+ [root@controller ~]#Copy the code

2. Discover the computing host

Manually add the new compute node to the openstack cluster

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
Copy the code

Ex. :

[root@controller ~]# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting computes from cell 'cell1': 69075337-34eb-42f3-929c-988eee5818c3
Found 0 unmapped computes in cell: 69075337-34eb-42f3-929c-988eee5818c3
[root@controller ~]#
Copy the code

Note: When you add more compute nodes later, you must run the above two commands on the controller node to register these new compute nodes in the control node. In addition, you can set the task of automatically registering new nodes in the control node /etc/nova.nova.conf (previously added to the configuration file).

# /etc/nova/nova.conf
[scheduler]
discover_hosts_in_cells_interval = 300
Copy the code

With the installation complete, the next step is to test to check the status of the computing service

Verify the operation of computing services

Install OpenStack(Rocky version)-05 on the controller node. Install a Nova compute node instance

1. Load environment variables

cd 
source admin-openrc.sh
Copy the code

2. List the service components

To verify the successful start and registration of each process

openstack compute service list
Copy the code

Ex. :

[root@controller ~]# source admin-openrc.sh [root@controller ~]# openstack compute service list +----+----------------+------------+----------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +----+----------------+------------+----------+---------+-------+----------------------------+ | 3 | nova-scheduler | Controller | internal | enabled | up | T07:2020-04-20 and. 000000 | | | 5 nova - conductor | controller | internal | Enabled | up | 2020-04-20 T07: slide. 000000 | | | 7 nova - compute | compute1 | nova | enabled | | of the up The 2020-04-20 T07: but. 000000 | +----+----------------+------------+----------+---------+-------+----------------------------+ [root@controller ~]#Copy the code

Note: This output should indicate two service components enabled on the controller node and one service component enabled on the compute node.

3. List the API endpoints in the identity service

To verify connectivity to the identity service

openstack catalog list
Copy the code

Ex. :

[root@controller ~]# openstack catalog list +-----------+-----------+-----------------------------------------+ | Name |  Type | Endpoints | +-----------+-----------+-----------------------------------------+ | keystone | identity | RegionOne | | | | public: http://controller:5000/v3/ | | | | RegionOne | | | | internal: http://controller:5000/v3/ | | | | RegionOne | | | | admin: http://controller:5000/v3/ | | | | | | glance | image | RegionOne | | | | admin: http://controller:9292 | | | | RegionOne | | | | public: http://controller:9292 | | | | RegionOne | | | | internal: http://controller:9292 | | | | | | nova | compute | RegionOne | | | | admin: http://controller:8774/v2.1 | | | | RegionOne | | | | internal: http://controller:8774/v2.1 | | | | RegionOne | | | | public: http://controller:8774/v2.1 | | | | | | placement | placement | RegionOne | | | | public: http://controller:8778 | | | | RegionOne | | | | admin: http://controller:8778 | | | | RegionOne | | | | internal: http://controller:8778 | | | | | +-----------+-----------+-----------------------------------------+Copy the code

Note: The list of endpoints may vary depending on the installation of OpenStack components. Ignore any warnings in this output.

4. List mirrors in the mirror service

To verify connectivity to the mirror service

openstack image list
Copy the code

Ex. :

[root@controller ~]# openstack image list +--------------------------------------+--------------+--------+ | ID | Name |  Status | +--------------------------------------+--------------+--------+ | 3379c057-3ef0-421a-9bbf-c5418732ac4b | 4 c7f3206 cirros - 0.3.5 | active | | - 3 af7 fc6d68abb7-408 - e - 8561-84 | cirros - 0.4.0 | active | +--------------------------------------+--------------+--------+ [root@controller ~]#Copy the code

5. Check the status of the NOVA components

Check that the Placement API and cell service are working properly

nova-status upgrade check
Copy the code

Ex. :

[root@controller ~]# nova-status upgrade check
+--------------------------------+
| Upgrade Check Results          |
+--------------------------------+
| Check: Cells v2                |
| Result: Success                |
| Details: None                  |
+--------------------------------+
| Check: Placement API           |
| Result: Success                |
| Details: None                  |
+--------------------------------+
| Check: Ironic Flavor Migration |
| Result: Success                |
| Details: None                  |
+--------------------------------+
| Check: Cinder API              |
| Result: Success                |
| Details: None                  |
+--------------------------------+
[root@controller ~]#
Copy the code

3. The Nova computing service is installed

The Nova computing service has been installed on the controller nodes and compute nodes and added to the openstack cluster. When a new compute node is added to the system, install the compute node and verify the controller node.