Why I do get this error on ironic-conductor.log u'Error: The location 41162 is outside of the device /dev/sdc.\n' and the deployment fails with No valid host was found ?
Issue
- Ironic is detecting wrong disk size
- The deployment fails with No valid host was found and the following error can we seen in ironic-conductor.log
ERROR ironic.drivers.modules.agent_base_vendor Command: sudo ironic-rootwrap /etc/ironic/rootwrap.conf parted -a optimal -s /dev/disk/by-path/ip-10.20.182.33:3260-iscsi-iqn.2008-10.org.openstack:c989bc7a-9f51-4db4-84fd-410021c22979-lun-1 -- unit MiB mklabel gpt mkpart primary fat32 1 201 set 1 boot on mkpart primary 201 202 mkpart primary 202 41162
ERROR ironic.drivers.modules.agent_base_vendor Stderr: u'Error: The location 41162 is outside of the device /dev/sdc.\n'
This additional logs can be seen:
2018-05-14 11:22:12.963 30482 DEBUG ironic_lib.disk_utils [req-e5a10748-e5ff-494b-b010-8bc100261768 - - - - -] Add root partition (40960 MB) to device: /dev/disk/by-path/ip-10.20.182.36:3260-iscsi-iqn.2008-10.org.openstack:ae1de5df-d57a-40a5-8e8c-38bd5407adfb-lun-1 for node ae1de5df-d57a-40a5-8e8c-38bd5407adfb make_partitions /usr/lib/python2.7/site-packages/ironic_lib/disk_utils.py:249
This root partition (40960 MB) size, does not match the physical disk size that is 300GB
Environment
- Red Hat Openstack Platform
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.