Deploy a bare metal compute node

You can deploy a bare metal compute node on a physical server or VM.

The system supports only one bare metal compute node.

 

This section contains the following topics:

Prepare for installation

Log in to CAS to create a VM as a bare metal compute node to provide bare metal computing capabilities.

·          For more information about the configuration on CAS, see CAS-related documentation.

·          For more information VM specification requirements, see H3C CloudOS 5.0 Deployment Guide.

 

Install a compute node

Perform the following steps to load a PLAT image to install a compute node after the VM is created successfully:

  1. Select software package type H3C CloudOS Node.

  1. As a best practice, configure partitions manually when you install the operating system for a bare metal compute node. Delete docker and mysql partitions and spare their capacity to the / partition.

Figure-1 Clicking INSTALLATION DESTINATION

 

Figure-2 Selecting I will configure partitioning

 

Figure-3 Deleting docker and mysql partitions

 

Figure-4 Sparing the capacity of the deleted partitions to the / partition

 

Figure-5 Configuring the / partition

 

Figure-6 Manual partitioning is completed

  1. Specify a host name and IP address for the compute node.

  1. Specify the master node as the NTP server.

Figure-1 Installing a bare metal compute node

 

Configure access rights to the database for a compute node

  1. On the top navigation bar, click System.

  1. From the left navigation pane, select System Settings > Security Settings > Database Whitelists.

  1. Click Add.

  1. In the dialog box that opens, select IP, and then enter the IP address of the bare metal compute node specified in "Install a system compute node."

  1. Click OK.

Configure a bare metal compute node

·          Only English punctuation marks are supported.

·          The bare metal compute node version must match the controller node version.

·          All executed scripts will be deployed to the corresponding configuration file. To edit a script, re-install the script. If you use a VM on CAS as a bare metal compute node, create a snapshot for the VM before installing a script. If any error occurs during script installation, restore the VM from the snapshot and then re-install the script.

·          The VXLAN ID range is 1 to 4094 for a bare metal network in flat mode. As a best practice, use bare metal service in a non-hierarchical scenario.

 

  1. Log in to the controller node through SSH.

  1. Transfer the openstack-compute-standalone.tar.gz file in the /opt/openstack directory to the root directory of the compute node. The IP address is the IP address of the bare metal node.

[root@node-0cbcd0 ~]# cd /opt/openstack

[root@node-0cbcd0 openstack]# ls

manila-share  openstack-compute  openstack-compute-standalone.tar.gz

[root@node-0cbcd0 openstack]# scp openstack-compute-standalone.tar.gz root@172.25.50.150:/root

  1. Use SSH to log in to the bare metal compute node.

  1. Execute the following commands to enter the root directory and find the openstack-compute-standalone.tar.gz file:

[root@ironic-c ~]# pwd

/root

[root@ironic-c ~]# ls

openstack-compute-standalone.tar.gz

  1. Execute the following command to decompress the openstack-compute-standalone.tar.gz file:

[root@ironic-c ~]# tar -zxvf openstack-compute-standalone.tar.gz

  1. Execute the following commands to enter the openstack-compute-standalone directory, and find the install-compute-pike.sh installation script:

[root@ironic-c ~]# cd openstack-compute-standalone

[root@ironic-c openstack-compute-standalone]# ls

compute  images  install-compute-pike.sh  others  packages  readme.txt  tools  upgrade  upgrade-ironic-mitaka2pike.sh  yum.repos.d

  1. Execute the following command to upload an installation package, for example, CloudOS-PLAT-E5102H01-V500R001B01D030SP02-RC4.iso to the openstack-compute-standalone/ directory.

[root@ironic-c openstack-compute-standalone]# ls

CloudOS-PLAT-E5102H01-V500R001B01D030SP02-RC4.iso images others readme.txt upgrade yum.repos.d

compute install-compute-pike.sh  packages  tools upgrade-ironic-mitaka2pike.sh

  1. Execute the following command to run the install-compute-pike.sh script:

[root@ironic-c openstack-compute-standalone]# sh install-compute-pike.sh

  1. Enter the required configuration:

Please enter the number of hypervisor type (0 qemu, 1 VMWare, 2 cas, 3 KVM, 4 novadocker, 5 ironic): 5

  Your choice of VMTTYPE is : [ 5 ] continue...

Please enter Manage Network IP address of the compute node(172.25.50.150): 172.25.50.150

  Input IP address is: 172.25.50.150 Verifying Connection....

  IP connection is OK

Please enter Inspection Network IP address of the compute node(172.25.50.150): 172.25.50.150

  Input IP address is: 172.25.50.150 Verifying Connection....

  IP connection is OK

Please enter Provision Network IP address of the compute node(172.25.50.150): 172.25.50.150

  Input IP address is: 172.25.50.150 Verifying Connection....

  IP connection is OK

Please enter the Mode of Network(1 flat , 2 mutitenant):1

Please enter the Manage Network IP address of the controller node (or vitrual IP if it's cluster): 172.25.17.53

  Input IP address is: 172.25.17.53 Verifying Connection....

  IP connection is OK

Please enter the Public Network IP address of the controller node (or vitrual IP if it's cluster): 172.25.17.53

  Input IP address is: 172.25.17.53 Verifying Connection....

  IP connection is OK

Is the controller node a cluster environment?(1 yes, 2 no): 1

You have already confirmed the controller node you will connect is a Cluster mode!  continue....

Please enter the IP address of the Matrix, for the configuration of ntpd server: 172.25.17.50

  Input IP address is: 172.25.17.50 Verifying Connection....

  IP connection is OK

Please enter the cinder storage type (0 lvm, 1 3par, 2 onestor): 1

Please enter the cinder storage availability zone (eg:cinder_az): cinder_3par

Please enter the volume type of 3par driver (0 fc, 1 iscsi): 0

Please enter the San IP of 3par server (eg: 192.103.10.250): 192.103.10.250

Please enter the user name of 3par server (eg: username): username

Please enter the password of 3par server (eg: password): password

Please enter the chosen CPG of 3par server(eg: cpg1): cpg1

Please enter the dhcp range (eg: 172.25.50.100,172.25.50.200): 172.25.50.151,172.25.50.160

Please enter the dhcp netmask (eg: 255.255.255.0): 255.255.240.0

Please enter the multi-export config bridge_mappings according to the usage(eg: physnet2:vswitch2,physnet3:vswitch3): vxlan:ironic

Enter information in the script as follows:

Script execution succeeded when the information shown in the following figure occurs.

Figure-2 Execution succeeded

 

To configure bare metal service when the PXE-enabled port on the bare metal server and the bare metal compute node belong to different subnets, see "Network planning when the PXE-enabled port on the bare metal server and the bare metal compute node belong to different subnets."