Association of the baremetal servers to the profiles
The Baremetal nodes that had been imported, if have not been attached to any profiles, the below command will not give any outputs.
Matching of the servers to the capabilities profile(s) is needed so that the corresponding flavor association is known to the undercloud, when the undercloud is about to deploy the overcloud on these baremetal servers.
[stack@osa ~]$ openstack overcloud profiles list
Associate the baremetal servers to the profiles.
Here the first three nodes overcloud-node{1..3} are added to the control profile, overcloud-node{4..6} to the compute profile and overcloud-node{7..9} to the ceph-storage profile.
3 baremetals for the control flavors
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:control' overcloud-node1
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:control' overcloud-node2
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:control' overcloud-node3
3 baremetals for the compute flavor
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:compute' overcloud-node4
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:compute' overcloud-node5
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:compute' overcloud-node6
3 baremetals for the ceph-storage flavor
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:ceph-storage' overcloud-node7
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:ceph-storage' overcloud-node8
openstack baremetal node set --property capabilities='cpu_aes:true,cpu_hugepages:true,boot_option:local,cpu_vt:true,cpu_hugepages_1g:true,boot_mode:bios,profile:ceph-storage' overcloud-node9
--
Start the introspection of the baremetal nodes
The nodes have to be in manageable state to allow the undercloud to run introspection on them
After the nodes are added to the profiles, start the introspection on the nodes.
(undercloud) [stack@pike ~]$ openstack overcloud node introspect --all-manageable
Waiting for introspection to finish...
Started Mistral Workflow tripleo.baremetal.v1.introspect_manageable_nodes. Execution ID: cb7a5597-20f2-4fee-acd2-c5d7c7f4c7f5
Waiting for messages on queue 'c58bd637-4366-4218-bca6-f544591ad515' with no timeout.
Introspection of node ee2484bb-02a9-4380-9e87-39aeba537b77 completed. Status:SUCCESS. Errors:None
Introspection of node 6b1cc13d-6da2-487a-92ba-744881acace1 completed. Status:SUCCESS. Errors:None
Introspection of node fee38738-60ba-4db4-a84e-158ff3c65a4b completed. Status:SUCCESS. Errors:None
Introspection of node d2d31668-060b-4642-8c5c-298ddebbf4c1 completed. Status:SUCCESS. Errors:None
Introspection of node 5e734b8a-3b21-43f9-841f-60f1cb3c4af1 completed. Status:SUCCESS. Errors:None
Introspection of node fbd40010-c851-4df4-93a9-5f39c5c0921a completed. Status:SUCCESS. Errors:None
Introspection of node 64a367fe-03db-4780-a3b9-352665fd95d7 completed. Status:SUCCESS. Errors:None
Introspection of node c3c63a3b-c596-48c9-bfd8-e3c7115a226d completed. Status:SUCCESS. Errors:None
Introspection of node 303a53b2-79ca-40b8-b0a1-49a0cabfc14f completed. Status:SUCCESS. Errors:None
Successfully introspected nodes.
Nodes introspected successfully.
Introspection completed.
(undercloud) [stack@pike ~]$
--
Alternate way to confirm that the overcloud node introspection has completed and there has been no errors
on the undercloud server run
openstack baremetal introspection bulk status
(undercloud) [stack@pike ~]$ openstack baremetal introspection bulk status
+--------------------------------------+----------+-------+
| Node UUID | Finished | Error |
+--------------------------------------+----------+-------+
| ee2484bb-02a9-4380-9e87-39aeba537b77 | True | None |
| 6b1cc13d-6da2-487a-92ba-744881acace1 | True | None |
| fee38738-60ba-4db4-a84e-158ff3c65a4b | True | None |
| d2d31668-060b-4642-8c5c-298ddebbf4c1 | True | None |
| fbd40010-c851-4df4-93a9-5f39c5c0921a | True | None |
| 303a53b2-79ca-40b8-b0a1-49a0cabfc14f | True | None |
| c3c63a3b-c596-48c9-bfd8-e3c7115a226d | True | None |
| 47283771-3751-4a2f-a8f9-fa631a4baaf2 | True | None |
| 38c01c94-c301-4b39-ab88-b1c12dcf67a6 | True | None |
+--------------------------------------+----------+-------+
(undercloud) [stack@pike ~]$
Set the introspected baremetal servers to the 'available' state for provisioning
Enable the servers to be in the available state of provisioning using
openstack baremetal node provide <baremetalServer>
or
openstack overcloud node provide --all-manageable
(undercloud) [stack@pike ~]$ openstack overcloud node provide --all-manageable
Started Mistral Workflow tripleo.baremetal.v1.provide_manageable_nodes. Execution ID: 46b2e88b-b695-4234-b49a-e7d30d696a08
Waiting for messages on queue '72247e95-c174-456b-a04e-8afbef2aaf97' with no timeout.
Successfully set nodes state to available.
(undercloud) [stack@pike ~]$
--
Ensure that the baremetal servers are in available state for provisioning
openstack baremetal node list
(undercloud) [stack@pike ~]$ openstack baremetal node list
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| ee2484bb-02a9-4380-9e87-39aeba537b77 | overcloud-node1 | None | power off | available | False |
| 6b1cc13d-6da2-487a-92ba-744881acace1 | overcloud-node2 | None | power off | available | False |
| fee38738-60ba-4db4-a84e-158ff3c65a4b | overcloud-node3 | None | power off | available | False |
| 64a367fe-03db-4780-a3b9-352665fd95d7 | overcloud-node4 | None | power off | available | False |
| 5e734b8a-3b21-43f9-841f-60f1cb3c4af1 | overcloud-node5 | None | power off | available | False |
| d2d31668-060b-4642-8c5c-298ddebbf4c1 | overcloud-node6 | None | power off | available | False |
| fbd40010-c851-4df4-93a9-5f39c5c0921a | overcloud-node7 | None | power off | available | False |
| 303a53b2-79ca-40b8-b0a1-49a0cabfc14f | overcloud-node8 | None | power off | available | False |
| c3c63a3b-c596-48c9-bfd8-e3c7115a226d | overcloud-node9 | None | power off | available | False |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
(undercloud) [stack@pike ~]$
--
Ensure the servers are matching to the correct overcloud profiles
After the baremetal servers are set to available mode using the openstack overcloud node provide --all-mangeable, the profile associations show up.
(undercloud) [stack@pike ~]$ openstack overcloud profiles list
+--------------------------------------+-----------------+-----------------+-----------------+-------------------+
| Node UUID | Node Name | Provision State | Current Profile | Possible Profiles |
+--------------------------------------+-----------------+-----------------+-----------------+-------------------+
| ee2484bb-02a9-4380-9e87-39aeba537b77 | overcloud-node1 | active | control | |
| 6b1cc13d-6da2-487a-92ba-744881acace1 | overcloud-node2 | active | control | |
| fee38738-60ba-4db4-a84e-158ff3c65a4b | overcloud-node3 | available | control | |
| 64a367fe-03db-4780-a3b9-352665fd95d7 | overcloud-node4 | available | compute | |
| 5e734b8a-3b21-43f9-841f-60f1cb3c4af1 | overcloud-node5 | available | compute | |
| d2d31668-060b-4642-8c5c-298ddebbf4c1 | overcloud-node6 | active | compute | |
| fbd40010-c851-4df4-93a9-5f39c5c0921a | overcloud-node7 | active | ceph-storage | |
| 303a53b2-79ca-40b8-b0a1-49a0cabfc14f | overcloud-node8 | active | ceph-storage | |
| c3c63a3b-c596-48c9-bfd8-e3c7115a226d | overcloud-node9 | active | ceph-storage | |
+--------------------------------------+-----------------+-----------------+-----------------+-------------------+
(undercloud) [stack@pike ~]$
No comments:
Post a Comment