<div dir="ltr">>> Could you please change subnets names to be the same for your Controller and ComputeHCI role say internal_api.<div><br></div><div>typo: Could you please change subnets names to be the same for your Controller and ComputeHCI role say internal_api_subnet.</div><div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at 7:48 PM Sandeep Yadav <<a href="mailto:sandeepggn93@gmail.com">sandeepggn93@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><br>To me it looks like the example shared in the documentation[1] is for leaf-spine arch. <br><br>Currently, You have a different set of subnets under your Controller and ComputeHCI role.<br><br>Taking internal_api reference from your baremetal_deployment.yaml<br>~~~<br> - network: internal_api<br> subnet: internal_api_subnet01 >>><br>.<br>. <br> - network: internal_api<br> subnet: internal_api_subnet02 >>>><br>~~~<br><br>If leaf-spine arch is not what you want, Could you please change subnets names to be the same for your Controller and ComputeHCI role say internal_api. <br><br>Also, I am assuming you are following documentation [2], For "openstack overcloud network provision" command also make sure your networks/subnets names in network_data.yaml (sample ref[3]) are consistent with what you as wish to do in baremetal_deployment.yaml<br><br>[1] <a href="https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/network-data-samples/default-network-isolation.yaml" target="_blank">https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/network-data-samples/default-network-isolation.yaml</a><br>[2] <a href="https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/network_v2.html#provision-baremetal-instances" target="_blank">https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/network_v2.html#provision-baremetal-instances</a><br>[3] <a href="https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/network-data-samples/default-network-isolation.yaml" target="_blank">https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/network-data-samples/default-network-isolation.yaml</a><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at 5:20 PM wodel youchi <<a href="mailto:wodel.youchi@gmail.com" target="_blank">wodel.youchi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi again,</div><div><br></div><div>Here is the error I am getting when trying to generate the <b>overcloud-baremetal-deployed.yaml </b>file :</div><div>CMD : openstack overcloud node provision --stack overcloud --network-config --output ~/templates/overcloud-baremetal-deployed.yaml ~/templates/baremetal_deployment.yaml</div><div><br></div><div>Error :</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><b>The full traceback is: <br> File "/tmp/ansible_tripleo_overcloud_network_ports_payload_xszb9ooz/ansible_tripleo_overcloud_network_ports_payload.zip/ansible/modules/tripleo_overcloud_network_ports.py", <br>line 601, in run_module <br> File "/tmp/ansible_tripleo_overcloud_network_ports_payload_xszb9ooz/ansible_tripleo_overcloud_network_ports_payload.zip/ansible/modules/tripleo_overcloud_network_ports.py", <br>line 494, in manage_instances_ports<br> File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run<br> result = self.fn(*self.args, **self.kwargs)<br> File "/tmp/ansible_tripleo_overcloud_network_ports_payload_xszb9ooz/ansible_tripleo_overcloud_network_ports_payload.zip/ansible/modules/tripleo_overcloud_network_ports.py", <br>line 385, in _provision_ports<br> File "/tmp/ansible_tripleo_overcloud_network_ports_payload_xszb9ooz/ansible_tripleo_overcloud_network_ports_payload.zip/ansible/modules/tripleo_overcloud_network_ports.py", <br>line 319, in generate_port_defs</b><br> ],<br> "template": "/home/stack/templates/nic-configs/bonds_vlans.j2"<br> },<br> "networks": [<br> {<br> "network": "external",<br> "subnet": "external_subnet"<br> },<br> {<br> "network": "internal_api",<br> "subnet": "internal_api_subnet01"<br> },<br> {<br> "network": "storage",<br> "subnet": "storage_subnet01"<br> },<br> {<br> "network": "storage_mgmt",<br> "subnet": "storage_mgmt_subnet01"<br> },<br> { [215/1899]<br> "network": "tenant",<br> "subnet": "tenant_subnet01"<br> },<br> {<br> "network": "ctlplane",<br> "vif": true<br> }<br> ],<br> "nics": [<br> {<br> "network": "ctlplane"<br> }<br> ],<br> "ssh_public_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDdFv9qwUs3x6egY5Xke3gh2O8CnXTJ2h2jRpWYEFzL1fyZrMKykMBUEfbkQGYzONsE29/BpS265Df4RgZB3eHx4KWcaskSwjl<br>DaUzxP0ZsSl2MzxtDIqE3UTrsmivNGx0ungcTorOc96V9daqU/Vu2HU8J+YEA6+OjddPX1ngz/w== <a href="mailto:root@undercloud.umaitek.dz" target="_blank">root@undercloud.umaitek.dz</a> ",<br> "user_name": "heat-admin"<br> },<br> {<br> "capabilities": {<br> "profile": "computeHCI"<br> },<br> "config_drive": {<br> "meta_data": {<br> "instance-type": "ComputeHCI"<br> }<br> },<br> "hostname": "computehci-0",<br> "image": {<br> "href": "file:///var/lib/ironic/images/overcloud-full.raw",<br> "kernel": "file:///var/lib/ironic/images/overcloud-full.vmlinuz",<br> "ramdisk": "file:///var/lib/ironic/images/overcloud-full.initrd"<br> },<br> "network_config": {<br> "template": "/home/stack/templates/nic-configs/bonds_vlans.j2"<br> },<br> "networks": [<br> "network": "internal_api",<br> "subnet": "internal_api_subnet02"<br> },<br> {<br> "network": "tenant",<br> "subnet": "tenant_subnet02"<br> },<br> {<br> "network": "storage",<br> "subnet": "storage_subnet02"<br> },<br> {<br> "network": "storage_mgmt",<br> "subnet": "storage_mgmt_subnet02"<br> 2021-08-24 10:21:18.492374 | 52540075-9baf-0191-8598-000000000019 | FATAL | Provision instance network ports | localhost | error={<br> "changed": true,<br> "error": "'internal_api_subnet02'",<br> "invocation": {<br> "module_args": {<br> "api_timeout": null,<br> "auth": null,<br> "auth_type": null,<br> "availability_zone": null,<br> "ca_cert": null,<br> "client_cert": null,<br> "client_key": null,<br> "concurrency": 2,<br> "hostname_role_map": {<br> "computehci-0": "ComputeHCI",<br> "controller-0": "Controller"<br> },<br>...<br>...<br>...<br> "provisioned_instances": [ [38/1899]<br> {<br> "hostname": "controller-0",<br> "id": "1dff400f-0dd1-4eb0-b4c1-84397d387a4a",<br> "name": "controller0"<br> },<br> {<br> "hostname": "computehci-0",<br> "id": "3d6c399f-53b7-472b-b784-67193a485e43",<br> "name": "computeHCI0"<br> }<br> ],<br> "region_name": null,<br> "stack_name": "overcloud",<br> "state": "present",<br> "timeout": 180,<br> "validate_certs": null,<br> "wait": true<br> }<br> <b> },<br> "msg": "Error managing network ports 'internal_api_subnet02'",<br> "node_port_map": {},<br> "success": false<br>}</b><br>2021-08-24 10:21:18.494473 | 52540075-9baf-0191-8598-000000000019 | TIMING | Provision instance network ports | localhost | 0:04:58.315416 | 3.72s <br><br>NO MORE HOSTS LEFT *************************************************************<br><br>PLAY RECAP *********************************************************************<br>localhost : ok=10 changed=3 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0<br>2021-08-24 10:21:18.498948 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Summary Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>2021-08-24 10:21:18.499338 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Total Tasks: 16 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>2021-08-24 10:21:18.499755 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elapsed Time: 0:04:58.320717 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>2021-08-24 10:21:18.500105 | UUID | Info | Host | Task Name | Run Time<br>2021-08-24 10:21:18.500449 | 52540075-9baf-0191-8598-000000000017 | SUMMARY | localhost | Provision instances | 285.25s<br>2021-08-24 10:21:18.500868 | 52540075-9baf-0191-8598-000000000014 | SUMMARY | localhost | Reserve instances | 6.08s<br>2021-08-24 10:21:18.501228 | 52540075-9baf-0191-8598-000000000019 | SUMMARY | localhost | Provision instance network ports | 3.72s<br>2021-08-24 10:21:18.501588 | 52540075-9baf-0191-8598-000000000013 | SUMMARY | localhost | Find existing instances | 1.52s<br>2021-08-24 10:21:18.501944 | 52540075-9baf-0191-8598-000000000012 | SUMMARY | localhost | Expand roles | 0.92s<br>2021-08-24 10:21:18.502281 | 52540075-9baf-0191-8598-00000000000c | SUMMARY | localhost | stat overcloud-full.raw | 0.26s<br>2021-08-24 10:21:18.502706 | 52540075-9baf-0191-8598-00000000000d | SUMMARY | localhost | stat overcloud-full.initrd | 0.19s<br>2021-08-24 10:21:18.503053 | 52540075-9baf-0191-8598-00000000000e | SUMMARY | localhost | Set file based default image | 0.04s<br>2021-08-24 10:21:18.503419 | 52540075-9baf-0191-8598-000000000018 | SUMMARY | localhost | Metalsmith log for provision instances | 0.04s<br>2021-08-24 10:21:18.503806 | 52540075-9baf-0191-8598-000000000016 | SUMMARY | localhost | Set concurrency fact | 0.04s<br>2021-08-24 10:21:18.504139 | 52540075-9baf-0191-8598-000000000015 | SUMMARY | localhost | Metalsmith log for reserve instances | 0.04s<br>2021-08-24 10:21:18.504469 | 52540075-9baf-0191-8598-00000000000f | SUMMARY | localhost | Set whole-disk file based default image | 0.03s<br>2021-08-24 10:21:18.504849 | 52540075-9baf-0191-8598-000000000010 | SUMMARY | localhost | Set glance based default image | 0.03s<br>2021-08-24 10:21:18.505246 | 52540075-9baf-0191-8598-000000000009 | SUMMARY | localhost | fail | 0.03s<br>2021-08-24 10:21:18.505627 | 52540075-9baf-0191-8598-000000000008 | SUMMARY | localhost | fail | 0.03s<br>2021-08-24 10:21:18.505987 | 52540075-9baf-0191-8598-00000000000a | SUMMARY | localhost | fail | 0.02s<br>2021-08-24 10:21:18.506315 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End Summary Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>2021-08-24 10:21:18.506693 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ State Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>2021-08-24 10:21:18.507032 | ~~~~~~~~~~~~~~~~~~ Number of nodes which did not deploy successfully: 1 ~~~~~~~~~~~~~~~~~<br>2021-08-24 10:21:18.507351 | The following node(s) had failures: localhost<br>2021-08-24 10:21:18.507720 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Temporary directory [ /tmp/tripleob9lxg9vi ] cleaned up<br>Ansible execution failed. playbook: /usr/share/ansible/tripleo-playbooks/cli-overcloud-node-provision.yaml, Run Status: failed, Return Code: 2<br>Temporary directory [ /tmp/tripleoyso22wsn ] cleaned up<br>Exception occured while running the command<br>Traceback (most recent call last):<br> File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 34, in run<br> super(Command, self).run(parsed_args)<br> File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, in run<br> return super(Command, self).run(parsed_args)<br> File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run<br> return_code = self.take_action(parsed_args) or 0<br> File "/usr/lib/python3.6/site-packages/tripleoclient/v2/overcloud_node.py", line 323, in take_action<br> extra_vars=extra_vars,<br> File "/usr/lib/python3.6/site-packages/tripleoclient/utils.py", line 724, in run_ansible_playbook<br> raise RuntimeError(err_msg)<br>RuntimeError: Ansible execution failed. playbook: /usr/share/ansible/tripleo-playbooks/cli-overcloud-node-provision.yaml, Run Status: failed, Return Code: 2<br>Ansible execution failed. playbook: /usr/share/ansible/tripleo-playbooks/cli-overcloud-node-provision.yaml, Run Status: failed, Return Code: 2<br>clean_up ProvisionNode: Ansible execution failed. playbook: /usr/share/ansible/tripleo-playbooks/cli-overcloud-node-provision.yaml, Run Status: failed, Return Code: 2<br>END return value: 1</div></blockquote><div><br></div><div>Here is my baremetal_deployment.yaml file :</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">- name: Controller
</span><br> count: 1
<br> hostname_format: controller-%index%
<br> defaults:
<br> profile: control
<br> networks:
<br> - network: external
<br> subnet: external_subnet
<br> - network: internal_api
<br> subnet: internal_api_subnet01
<br> - network: storage
<br> subnet: storage_subnet01
<br> - network: storage_mgmt
<br> subnet: storage_mgmt_subnet01
<br> - network: tenant
<br> subnet: tenant_subnet01
<br> network_config:
<br> template: /home/stack/templates/nic-configs/bonds_vlans.j2
<br> default_route_network:
<br> - external
<br>- name: ComputeHCI
<br> count: 1
<br> hostname_format: computehci-%index%
<br> defaults:
<br> profile: computeHCI
<br> networks:
<br> - network: internal_api
<br> subnet: internal_api_subnet02
<br> - network: tenant
<br> subnet: tenant_subnet02
<br> - network: storage
<br> subnet: storage_subnet02
<br> - network: storage_mgmt
<br> subnet: storage_mgmt_subnet02
<br> network_config:
<br> template: /home/stack/templates/nic-configs/bonds_vlans.j2<br></span></div></blockquote><div><br></div><div><br></div><div>If someone can help me and point me where to look.<br></div><div>Any help will be appreciated.<br></div><div><br></div><div>Regards.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 23 août 2021 à 12:48, wodel youchi <<a href="mailto:wodel.youchi@gmail.com" target="_blank">wodel.youchi@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>I am trying to deploy openstack Wallaby.</div><div>I need some help to understand the meaning of this file "Baremetal Provision Configuration"</div><div>Here is the example given in the documentation :</div><div><br></div><div>First in : <a href="https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/network_v2.html" target="_blank">https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/deployment/network_v2.html</a> : Provision Baremetal Instances</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre><span>-</span> <span>name</span><span>:</span> <span>Controller</span>
<span>count</span><span>:</span> <span>3</span>
<span>defaults</span><span>:</span>
<span>networks</span><span>:</span>
<span>-</span> <span>network</span><span>:</span> <span>ctlplane</span>
<span>subnet</span><span>:</span> <span>ctlplane-subnet</span>
<span>vif</span><span>:</span> <span>true</span>
<span>-</span> <span>network</span><span>:</span> <span>external</span>
<span>subnet</span><span>:</span> <span>external_subnet</span>
<b><span>-</span> <span>network</span><span>:</span> <span>internalapi</span>
<span>subnet</span><span>:</span> <span>internal_api_subnet01</span></b>
<span>-</span> <span>network</span><span>:</span> <span>storage</span>
<span>subnet</span><span>:</span> <span>storage_subnet01</span>
<span>-</span> <span>network</span><span>:</span> <span>storagemgmt</span>
<span>subnet</span><span>:</span> <span>storage_mgmt_subnet01</span>
<span>-</span> <span>network</span><span>:</span> <span>tenant</span>
<span>subnet</span><span>:</span> <span>tenant_subnet01</span>
<span>network_config</span><span>:</span>
<span>template</span><span>:</span> <span>/home/stack/nic-config/controller.j2</span>
<span>default_route_network</span><span>:</span>
<span>-</span> <span>external</span>
<span>-</span> <span>name</span><span>:</span> <span>Compute</span>
<span>count</span><span>:</span> <span>100</span>
<span>defaults</span><span>:</span>
<span>networks</span><span>:</span>
<span>-</span> <span>network</span><span>:</span> <span>ctlplane</span>
<span>subnet</span><span>:</span> <span>ctlplane-subnet</span>
<span>vif</span><span>:</span> <span>true</span>
<b><span>-</span> <span>network</span><span>:</span> <span>internalapi</span>
<span>subnet</span><span>:</span> <span>internal_api_subnet02</span></b>
<span>-</span> <span>network</span><span>:</span> <span>tenant</span>
<span>subnet</span><span>:</span> <span>tenant_subnet02</span>
<span>-</span> <span>network</span><span>:</span> <span>storage</span>
<span>subnet</span><span>:</span> <span>storage_subnet02</span>
<span>network_config</span><span>:</span>
<span>template</span><span>:</span> <span>/home/stack/nic-config/compute.j2</span></pre></blockquote><div>Second in : <a href="https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/provisioning/baremetal_provision.html#baremetal-provision" target="_blank">https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/provisioning/baremetal_provision.html#baremetal-provision</a> : Baremetal Provision Configuration</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><pre><span>-</span> <span>name</span><span>:</span> <span>Controller</span>
<span>count</span><span>:</span> <span>1</span>
<span>hostname_format</span><span>:</span> <span>controller-%index%</span>
<span>ansible_playbooks</span><span>:</span>
<span>-</span> <span>playbook</span><span>:</span> <span>bm-deploy-playbook.yaml</span>
<span>defaults</span><span>:</span>
<span>profile</span><span>:</span> <span>control</span>
<span>networks</span><span>:</span>
<span>-</span> <span>network</span><span>:</span> <span>external</span>
<span>subnet</span><span>:</span> <span>external_subnet</span>
<b><span>-</span> <span>network</span><span>:</span> <span>internal_api</span>
<span>subnet</span><span>:</span> <span>internal_api_subnet01</span></b>
<span>-</span> <span>network</span><span>:</span> <span>storage</span>
<span>subnet</span><span>:</span> <span>storage_subnet01</span>
<span>-</span> <span>network</span><span>:</span> <span>storage_mgmt</span>
<span>subnet</span><span>:</span> <span>storage_mgmt_subnet01</span>
<span>-</span> <span>network</span><span>:</span> <span>tenant</span>
<span>subnet</span><span>:</span> <span>tenant_subnet01</span>
<span>network_config</span><span>:</span>
<span>template</span><span>:</span> <span>templates/multiple_nics/multiple_nics_dvr.j2</span>
<span>default_route_network</span><span>:</span>
<span>-</span> <span>external</span>
<span>-</span> <span>name</span><span>:</span> <span>Compute</span>
<span>count</span><span>:</span> <span>1</span>
<span>hostname_format</span><span>:</span> <span>compute-%index%</span>
<span>ansible_playbooks</span><span>:</span>
<span>-</span> <span>playbook</span><span>:</span> <span>bm-deploy-playbook.yaml</span>
<span>defaults</span><span>:</span>
<span>profile</span><span>:</span> <span>compute-leaf2</span>
<span>networks</span><span>:</span>
<b><span>-</span> <span>network</span><span>:</span> <span>internal_api</span>
<span>subnet</span><span>:</span> <span>internal_api_subnet02</span></b>
<span>-</span> <span>network</span><span>:</span> <span>tenant</span>
<span>subnet</span><span>:</span> <span>tenant_subnet02</span>
<span>-</span> <span>network</span><span>:</span> <span>storage</span>
<span>subnet</span><span>:</span> <span>storage_subnet02</span>
<span>network_config</span><span>:</span>
<span>template</span><span>:</span> <span>templates/multiple_nics/multiple_nics_dvr.j2</span></pre></div></blockquote><div><br></div><div>My questions :</div><div>1 - Does the name of the network have to match the name of the network (name_lower) in network_data.yaml? because there is an underscore missing in the first example</div><div>2 - What is the meaning of the numbers in the subnet name of the network "<b><span>internal_api_subnet01 </span></b><span>for controllers and <b><span>internal_api_subnet02 </span></b>for compute nodes</span>" ? why a different number? What is the meaning of it?</div><div><br></div><div>I have tried to create the <b>overcloud-baremetal-deployed.yaml</b> file several times, and every time I get errors here.<br></div><div><br></div><div>Regards.<br></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>