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

Terraform error trying to use nutanix_virtual_machine data source #30

Closed
lynxx131 opened this issue Feb 9, 2019 · 0 comments · Fixed by #43
Closed

Terraform error trying to use nutanix_virtual_machine data source #30

lynxx131 opened this issue Feb 9, 2019 · 0 comments · Fixed by #43
Labels
v1.1.0 Provider Version 1.1.0

Comments

@lynxx131
Copy link

lynxx131 commented Feb 9, 2019

Describe the bug

When attempting to use the nutanix_virtual_machine data source terraform comes up with the following error:

data "nutanix_virtual_machine" "source_template" {
  vm_id = "2c71429f-bd5f-40c6-9e57-ca9244cf973f"
}
Error: Error refreshing state: 1 error(s) occurred:

* data.nutanix_virtual_machine.source_template: 1 error(s) occurred:

* data.nutanix_virtual_machine.source_template: data.nutanix_virtual_machine.source_template: nutanix_guest_tools.vm_mobility_drivers_installed: '' expected type 'string', got unconvertible type 'bool'

Expected behavior

Data source to return data without above error.

Versions (please complete the following information):

  • OS that is executing Terraform: Ubuntu 18.04
  • Terraform: 0.11.11
  • Nutanix Cluster (Prism Element / AOS): 5.10.0.2
  • Nutanix Prism Central: 5.10.0.1
  • Terraform provider version: Compiled from master (Commit id: 1b0208a)

Additional context

In case its any help I have attached the API JSON output for the relevant VM.

vm_output.txt

@marinsalinas marinsalinas added the v1.1.0 Provider Version 1.1.0 label Apr 26, 2019
yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this issue Nov 9, 2021
abhimutant pushed a commit that referenced this issue Dec 9, 2024
* Feat/v4 recovery points on v4-recovery-points (#26)

* add sdk, create client for Data Protection and add Recovery Point Api Client

* implement get recovery point data source

* implement list recovery points data source

* implement CRUD recovery points resource, update api is not supported for RP

* implement implement recovery points resource acc tests, in progress

* recovery points datasource acc tests.

* recovery points examples

* recovery points docs

* create Vg within RP test cases

* fix provider version on examples

* add test config on test_config_v2.json file

* fix acc test when create vg, remove unnecessary filepath parameter, remove vm uuid from test_config_v2.json file

* Feat/v4 replicate recovery points on v4 recovery points (#27)

* add sdk, create client for Data Protection and add Recovery Point Api Client

* implement get recovery point data source

* implement list recovery points data source

* implement CRUD recovery points resource, update api is not supported for RP

* implement implement recovery points resource acc tests, in progress

* recovery points datasource acc tests.

* recovery points examples

* recovery points docs

* create Vg within RP test cases

* fix provider version on examples

* implement recovery point replicate in progress

* implementation of recovery point replication

* add test config on test_config_v2.json file

* fix acc test when create vg, remove unnecessary filepath parameter, remove vm uuid from test_config_v2.json file

* implement acc test for recovery point replication

* add examples for recovery point replication

* add docs for recovery point replication

* add replicated_rp_ext_id attribute to store the replicated recovery point uuid

* Feat/v4 recovery points on v4 data protection (#28)

* add sdk, create client for Data Protection and add Recovery Point Api Client

* implement get recovery point data source

* implement list recovery points data source

* implement CRUD recovery points resource, update api is not supported for RP

* implement implement recovery points resource acc tests, in progress

* recovery points datasource acc tests.

* recovery points examples

* recovery points docs

* create Vg within RP test cases

* fix provider version on examples

* add test config on test_config_v2.json file

* fix acc test when create vg, remove unnecessary filepath parameter, remove vm uuid from test_config_v2.json file

* fix terraform plan for recovery point, there is no update in the resource just changing in the order of vm_recovery_points and volume_group_recovery_points array

* fix comments on the added DiffSub function

* Feat/v4 recovery point restore on v4-data-protection (#29)

* add sdk, create client for Data Protection and add Recovery Point Api Client

* implement get recovery point data source

* implement list recovery points data source

* implement CRUD recovery points resource, update api is not supported for RP

* implement implement recovery points resource acc tests, in progress

* recovery points datasource acc tests.

* recovery points examples

* recovery points docs

* create Vg within RP test cases

* fix provider version on examples

* add test config on test_config_v2.json file

* fix acc test when create vg, remove unnecessary filepath parameter, remove vm uuid from test_config_v2.json file

* implement recovery point restore resource

* fix terraform plan for recovery point, there is no update in the resource just changing in the order of vm_recovery_points and volume_group_recovery_points array

* fix terraform plan for recovery point, there is no update in the resource just changing in the order of vm_recovery_points and volume_group_recovery_points array

* fix terraform plan for recovery point, there is no update in the resource just changing in the order of vm_recovery_points and volume_group_recovery_points array

* fix comments on the added DiffSub function

* remove commented code

* acc tests for recovery point restore

* examples for recovery point restore

* examples for recovery point restore

* docs for recovery point restore

* Feat/v4 vm recovery point info  (#30)

* add sdk, create client for Data Protection and add Recovery Point Api Client

* implement get recovery point data source

* implement list recovery points data source

* implement CRUD recovery points resource, update api is not supported for RP

* implement implement recovery points resource acc tests, in progress

* recovery points datasource acc tests.

* recovery points examples

* recovery points docs

* create Vg within RP test cases

* fix provider version on examples

* add test config on test_config_v2.json file

* fix acc test when create vg, remove unnecessary filepath parameter, remove vm uuid from test_config_v2.json file

* implement recovery point restore resource

* fix terraform plan for recovery point, there is no update in the resource just changing in the order of vm_recovery_points and volume_group_recovery_points array

* fix terraform plan for recovery point, there is no update in the resource just changing in the order of vm_recovery_points and volume_group_recovery_points array

* fix terraform plan for recovery point, there is no update in the resource just changing in the order of vm_recovery_points and volume_group_recovery_points array

* fix comments on the added DiffSub function

* remove commented code

* acc tests for recovery point restore

* examples for recovery point restore

* examples for recovery point restore

* docs for recovery point restore

* implement vm recovery point info

* Acc tests for vm recovery point info

* examples for vm recovery point info

* docs for vm recovery point info

* fix links schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.1.0 Provider Version 1.1.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants