terraform-provider-vsphere icon indicating copy to clipboard operation
terraform-provider-vsphere copied to clipboard

Add support for NVME controllers

Open hutger opened this issue 4 years ago • 25 comments

Description

Hi there,

I've created a template using Packer with three attached NVME disks.

image

When I try to run Terraform for deploying an instance using this template, I get the message:

Error: there must be at least one disk specified

It seems that Terraform is not able to find the NVME disks attached (since the only opinions are pvscsi, buslogic, etc, but none NVME), even though I add an extra_config informing NVME is presenting:

disk_size_gb = var.vmRootDiskSize scsi_type = var.vmScsiType extra_config = { "nvme0.present" = "True" "nvme0.0.present" = "True"

PS: If we deploy a new instance using the Template manually, the instance boots up as expected.

References

As per the documentation, scsi_type NVME is not supported. https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/virtual_machine#scsi_type

Community Note

Is the support for NVME on the roadmap (or maybe there's a workaround for now)?

Thanks for any suggestion or advice,

Hutger

hutger avatar Dec 10 '20 11:12 hutger

I do not think it makes sense to extend scsi_type to include NVME. it will need it's own nvme_ options like ide_ & sata_.

apollo13 avatar Jan 19 '21 09:01 apollo13

Hi @apollo13 , would you propose an alternative approach for rolling out instances with NVME attached?

hutger avatar Jan 19 '21 11:01 hutger

I don't think it is currently possibly with the terraform provider. If you do terraform import of an existing machine with nvme disks you will see that those are not discovered at all. I fear there are plenty of changes needed :/

apollo13 avatar Jan 19 '21 11:01 apollo13

+1 for adding support for NVME controller (We would like to change the default from pvscsi to nvme in the future)

eizedev avatar Feb 15 '21 09:02 eizedev

I am needing to recreate my template (made in Packer, also a HashiCorp project) to not use nvme because of this issue

rhoughton-pivot avatar Jul 01 '21 22:07 rhoughton-pivot

When will this be supported?

alexanderek avatar Aug 08 '21 10:08 alexanderek

Any update on this?

vash1028 avatar Sep 27 '21 13:09 vash1028

This is going to become a thing as NVME becomes the standard. Is support coming on this?

ryan-peterson3 avatar Oct 06 '21 19:10 ryan-peterson3

+1 this would be really useful

lostplan avatar Nov 25 '21 16:11 lostplan

hi @tenthirtyam, any chance this can be re-prioritized? nvme is available to be built via packer but not deployed via terraform. im being asked to implement this. this ticket took over a year to get acknowledged.

thanks!

johnypony3 avatar Mar 30 '22 17:03 johnypony3

Hi @tenthirtyam, I'd like to 2nd @johnypony3 request. Our understanding of the nvme controller is that it improves performance when the backend disk is NVMe SSD. We are trying to build high performance Oracle and MS SQL database systems.

rjungnitz avatar Mar 30 '22 18:03 rjungnitz

Acknowledged. This can be researched for an upcoming milestone based on the number of community reactions 👍.

If you have not added your own 👍, please do so on the originating description.

Ryan Johnson Staff II Solutions Architect | VMware, Inc.

tenthirtyam avatar Mar 30 '22 18:03 tenthirtyam

+1 for adding support for NVME controller

patrikcze avatar Jun 09 '22 08:06 patrikcze

+1 for adding support for NVME controller :thumbsup:

thewayofvikings avatar Jun 24 '22 04:06 thewayofvikings

@patrikcze and @thewayofvikings - upvotes are only counted on the opening description, not comments.

Ryan Johnson Staff II Solutions Architect | VMware, Inc.

tenthirtyam avatar Jun 24 '22 05:06 tenthirtyam

Hi, is there a possibility to plan this feature for 2.4 ? It's a big show stopper for us to use Terraform in prod because nvme is our standard. Would be amazing to have it. thanks

Hogusss avatar Oct 17 '22 10:10 Hogusss

Acknowledged. This can be researched for an upcoming milestone based on the number of community reactions 👍.

If you have not added your own 👍, please do so on the originating description.

Ryan Johnson Staff II Solutions Architect | VMware, Inc.

This seems to be the most upvoted open issue in the repository at the moment, it would be great if it could be reconsidered for inclusion in a release milestone.

tigattack avatar Jan 27 '23 10:01 tigattack

I'm still in favor of adding support for the NVMe controller, but I just wanted to point out that depending on what backend storage is being used, the use of this controller can actually lead to translation back to SCSI, thus negatively impacting performance. So check with your storage vendor before selecting this controller.

rjungnitz avatar Jan 27 '23 17:01 rjungnitz

Any Update ??

JM2K69 avatar May 03 '23 13:05 JM2K69

Any Update ??

Please refer to the attached milestone for this enhancement request.

tenthirtyam avatar May 03 '23 13:05 tenthirtyam

Is there really no update? I know the previous update says to look at the attached milestone, but I see that this was on the 2.3 milestone which has been completed. This is basically putting implementation of terraform on complete hold. It's very concerning to see the lack of meaningful development on this provider.

nathan-owen avatar Sep 20 '23 13:09 nathan-owen

It was added to the backlog in 2022. Not really fair to say why wasn't it part of it 2.3 or even 2.4 when it's part of the backlog.

Remember, you are also allowed to contribute ;)

Elegant996 avatar Sep 21 '23 01:09 Elegant996

Yeah I get that contributions are welcome, but based on the backlog of pull requests, it doesn't seem like there's a lot of movement on this provider besides small bug fixes.

nathan-owen avatar Sep 21 '23 01:09 nathan-owen

any news?

eizedev avatar Mar 22 '24 11:03 eizedev

After a year, this is still the most upvoted open issue in the repository, and by a decent margin too. I must wonder why it's still stuck in the backlog after so long if issues are in fact prioritised by the number of 👍 reacts, as the issue template claims.

Sure, it would be nice if someone from the community would contribute this feature, but I'd still hope that a first-party, "official" provider would be better supported by HashiCorp, especially given that the README explicitly states that such providers are maintained by HashiCorp's Terraform team.

tigattack avatar Mar 22 '24 13:03 tigattack