docs/doc/source/node_management/openstack/using-labels-to-identify-openstack-nodes.rst
Ron Stone 2b62f49a9d Fix symlinks
Changed paths to avoid '..', which breaks symlinks in newer versions of sphinx.
Consolidated installation include files under /_includes. Prefixed r5 versions with 'r5_'
Moved files that are used up/down, but at different paths under /shared/_includes
and /shared/figures
Move two include files to /_includes
Moved addtional images to /shared/figures/... Required for DS platform builds.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Ia38f4205c5803b3d1fc043e6c59617c34a4e5cbd
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
2021-09-02 13:31:45 +00:00

6.5 KiB

Use Labels to Identify OpenStack Nodes

The application is deployed on the nodes of the based on node labels.

Prior to initially installing the application or when adding nodes to a deployment, you need to label the nodes appropriately for their OpenStack role.

starlingx

Table 1. Common OpenStack Labels
Label Worker/Controller Description
openstack-control-plane
  • Controller
  • All-in-One Controller
Identifies a node to deploy openstack controller services on.
openstack-compute-node Worker

Identifies a node to deploy openstack compute agents on.

Note

Adding or removing this label, or removing a node with this label from a cluster, triggers the regeneration and application of the helm chart override by Armada.

sriov
  • Worker
  • All-in-One Controller
Identifies a node as supporting sr-iov.

partner

start-after

table-1-of-contents-begin

end-before

table-1-of-contents-end

For more information. see : Configuring Node Labels from The CLI <assigning-node-labels-from-the-cli>.

Nodes must be locked before labels can be assigned or removed.

starlingx

  1. To assign Kubernetes labels to identify compute-0 as a compute node with and SRIOV, use the following command:

    ~(keystone)admin)$ system host-label-assign compute-0 openstack-compute-node=enabled sriov=enabled
    +-------------+--------------------------------------+
    | Property    | Value                                |
    +-------------+--------------------------------------+
    | uuid        | 2909d775-cd6c-4bc1-8268-27499fe38d5e |
    | host_uuid   | 1f00d8a4-f520-41ee-b608-1b50054b1cd8 |
    | label_key   | openstack-compute-node               |
    | label_value | enabled                              |
    +-------------+--------------------------------------+
    +-------------+--------------------------------------+
    | Property    | Value                                |
    +-------------+--------------------------------------+
    | uuid        | d8e29e62-4173-4445-886c-9a95b0d6fee1 |
    | host_uuid   | 1f00d8a4-f520-41ee-b608-1b50054b1cd8 |
    | label_key   | sriov                                |
    | label_value | enabled                              |
    +-------------+--------------------------------------+
  2. To remove the labels from the host, do the following.

    ~(keystone)admin)$ system host-label-remove compute-0 openstack-compute-node sriov
    Deleted host label openstack-compute-node for host compute-0
    Deleted host label sriov for host compute-0

partner

start-after

table-1-of-contents-end