<div dir="ltr">A few different observations:<div><br></div><div>1) It appears you're using a partition image. We recommend whole disk images</div><div>2) The Image you're deploying doesn't support grub-install being used in UEFI enabled state. Whole disk images should contain contents supporting UEFI boot in the form of /boot/EFI/ contents.</div><div>3) Newer/more recent Ironic can navigate turning the UEFI boot loader pointer into a UEFI NVRAM entry. I recommend Wallaby or newer. This specifically will need to be the deployment ramdisk.</div><div><br></div><div>-Julia</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 9, 2023 at 9:05 AM Swogat Pradhan <<a href="mailto:swogatpradhan22@gmail.com">swogatpradhan22@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">Hi,<div>When i am running node provision command i am getting the following error:</div><div><br></div>The full traceback is:<br> File "/tmp/ansible_metalsmith_instances_payload_tmufs89r/ansible_metalsmith_instances_payload.zip/ansible/modules/metalsmith_instances.py", line 427, in main<br> File "/tmp/ansible_metalsmith_instances_payload_tmufs89r/ansible_metalsmith_instances_payload.zip/ansible/modules/metalsmith_instances.py", line 340, in provision<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_metalsmith_instances_payload_tmufs89r/ansible_metalsmith_instances_payload.zip/ansible/modules/metalsmith_instances.py", line 372, in _provision_instance<br> File "/usr/lib/python3.6/site-packages/metalsmith/_provisioner.py", line 488, in wait_for_provisioning<br> raise exceptions.DeploymentFailed(str(exc))<br> "networks": [<br> {<br> "network": "ctlplane",<br> "vif": true<br> },<br> {<br> "network": "internal_api",<br> "subnet": "internal_apis2_subnet"<br> },<br> {<br> "network": "tenant",<br> "subnet": "tenants2_subnet"<br> },<br> {<br> "network": "storage",<br> "subnet": "storages2_subnet"<br> },<br> {<br> "network": "storage_mgmt",<br> "subnet": "storage_mgmts2_subnet"<br> }<br> ],<br> "nics": [<br> {<br> "network": "ctlplane"<br> }<br> ],<br> "ssh_public_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCb/KTQTouURPWFO0R1zGEIKXYUDQb4+pIgNuTJ7zA43jz9nyGt/pH1pnZAq71NmfL+sICFPf4uvhqFkMU7T0eC3TVuP87kZ8pAMh0D+NPqtRQJxK0WZO2h67dUKBAtW5WamxABhDh+XqmRPXE8Fl1VvzlKO/KZGUClk24BNGjt/nqho9FGskNY/vZLQV/gZzrKfHUYpcDxIg6NpnNE6bGdy4tyL4JwYcdTP8ovU1JhKMXSTjk8WrGz/OQB8a4Pgq0WWgIRWvwZDuUwFWiK6aV7gkjhMXwwtZ7jq9fQOs/hcleATX7Cq77ayJW8DusxQLynbMrh/dBs3Smgp1Ncd3rthpJz2ujBg7ymScCq4ya0W1RkbzZ6H8kVT0hppO93Ip8VFTMnPDoWONQFdAbAVhaamycVMxxbGatHVYGGXIMMBEL1MO4ncIW4f46vNffIhmoTvG20ncy2zba7hk9D4NMbqEpyR3NG1BnMHW0h9bYp2K9+jOWS9MUfakD8kNi8Ff0= <a href="mailto:stack@hkg2director.bdxworld.com" target="_blank">stack@hkg2director.bdxworld.com</a> ",<br> 2023-05-09 22:18:08.565576 | 48d539a1-1679-0477-63a8-000000000018 | FATAL | Provision instances | localhost | error={<br> "changed": false,<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> "clean_up": false,<br> "client_cert": null,<br> "client_key": null,<br> "concurrency": 1,<br> "instances": [<br> {<br> "config_drive": {<br> "meta_data": {<br> "instance-type": "DistributedComputeHCI"<br> }<br> },<br> "hostname": "dcn01-hci-2",<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> "name": "17107583-48da-43eb-9e38-63e250848d05",<br> "network_config": {<br> "template": "/home/stack/dcn01/hci_network_bond.j2"<br> },<br> "networks": [<br> {<br> "network": "ctlplane",<br> "vif": true<br> },<br> {<br> "network": "internal_api",<br> "subnet": "internal_apis2_subnet"<br> },<br> {<br> "network": "tenant",<br> "subnet": "tenants2_subnet"<br> },<br> {<br> "network": "storage",<br> "subnet": "storages2_subnet"<br> },<br> {<br> "network": "storage_mgmt",<br> "subnet": "storage_mgmts2_subnet"<br> }<br> ],<br> "nics": [<br> {<br> "network": "ctlplane"<br> }<br> ],<br> "ssh_public_keys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCb/KTQTouURPWFO0R1zGEIKXYUDQb4+pIgNuTJ7zA43jz9nyGt/pH1pnZAq71NmfL+sICFPf4uvhqFkMU7T0eC3TVuP87kZ8pAMh0D+NPqtRQJxK0WZO2h67dUKBAtW5WamxABhDh+XqmRPXE8Fl1VvzlKO/KZGUClk24BNGjt/nqho9FGskNY/vZLQV/gZzrKfHUYpcDxIg6NpnNE6bGdy4tyL4JwYcdTP8ovU1JhKMXSTjk8WrGz/OQB8a4Pgq0WWgIRWvwZDuUwFWiK6aV7gkjhMXwwtZ7jq9fQOs/hcleATX7Cq77ayJW8DusxQLynbMrh/dBs3Smgp1Ncd3rthpJz2ujBg7ymScCq4ya0W1RkbzZ6H8kVT0hppO93Ip8VFTMnPDoWONQFdAbAVhaamycVMxxbGatHVYGGXIMMBEL1MO4ncIW4f46vNffIhmoTvG20ncy2zba7hk9D4NMbqEpyR3NG1BnMHW0h9bYp2K9+jOWS9MUfakD8kNi8Ff0= <a href="mailto:stack@hkg2director.bdxworld.com" target="_blank">stack@hkg2director.bdxworld.com</a> ",<br> "user_name": "heat-admin"<br> }<br> ],<br> "interface": "public",<br> "log_level": "info",<br> "region_name": null,<br> "state": "present",<br> "timeout": 3600,<br> "validate_certs": null,<br> "wait": true<br> }<br> },<br> "logging": "Created port dcn01-hci-2-ctlplane (UUID ce763b38-b047-40bc-be44-9c9da8bd2e30) for node singapore-HCI3 (UUID 17107583-48da-43eb-9e38-63e250848d05) with {'network_id': '1fad76a3-aa2a-4213-8c37-eb89629da523', 'name': 'dcn01-hci-2-ctlplane'}\nAttached port dcn01-hci-2-ctlplane (UUID ce763b38-b047-40bc-be44-9c9da8bd2e30) to node singapore-HCI3 (UUID 17107583-48da-43eb-9e38-63e250848d05)\nProvisioning started on node singapore-HCI3 (UUID 17107583-48da-43eb-9e38-63e250848d05)\n",<br> "msg": "Node 17107583-48da-43eb-9e38-63e250848d05 reached failure state \"deploy failed\"; the last error is Deploy step deploy.prepare_instance_boot failed: Failed to install a bootloader when deploying node 17107583-48da-43eb-9e38-63e250848d05. Error: Installing GRUB2 boot loader to device /dev/sda failed with Unexpected error while running command.\nCommand: chroot /tmp/tmp8_wa6g6q /bin/sh -c \"grub2-install /dev/sda\"\nExit code: 1\nStdout: ''\nStderr: 'grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.\\n'."<br><div><br></div><div>I have already provisioned 2 other nodes using the same hardware, but the node provisioning is failing in this particular node.</div><div><br></div><div>With regards,</div><div>Swogat Pradhan </div></div>
</blockquote></div>