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

vsphere local account with special characters in password #2302

Closed
4 tasks done
Bugs5382 opened this issue Nov 20, 2024 · 3 comments
Closed
4 tasks done

vsphere local account with special characters in password #2302

Bugs5382 opened this issue Nov 20, 2024 · 3 comments

Comments

@Bugs5382
Copy link

Bugs5382 commented Nov 20, 2024

Community Guidelines

  • I have read and agree to the HashiCorp Community Guidelines .
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Terraform

v1.9.8

Terraform Provider

v2.10.0

VMware vSphere

7.x.x

Description

When working on creating a terraform setup to build VMs, I ran into an issue with conneting to Vsphere to start with a local account. I have verfied we can connect to the port of our Vmware vsphere API/SOAP port. However, we require special cahacters in our password:

image

Even with a password like (this is not the password) CgnpinJemPgzwP5rpbk! (with the ! at the end) in the Terraform logs I get:

Error: error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password.

Affected Resources or Data Sources

provider/vsphere

Terraform Configuration

provider "vsphere" {
  user                 = var.vsphere_user
  password             = var.vsphere_password
  api_timeout          = 10
  vsphere_server       = var.vsphere_server
  allow_unverified_ssl = true
}

variable "vsphere_user" {
  default = "[email protected]"
}

variable "vsphere_password" {
  default = "CgnpinJemPgzwP5rpbk!`"
}

variable "vsphere_server" {
  default = "<Server Removed>"
}

Debug Output

2024-11-20T15:30:12.553Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-11-20T15:30:12.556Z [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/infobloxopen/infoblox/2.8.0/linux_amd64/terraform-provider-infoblox_v2.8.0 id=322298
2024-11-20T15:30:12.556Z [DEBUG] provider: plugin exited
2024-11-20T15:30:15.409Z [ERROR] provider.terraform-provider-vsphere_v2.10.0_x5: Response contains error diagnostic: diagnostic_severity=ERROR diagnostic_summary="error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password." tf_req_id=cb2e9a2f-1db4-0c91-3c79-85fe15066037 tf_rpc=Configure @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail="" tf_proto_version=5.6 tf_provider_addr=provider timestamp=2024-11-20T15:30:15.408Z
2024-11-20T15:30:15.409Z [ERROR] vertex "module.test.module.controllers.provider[\"registry.terraform.io/hashicorp/vsphere\"]" error: error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password.
2024-11-20T15:30:15.424Z [ERROR] provider.terraform-provider-vsphere_v2.10.0_x5: Response contains error diagnostic: tf_provider_addr=provider diagnostic_detail="" diagnostic_severity=ERROR diagnostic_summary="error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password." tf_proto_version=5.6 tf_rpc=Configure @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto tf_req_id=51b02f39-ba13-7d09-729a-e95382bfc662 timestamp=2024-11-20T15:30:15.423Z
2024-11-20T15:30:15.424Z [ERROR] vertex "module.prod.module.workers.provider[\"registry.terraform.io/hashicorp/vsphere\"]" error: error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password.
2024-11-20T15:30:15.426Z [ERROR] provider.terraform-provider-vsphere_v2.10.0_x5: Response contains error diagnostic: diagnostic_severity=ERROR tf_provider_addr=provider tf_req_id=b81eb3c4-aa0a-25c3-3ac1-870c177bba7c @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" tf_rpc=Configure @module=sdk.proto diagnostic_summary="error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password." tf_proto_version=5.6 timestamp=2024-11-20T15:30:15.426Z
2024-11-20T15:30:15.427Z [ERROR] vertex "module.test.module.workers.provider[\"registry.terraform.io/hashicorp/vsphere\"]" error: error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password.
2024-11-20T15:30:16.417Z [ERROR] provider.terraform-provider-vsphere_v2.10.0_x5: Response contains error diagnostic: diagnostic_severity=ERROR tf_req_id=caacae2d-4b49-ffd9-61b3-dae26d9e7aa1 @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail="" diagnostic_summary="error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password." tf_proto_version=5.6 tf_provider_addr=provider tf_rpc=Configure timestamp=2024-11-20T15:30:16.417Z
2024-11-20T15:30:16.418Z [ERROR] vertex "module.prod.module.controllers.provider[\"registry.terraform.io/hashicorp/vsphere\"]" error: error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password.
2024-11-20T15:30:16.419Z [WARN]  Planning encountered errors, so plan is not applyable
2024-11-20T15:30:16.419Z [INFO]  backend/local: plan operation completed
2024-11-20T15:30:16.430Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-11-20T15:30:16.431Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-11-20T15:30:16.431Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-11-20T15:30:16.436Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-11-20T15:30:16.440Z [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/vsphere/2.10.0/linux_amd64/terraform-provider-vsphere_v2.10.0_x5 id=322319
2024-11-20T15:30:16.440Z [DEBUG] provider: plugin exited
2024-11-20T15:30:16.440Z [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/vsphere/2.10.0/linux_amd64/terraform-provider-vsphere_v2.10.0_x5 id=322312
2024-11-20T15:30:16.440Z [DEBUG] provider: plugin exited
2024-11-20T15:30:16.440Z [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/vsphere/2.10.0/linux_amd64/terraform-provider-vsphere_v2.10.0_x5 id=322291
2024-11-20T15:30:16.440Z [DEBUG] provider: plugin exited
2024-11-20T15:30:16.442Z [INFO]  provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/vsphere/2.10.0/linux_amd64/terraform-provider-vsphere_v2.10.0_x5 id=322305
2024-11-20T15:30:16.442Z [DEBUG] provider: plugin exited

Panic Output

No response

Expected Behavior

I would exepecet that if special characters are required, that they work without any issue.

Actual Behavior

Fails

Steps to Reproduce

Try using a local SSO account with special characters.

Environment Details

No response

Screenshots

No response

References

No response

@Bugs5382 Bugs5382 added bug Type: Bug needs-triage Status: Issue Needs Triage labels Nov 20, 2024
Copy link

Hello, Bugs5382! 🖐

Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.

If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.

@Bugs5382
Copy link
Author

Fixed issue,

@tenthirtyam tenthirtyam removed bug Type: Bug needs-triage Status: Issue Needs Triage labels Nov 25, 2024
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants