NVMe device not properly detected on AWS i3.xxx instances
christoph-buente opened this issue · comments
We see that the check on if node[cloud].keys.any? { |key| key.match(/^block_device_mapping_ephemeral\d+$/) }
does not fulfill on a i3.2xlarge instance and thus the check for nvm devices is ommited completely.
The instances uses an EBS root volume and has attached a 2TB NVMe Volume.
Moving this line outside of the if
check block, fixes it for us, but we don't feel confident not to break other conditions. https://github.com/rightscale-cookbooks/ephemeral_lvm/blob/master/libraries/helper.rb#L75
Same issue here, although i expect i'm missing some cloud setup part; since the helper uses a cloud parameter? What plugin do i need to add for ec2 support? Or set these myself?
Paul
I found that ohai does not provide the required block_device_mapping_ephemeral keys, it does provide public address, private, etc... and cloud is ec2. I don't know if i should provide hints for this? but indeed when simply running L75 outside the if condition does mount the nvme volumes of a i3 instance type.
@Paul424 This project does not seem to be actively maintained anymore. Bummer!
3.0.1 should support NVM Devices, is that not the case?
all of the ohai metadata is populated from here: https://github.com/chef/ohai/blob/master/lib/ohai/plugins/ec2.rb#L121