Skip to content
This repository was archived by the owner on Dec 9, 2020. It is now read-only.
This repository was archived by the owner on Dec 9, 2020. It is now read-only.

Private Custom Image with SoftLayer not working #2

Description

@hashibot

This issue was originally opened by @pat610 as hashicorp/terraform#8734. It was migrated here as part of the provider split. The original body of the issue is below.


I've used the SoftLayer API to get the globalIdentifier of one of my private custom images. However, when I specify that image and run terraform apply I get an error:

softlayer_virtual_guest.terraform-sample-BDTGroup: Creating...
backend_vlan_id: "" => "559104"
cpu: "" => "8"
dedicated_acct_host_only: "" => "false"
disks.#: "" => "1"
disks.0: "" => "100"
domain: "" => "somedomain.com"
frontend_vlan_id: "" => "559102"
hourly_billing: "" => "true"
image: "" => "4b36e2f4-02f7-4830-8dd2-c37988c76783"
ipv4_address: "" => ""
ipv4_address_private: "" => ""
local_disk: "" => "false"
name: "" => "terraform-vm"
private_network_only: "" => "false"
public_network_speed: "" => "1000"
ram: "" => "32768"
region: "" => "tor01"
Error applying plan:

1 error(s) occurred:

  • softlayer_virtual_guest.terraform-sample-BDTGroup: Error creating virtual guest: softlayer-go: could not SoftLayer_Virtual_Guest#createObject, HTTP error code: '500'

Terraform Version

Terraform v0.7.3

Terraform Configuration Files

resource "softlayer_virtual_guest" "terraform-sample-BDTGroup" {
    name = "terraform-vm"
    domain = "somedomain.com"
    image = "4b36e2f4-02f7-4830-8dd2-c37988c76783"
    region = "tor01"
    public_network_speed = 1000
    hourly_billing = true
    private_network_only = false
    cpu = 8
    ram = 32768
    disks = [100]
    dedicated_acct_host_only = false
    local_disk = false
    frontend_vlan_id = 559102
    backend_vlan_id = 559104    
}

Expected Behavior

Get a VM with my custom image

Actual Behavior

Error applying plan:

1 error(s) occurred:

  • softlayer_virtual_guest.terraform-sample-BDTGroup: Error creating virtual guest: softlayer-go: could not SoftLayer_Virtual_Guest#createObject, HTTP error code: '500'

Steps to Reproduce

  1. terraform apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions