Comment 0 for bug 1544816

Revision history for this message
Andrey Danin (gcon-monolake) wrote : Nailgun-agent should get a disk size via /sys/dev/block/1:0/size

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:
Manually remove these lines [1] from /usr/bin/nailgun-agent on the bootstrap node then restart nailgun-agent

[1] https://github.com/openstack/fuel-nailgun-agent/blob/7.0/agent#L375-L377