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

Unable to create a vnic #2

Open
lordsaibat opened this issue Dec 13, 2020 · 1 comment
Open

Unable to create a vnic #2

lordsaibat opened this issue Dec 13, 2020 · 1 comment

Comments

@lordsaibat
Copy link

Unable to create a vnic and attach it to the example.

Here is my sample code:

resource "antserver_vnics" "antlet1_vnic" {
  model = "virtio"
  type = "bridge"
  source ="br0"
  #mac-address = "string"
}

The error message is:


Error: expected a response body but response body received was empty for request = 'POST https://batserver.antsle.us/api/antlets/%7Bantlet-name%7D/vnics HTTP/1.1'. Response = '404 Not Found'

  on main.tf line 28, in resource "antserver_vnics" "antlet1_vnic":
  28: resource "antserver_vnics" "antlet1_vnic" {

@lordsaibat
Copy link
Author

To add more context. It seems that when terraform uses the openapi with the swagger file it has issues with variable names in the URL portion.

Here is the snippet of the output from the openapi executable

2020/12/13 14:04:12 [INFO] resource 'antserver_vnics' successfully registered in the provider (time:4.055ms)
2020/12/13 14:04:12 [DEBUG] GetResourceSchema hit the cache for 'vnics'
2020/12/13 14:04:12 [INFO] data source instance 'antserver_vnics_instance' successfully registered in the provider (time:5.1865ms)
2020/12/13 14:04:12 [DEBUG] registered new property 'api_key' (required=true) into provider schema
2020/12/13 14:04:12 [DEBUG] found duplicate header '' for an operation, ignoring it as it has been registered already
2020/12/13 14:04:12 [DEBUG] found duplicate header 'antlet-name' for an operation, ignoring it as it has been registered already
2020/12/13 14:04:12 [DEBUG] found duplicate header 'TemplateName' for an operation, ignoring it as it has been registered already

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

1 participant