Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.govmomi permission denied #1076

Closed
gowthamakanthan opened this issue May 9, 2020 · 1 comment · Fixed by #1077
Closed

.govmomi permission denied #1076

gowthamakanthan opened this issue May 9, 2020 · 1 comment · Fixed by #1077
Labels
bug Type: Bug

Comments

@gowthamakanthan
Copy link

gowthamakanthan commented May 9, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

hashicorp/terraform:0.12.24

vSphere Provider Version

v1.18.0

Affected Resource(s)

provider

Terraform Configuration Files

provider "vsphere" {
--
  | version              = "~> 1.18.0"
  | user                 = var.vsphere_user
  | password             = var.vsphere_password
  | vsphere_server       = var.vsphere_server
  | allow_unverified_ssl = true
  | }


# frisbee server ###
--
  |  
  | resource "vsphere_folder" "folder" {
  | path          = var.vsphere_folder
  | type          = "vm"
  | }
  |  
  | resource "vsphere_virtual_machine" "frisbee_vm" {
  | name             = var.frisbee_vm_name
  | count            = var.frisbee_vm_count
  | resource_pool_id = data.vsphere_resource_pool.pool.id
  | datastore_id     = data.vsphere_datastore.datastore.id
  | folder           = var.vsphere_folder
  | # wait_for_guest_ip_timeout  = 0
  |  
  | num_cpus = 2
  | memory   = 5120
  |  
  | #  wait_for_guest_net_timeout = 0
  | guest_id   = data.vsphere_virtual_machine.template.guest_id
  | scsi_type  = data.vsphere_virtual_machine.template.scsi_type
  | annotation = "Built via Terraform"
  |  
  | network_interface {
  | network_id   = data.vsphere_network.network.id
  | adapter_type = data.vsphere_virtual_machine.template.network_interface_types[0]
  | }
  |  
  | disk {
  | label            = "disk0"
  | size             = data.vsphere_virtual_machine.template.disks.0.size
  | eagerly_scrub    = data.vsphere_virtual_machine.template.disks.0.eagerly_scrub
  | thin_provisioned = data.vsphere_virtual_machine.template.disks.0.thin_provisioned
  | }
  |  
  | disk {
  | label       = "swap-disk"
  | size        = 10
  | unit_number = 1
  | }
  |  
  | # Customization of the VM #
  | clone {
  | template_uuid = data.vsphere_virtual_machine.template.id
  |  
  | customize {
  | linux_options {
  | host_name = var.frisbee_vm_name
  | domain    = var.vsphere_domain
  | time_zone = var.vsphere_time_zone
  | }
  |  
  | network_interface {
  | # ipv4_address = "10.1.24.${80 + count.index}"
  | # ipv4_netmask = "24"
  | ipv4_address = cidrhost(var.frisbee_ip_address, var.frisbee_ip_address_start + count.index)
  | ipv4_netmask = element(split("/", var.frisbee_ip_address), 1)
  | }
  |  
  | ipv4_gateway = var.network_gateway
  | }
  | }
  | }

Debug Output

https://gist.github.com/gowthamakanthan/6792fec2145266344b28bbac559001ce

Expected Behavior

Successful deployment.

Steps to Reproduce

Testing the "terraform plan" using the container with Vsphere credentials.

@ghost
Copy link

ghost commented Jun 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant