No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Guide for Interworking Between HUAWEI CloudFabric Solution and Redhat OpenStack

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Registering Nodes

Registering Nodes

Creating a Node Information File

Create the instackenv.json file in the /home/stack directory. The file contains hardware and power management details of all Overcloud physical servers. The following is an example of the instackenv.json file:
[root@nfv stack]# cat instackenv.json
{
"nodes":[
{
"name":"control-node",
"mac":[
"C4:34:6B:C7:56:68"
],
"cpu":"40",
"memory":"128733",
"disk":"500",
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"redhat",
"pm_password":"huawei@123",
"pm_addr":"172.25.14.122"
},
{
"name":"computer-node",
"mac":[
"C4:34:6B:C7:48:E0"
],
"cpu":"40",
"memory":"128733",
"disk":"500",
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"redhat",
"pm_password":"huawei@123",
"pm_addr":"172.25.14.123"
},
{
"name":"ceph-node0",
"mac":[
"C4:34:6B:C7:F4:C8"
],
"cpu":"40",
"memory":"128733",
"disk":"500",
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"redhat",
"pm_password":"huawei@123",
"pm_addr":"172.25.14.124"
},
{
"name":"ceph-node1",
"mac":[
"C4:34:6B:C7:89:98"
],
"cpu":"40",
"memory":"128733",
"disk":"500",
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"redhat",
"pm_password":"huawei@123",
"pm_addr":"172.25.14.125"
},
{
"name":"ceph-node2",
"mac":[
"C4:34:6B:C7:D8:68"
],
"cpu":"40",
"memory":"128733",
"disk":"500",
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"redhat",
"pm_password":"huawei@123",
"pm_addr":"172.25.14.126"
}
]
}

The following table describes related parameters.

Parameter

Description

mac

MAC address list of the network interface on the node. The list contains only the MAC address of the Provisioning NIC of each system, that is, the MAC address of the BMC NIC of each blade server.

cpu

Number of CPUs on a node. (Optional) You can run the cat /proc/cpuinfo |grep 'processor' |wc -l command on the Undercloud node to obtain the value.

memory

Memory size (MB). You can run the free -m command on the Undercloud node to obtain the value. This parameter is optional.

disk

Hard disk size (GB). You can run the fdisk –l or lsblk command on the Undercloud node to obtain the value. This parameter is optional.

arch

System architecture. This parameter is optional.

pm_type

Power management driver. In this example, the IPMI driver (pxe_ipmitool) is used.

pm_user/pm_password

User name and password of the IPMI, which are the BMC user name and password of the server.

pm_addr

IP address of the IPMI device, that is, the BMC IP address of the server.

NOTE:

Set the parameters based on the number of nodes.

In this example, the instackenv.json file content is as follows:

{
"nodes":[
{
"name":"controller-node1",
"mac":[
"9c:7d:a3:78:5e:e6"
],
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"root",
"pm_password":"Huawei12#$",
"pm_addr":"172.24.2.18"
},
{
"name":"controller-node2",
"mac":[
"9c:7d:a3:78:61:74"
],
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"root",
"pm_password":"Huawei12#$",
"pm_addr":"172.24.2.19"
},
{
"name":"controller-node3",
"mac":[
"9c:7d:a3:78:5f:82"
],
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"root",
"pm_password":"Huawei12#$",
"pm_addr":"172.24.2.20"
},
{
"name":"compute-node1",
"mac":[
"9c:7d:a3:cc:71:13"
],
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"root",
"pm_password":"Huawei12#$",
"pm_addr":"172.24.2.16"
},
{
"name":"compute-node2",
"mac":[
"9c:7d:a3:78:5f:91"
],
"arch":"x86_64",
"pm_type":"pxe_ipmitool",
"pm_user":"root",
"pm_password":"Huawei12#$",
"pm_addr":"172.24.2.17"
}
]
}

Importing Registered Nodes

  1. Switch to the stack user. Then, run the following commands in the /home/stack/ directory to register each node from the template to the director.

  2. Allocate kernels and ramdisk images to all nodes.

    If a node is added or deleted in the JSON file after the nodes are imported, you need to delete the content from the ports and nodes tables, and import the registered nodes again. Alternatively, you can configure the new node in another JSON file, and import the JSON file separately. The following figure shows the operations.

    You can also run the ironic node-delete node ID command to delete a node.

Download
Updated: 2019-03-25

Document ID: EDOC1100072313

Views: 2441

Downloads: 17

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next