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

ddcloud_networkdomain.xxx: XML syntax error on line 4: invalid UTF-8 #136

Open
clgx-sm opened this issue Aug 9, 2019 · 2 comments
Open

Comments

@clgx-sm
Copy link

clgx-sm commented Aug 9, 2019

Hi there,
I'm fairly new to Terraform but I have already successfully run some plans on VmWare infrastructures. However, trying to use dd-cloud-compute-terraform, I got an issue that I was not able to solve reading the documentation of searching in Google.

I tried to create a simple plan to spin up a new Network Domain:

provider "ddcloud" {
  "username"           = "myusername"
  "password"           = "${var.admin_password}"
  "region"             = "AU"
}

# Network Domain
resource "ddcloud_networkdomain" "prod-au" {
  name          = "Sydney Location"
  description   = "My Sydney domain"
  plan          = "STANDARD"
  datacenter    = "AU9"
}

The terraform plan works well, nonetheless the terraform apply gave me this error message:

Error: Error applying plan:
1 error occurred:

  • ddcloud_networkdomain.xxx: 1 error occurred:
  • ddcloud_networkdomain.xxx: XML syntax error on line 4: invalid UTF-8

We have tried with both Terraform v0.11.14 and Terraform v0.11.13, as the latest Terraform version is not supported because the API used by the provider.ddcloud is not compatible.

As we don’t write any XML file (I only have two files, one with my password in it and the other one with the small plan above), I guess it’s an issue with the terraform-provider-ddcloud v2.2.2.

Do you guys have an idea of what I did wrong?

Thank you in advance!

@c-mckenzie
Copy link

Hi,

I think you'll find the problem is the problem is caused by the value you've set for the Network Domain Plan attribute as "STANDARD" isn't a valid option

The valid options for the plan attribute are "ESSENTIALS", "ADVANCED" or "ENTERPRISE"

The plan attribute is also optional so if simply don't include it then it should default to ESSENTIALS

@clgx-sm
Copy link
Author

clgx-sm commented Aug 12, 2019

Hi @c-mckenzie and thank you for have taking some time to reply.
I just try using ENTERPRISE and unfortunately, the error message is the same.

1 error occurred:

  • ddcloud_networkdomain.xxx: 1 error occurred:
  • ddcloud_networkdomain.xxx: XML syntax error on line 4: invalid UTF-8

Here the current .tf file:

provider "ddcloud" {
  "username"           = "myusername"
  "password"           = "${var.admin_password}"
  "region"             = "AU"
}

# Network
resource "ddcloud_networkdomain" "xxx" {
  name          = "Test Location"
  description   = "My test environment"
  plan          = "ENTERPRISE"
  datacenter    = "AU9"
}

I downloaded and used terraform_0.11.14_linux_amd64 version for this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants