Steps:
Deploy undercloud (centos stream) Victoria
Prepare 2 servers for control and compute
"nodes":[
{
"ports": [
{
"address": "b0:7b:25:d4:2e:e7",
"physical_network": "ctlplane"
}
],
"cpu":"12",
"memory":"12144",
"disk":"60",
"arch":"x86_64",
"pm_type":"idrac",
"name":"control",
"pm_user":"root",
"pm_password":"****",
"pm_addr":"10.20.22.12"
},
{
"ports": [
{
"address": "70:b5:e8:f0:4b:d3",
"physical_network": "ctlplane"
}
],
"cpu":"12",
"memory":"12144",
"disk":"60",
"arch":"x86_64",
"pm_type":"idrac",
"name":"compute",
"pm_user":"root",
"pm_password":"****",
"pm_addr":"10.20.22.19"
}
]
}
openstack overcloud node import nodes.json # ok
openstack overcloud node configure --all-manageable # ok
openstack overcloud node introspect --provide --all-manageable # ok
openstack baremetal node provide control # ok
openstack baremetal node provide compute # ok
openstack baremetal node set control --property capabilities=profile:baremetal # ok
openstack baremetal node set compute --property capabilities=profile:baremetal # ok
openstack baremetal node set control --resource-class baremetal # ok
openstack baremetal node set compute --resource-class baremetal # ok
Trying start deploy overcloud:
openstack overcloud deploy --templates --heat-type installed
Actual result:
Deploy failed, can't install os (centos stream) on control and compute
Log:
2021-11-16 14:38:27.757 30 ERROR nova.scheduler.utils [req-b9ea3ce1-e541-472b-a0b6-086c8ee381d2 c277c8507a1f4926a9cc030f06620aa9 e93ab25805de48538fa960d98bc14748 - default default] [instance: 2318a720-783c-41bc-8842-cc793a7cf389] Error from last host: myhost.localdomain (node 95442d75-44f8-4783-ba24-783d1d008eae): ['Traceback (most recent call last):\n', ' File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 2402, in _build_and_run_instance\n accel_info=accel_info)\n', ' File "/usr/lib/python3.6/site-packages/nova/virt/ironic/driver.py", line 1209, in spawn\n \'node\': node_uuid})\n', ' File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 227, in __exit__\n self.force_reraise()\n', ' File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 200, in force_reraise\n raise self.value\n', ' File "/usr/lib/python3.6/site-packages/nova/virt/ironic/driver.py", line 1201, in spawn\n timer.start(interval=CONF.ironic.api_retry_interval).wait()\n', ' File "/usr/lib/python3.6/site-packages/eventlet/event.py", line 125, in wait\n result = hub.switch()\n', ' File "/usr/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 313, in switch\n return self.greenlet.switch()\n', ' File "/usr/lib/python3.6/site-packages/oslo_service/loopingcall.py", line 150, in _run_loop\n result = func(*self.args, **self.kw)\n', ' File "/usr/lib/python3.6/site-packages/nova/virt/ironic/driver.py", line 543, in _wait_for_active\n raise exception.InstanceDeployFailure(msg)\n', "nova.exception.InstanceDeployFailure: Failed to provision instance 2318a720-783c-41bc-8842-cc793a7cf389: Deploy step deploy.write_image failed on node 95442d75-44f8-4783-ba24-783d1d008eae. Error performing deploy_step write_image: Command execution failed: Unexpected error while running command.\nCommand: blkid /dev/sda --match-tag UUID --match-tag PARTUUID\nExit code: 2\nStdout: ''\nStderr: ''\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 2224, in _do_build_and_run_instance\n filter_properties, request_spec, accel_uuids)\n', ' File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 2495, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=str(e))\n', "nova.exception.RescheduledException: Build of instance 2318a720-783c-41bc-8842-cc793a7cf389 was re-scheduled: Failed to provision instance 2318a720-783c-41bc-8842-cc793a7cf389: Deploy step deploy.write_image failed on node 95442d75-44f8-4783-ba24-783d1d008eae. Error performing deploy_step write_image: Command execution failed: Unexpected error while running command.\nCommand: blkid /dev/sda --match-tag UUID --match-tag PARTUUID\nExit code: 2\nStdout: ''\nStderr: ''\n"]
(undercloud) [stack@myhost root]$ openstack baremetal introspection data save control | jq ".inventory.disks[]"
{
"name": "/dev/sda",
"model": "DELLBOSS VD",
"size": 480036847616,
"rotational": true,
"wwn": null,
"serial": "ce808d7aed610010",
"vendor": "ATA",
"wwn_with_extension": null,
"wwn_vendor_extension": null,
"hctl": "11:0:0:0",
"by_path": "/dev/disk/by-path/pci-0000:05:00.0-ata-1"
}
(undercloud) [stack@myhost root]$ openstack baremetal introspection data save compute | jq ".inventory.disks[]"
{
"name": "/dev/sda",
"model": "DELLBOSS VD",
"size": 480036847616,
"rotational": true,
"wwn": null,
"serial": "8fca3b907e410010",
"vendor": "ATA",
"wwn_with_extension": null,
"wwn_vendor_extension": null,
"hctl": "11:0:0:0",
"by_path": "/dev/disk/by-path/pci-0000:05:00.0-ata-1"
}
(undercloud) [stack@myhost root]$
set to Invalid
bad overcloud image