-
Notifications
You must be signed in to change notification settings - Fork 454
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
Unable to execute a terraform plan #2057
Comments
Hello, T0myC! 🖐 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. |
A redacted. but similar example of the datacenter name would need to be provided. │ Error: invalid character '<' looking for beginning of value
│
│ with provider["registry.terraform.io/hashicorp/vsphere"],
│ on main.tf line 10, in provider "vsphere":
│ 10: provider "vsphere" { Looks like an issue in your variable name. |
My variable var.server is "nameserver.ovh.com". |
More details are ideal for assistance. Here are some examples of mine that may help in case it's syntax related. https://github.com/tenthirtyam/terrafom-examples-vmware/tree/main/vsphere/vsphere-virtual-machine |
Sorry but I don't know which details I could add because of the simplicity of the test ... It seems like the connection with the vSphere is OK because when I enter a wrong password or a wrong server name, I have the error saying : error setting up new vSphere SOAP client : Incorrect password/username or no such host. It's like the API return HTML (so beginning by '<') and terraform was expecting something else. |
Try the same connection with govc in govmomi. |
When I try the same connection with govc, it works properly |
Anyone has an idea please ? |
Hey! All routes are not whitelisted with ovh 2FA! You need to setup a whitelist. Please read: |
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. |
Community Guidelines
Terraform
v1.6.3
Terraform Provider
v2.5.1
VMware vSphere
v7.0
Description
I try to create VM on a vSphere server using terraform.
In order to test my connection with my server, I try to get the content of the datacenter by using the vsphere_datacenter DataSource but it doesn't work.
Affected Resources or Data Sources
data/vsphere_datacenter
Terraform Configuration
Debug Output
│ Error: invalid character '<' looking for beginning of value
│
│ with provider["registry.terraform.io/hashicorp/vsphere"],
│ on main.tf line 10, in provider "vsphere":
│ 10: provider "vsphere" {
Panic Output
No response
Expected Behavior
Get the informations about cluster
Actual Behavior
Get the error : "invalid character '<' looking for beginning of value"
Steps to Reproduce
Copy the code above and execute a terraform plan.
Environment Details
The vSphere server is in OVH private cloud secure by 2FA.
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: