No valid host was found when adding a custom image compute to openstack
Environment
- Red Hat OpenStack Platform 16.2
Issue
After introspection of new node, the deploy command fail with No valid host was found
due to small disk defined in flavor set for the customized image.
Resolution
- Check the needed disk space to the image with the command below or with the error detail in ironic logs.
(undercloud) [stack@director images_uploaded]$ sudo virt-filesystems -a overcloud-full-custom.qcow2 --all -l
- Create new flavor with enough disk space for the image used.
(undercloud) [stack@director ~]$ openstack flavor create --disk <disk_size> --vcpus <cores> --ram <ram_size> baremetal_node
(undercloud) [stack@director ~]$ openstack flavor set --property resources:CUSTOM_BAREMETAL='1' --property resources:DISK_GB='0' --property resources:MEMORY_MB='0' --property resources:VCPU='0' baremetal_node
Root Cause
Ironic checks the virtual size of your custom overcloud-full image and it is bigger than the disk size set in flavor.
Diagnostic Steps
- Introspection was successful and can be checked with command below.
openstack baremetal introspection data save --file /tmp/introspection.out <node_uuid>
-
Node have only one disk partition or is the root device as customization.
-
Run a baremetal node validation to see if root device failed.
(undercloud) [stack@director ~]$ openstack baremetal node validate <node_uuid>
- Search for the error below in ironic logs.
2024-01-01 11:11:11.320 8 ERROR ironic.conductor.task_manager [req-6666666-6666-6666-80a0-fb36e884b474 3a3cdce0280041e685e601e6f8b907f0 2d37f7858df8438a87376fac419382a5 - default default] Node 6666666-6666-6666-6666-5bbe065f9831 moved to provision state "deploy failed" from state "deploying"; target provision state is "active": ironic.common.exception.InstanceDeployFailure: Root partition is too small for requested image. Image virtual size: 100604 MB, Root size: 40960 MB
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments