Fuel provides wrong disk size for disks with 4k logical block size.
In order to calculate a disk size Nailgun-agent gathers a size in blocks from Ohai, a block size form /sys/block/{disk_name_ie_sda}/queue/logical_block_size and then multiplies them. It's wrong because Ohai always returns a size aligned to 512 block size.
Since 4k disks become more popular we will most likely have problems with a lot of installations in future.
Workaround:
Manually remove these lines [1] from /usr/bin/nailgun-agent on the bootstrap node then restart nailgun-agent
Affects 7.0, 8.0, 9.0. Was reproduced with 7.0
Fuel provides wrong disk size for disks with 4k logical block size.
In order to calculate a disk size Nailgun-agent gathers a size in blocks from Ohai, a block size form /sys/block/ {disk_name_ ie_sda} /queue/ logical_ block_size and then multiplies them. It's wrong because Ohai always returns a size aligned to 512 block size.
Since 4k disks become more popular we will most likely have problems with a lot of installations in future.
Workaround: nailgun- agent on the bootstrap node then restart nailgun-agent
Manually remove these lines [1] from /usr/bin/
[1] https:/ /github. com/openstack/ fuel-nailgun- agent/blob/ 7.0/agent# L375-L377