이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Adding a node to the overcloud
The overcloud can grow to meet an increase in demand by adding a new Nova compute and Ceph OSD node to the overcloud.
Prerequisites
- A running RHHI Cloud solution.
- The MAC addresses for the network interface cards (NICs).
- IPMI User name and password
Procedure
Do the following steps on the Red Hat OpenStack Platform director node, as the stack
user.
Create and populate a host definition file for the Ironic service to manage the new node.
Create a new JSON host definition file:
touch ~/new_node.json
[stack@director ~]$ touch ~/new_node.json
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a definition block for the new node between the
nodes
stanza square brackets ({"nodes": []}
) using this template:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Replace…
- IPMI_USER_PASSWORD with the IPMI password.
- NODE_NAME with a descriptive name of the node. This is an optional parameter.
- IPMI_USER_NAME with the IPMI user name that has access to power the node on or off.
- IPMI_IP_ADDR with the IPMI IP address.
- NIC_MAC_ADDR with the network card MAC address handling the PXE boot.
NODE_ROLE-INSTANCE_NUM with the node’s role, along with a node number. This solution uses two roles:
controller
andosd-compute
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Import the nodes into the Ironic database:
openstack baremetal import ~/new_node.json
[stack@director ~]$ openstack baremetal import ~/new_node.json
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the
openstack baremetal import
command populated the Ironic database with the new node:openstack baremetal node list
[stack@director ~]$ openstack baremetal node list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Set the new node into maintenance mode:
ironic node-set-maintenance $UUID true
ironic node-set-maintenance $UUID true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Replace…
$UUID
with the UUID of the new node. See the output from step 2a to get the new node’s UUID.Example
ironic node-set-maintenance 7250678a-a575-4159-840a-e7214e697165 true
[stack@director ~]$ ironic node-set-maintenance 7250678a-a575-4159-840a-e7214e697165 true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Inspect the new node’s hardware:
openstack baremetal introspection start $UUID
openstack baremetal introspection start $UUID
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Replace…
$UUID
with the UUID of the new node. See the output from step 2a to get the new node’s UUID.Example
openstack baremetal introspection start 7250678a-a575-4159-840a-e7214e697165 true
[stack@director ~]$ openstack baremetal introspection start 7250678a-a575-4159-840a-e7214e697165 true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The introspection process can take some time to complete. Verify that the status of the introspection process:
openstack baremetal introspection bulk status
[stack@director ~]$ openstack baremetal introspection bulk status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example Output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Disable maintenance mode on the new node:
ironic node-set-maintenance $UUID false
ironic node-set-maintenance $UUID false
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Replace…
$UUID
with the UUID of the new node. See the output from step 2a to get the new node’s UUID.Example
ironic node-set-maintenance 7250678a-a575-4159-840a-e7214e697165 false
[stack@director ~]$ ironic node-set-maintenance 7250678a-a575-4159-840a-e7214e697165 false
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Assign the full overcloud kernel and ramdisk image to the new node:
openstack baremetal configure boot
[stack@director ~]$ openstack baremetal configure boot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Open the
~/templates/layout.yaml
file for editing.-
Under the
parameter_defaults
section, change theOsdComputeCount
option from3
to4
. -
Under the
OsdComputeIPs
section, add the new node’s IP addresses for each isolated network.
-
Under the
Apply the new overcloud configuration by rerunning the
openstack overcloud deploy
command with the same TripleO Heat templates from the initial overcloud deployment:Example
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the addition of the new node:
openstack server list
[stack@director ~]$ openstack server list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIf the node status is
ACTIVE
, then the new node was added successfully to the overcloud.