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

Can't apply just a single resource "nutanix_image" #18

Closed
guglez opened this issue Jan 15, 2019 · 4 comments
Closed

Can't apply just a single resource "nutanix_image" #18

guglez opened this issue Jan 15, 2019 · 4 comments
Assignees
Labels
v1.1.0 Provider Version 1.1.0

Comments

@guglez
Copy link

guglez commented Jan 15, 2019

Hi @JonKohler ,

I'm doing initial configuration of terraform with nutanix. I defined only one resource:

resource "nutanix_image" "cirros-034-disk" {
    name        = "cirros-034-disk"
    source_uri  = "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
    description = "heres a tiny linux image, not an iso, but a real disk!"
}

I expect that terraform will create an image on my cluster.
However I have this error:

Error: Error applying plan:

1 error(s) occurred:

* module.nutanix.nutanix_image.cirros-034-disk: 1 error(s) occurred:

* nutanix_image.cirros-034-disk: failed to read image with name(cirros-034-disk): json: cannot unmarshal string into Go struct field MessageResource.details of type map[string]interface {}

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

I also can't create a vm from example config. Could you please take a look here?

@olljanat
Copy link
Contributor

olljanat commented Feb 1, 2019

@guglez which Prism Central version you are using?

It looks to be that CE version 2018.05.17 does not have this issue but paid version 5.10.0.1 have.

@marinsalinas marinsalinas self-assigned this Mar 15, 2019
@marinsalinas
Copy link
Contributor

@guglez which Prism Central version you are using?

It looks to be that CE version 2018.05.17 does not have this issue but paid version 5.10.0.1 have.

@guglez Can you share the prism central version that you are using?

Thanks

@guglez
Copy link
Author

guglez commented Apr 2, 2019

Hi @marinsalinas

Right now I do not have PC at all. It died because of the time/ntp issue and I need to recreate it. I'm working on this with Nutanix support.

@marinsalinas
Copy link
Contributor

Well, closed due is not in the scope.

@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 added a commit that referenced this issue Dec 9, 2024
* Feat/1.9.3 (#633)

Co-authored-by: Abhishekism9450 <[email protected]>
Co-authored-by: Deepak Muley <[email protected]>
Co-authored-by: Abhishek <[email protected]>

* Feat/1.9.4 (#645)

Co-authored-by: Frederic M <[email protected]>
Co-authored-by: ArtemProt <[email protected]>
Co-authored-by: Abhishekism9450 <[email protected]>

* new tf design

* import changes

* package name change for fc

* package name for fc is foundationCentral

* package name to foundationcentral

* fixes around acctest

* examples folder

* v4 design

* some fixes after merging

* datasource for subnets,vpcs, fips

* datasource for pbrs

* lint fixes. go error (gomnd, gosimple, golint)

* go checks, magic numbers(gomnd)

* fix config testcase as base client will differ in sdks

* datadource for clusters

* lint fixes

* resource for subnets

* adding go mod for public repo

* lint fixes

* lint fix

* lint fix for client name

* test config as client will be different for sdks

* adding crud for fips

* address groups v4

* service groups

* resource for service groups

* crud for service groups

* CRUD for address groups

* data source for network security

* CRUD for network security

* microseg sdk pointing to internals

* datasource for directory services

* CRUD for directory service

* datasource for saml

* CRUD for idp

* delete Operation for directory service

* CRUD for user groups

* datasource for categories

* Crud and tcs for categories

* crud & test for images

* sdk versioning

* templates datasource

* datasource for template versions

* deploy templates

* spec for vms

* create Ops

* CUD ops done

* Get VMs

* VMs

* CRUD for vm disks

* CRUD/ds serial ports

* cdrom CRUD

* insert/eject cdrom

* vm actions power

* vm shutdown actions

* CRUD gpus

* missing return in vms

* vm clone resource

* tcs for vm resource

* tcs for vms

* acc for images

* adding more tcs

* Vms disk Tcs

* tcs for serial port

* resource tcs for cdrom

* TCs for cdroms

* vm clone example and docs

* tcs for vm power state

* power state testcase

* shutdown Tcs

* Adding TCs for Gpus

* vm clone testcases

* fic for argument naming

* resource and tests for update guest customization for next boot

* guest customization update doc and example

* cluster v4 resource

* fix for b2 version

* data source for storage containers and storage container  modules

* implement storage containers resources, Create Operation done

* fix create operation for storage containers, implement Delete Operation

* implement Update  Operation for storage containers

* acc tests for storage containers

* storage container docs for resource and data source

* test_config_v4 file for acc tests

* extract storage containers into separate package, use new prism sdk instead of internal sdk

* implement data source for storage stats info

* set the default values for sampling interval and stat type attributes, convert timestamp to string in the flattenValueTimestamp  method

* Revert "set the default values for sampling interval and stat type attributes, convert timestamp to string in the flattenValueTimestamp  method"

This reverts commit 2abc8b3b2dc11c453aaa775a0f84ffeaf677246a.

* set the default values for sampling interval and stat type attributes, convert timestamp to string in the flattenValueTimestamp  method

* acc test for storage stat info

* rename from storage stats to storage container stat

* add test case to validate required args

* docs for storage container stats info

* use internal prism sdk

* use internal prism sdk

* set the default values for sampling interval and stat type attributes, convert timestamp to string in the flattenValueTimestamp  method

* exclude vendor

* remove all other modules and  sdk, update provider resource/data maps, change the name from v4 to v2

* remove all other modules and  sdk, update provider resource/data maps, change the name from v4 to v2

* change the storage container stats info from v4 to v2, add examples

* change the test_config_v4 from v4 to v2

* Revert "exclude vendor"

This reverts commit 5728f1196ec8c29ed0382b757d22342fe64fe89e.

---------

Co-authored-by: Abhishek Chaudhary <[email protected]>
Co-authored-by: Abhishekism9450 <[email protected]>
Co-authored-by: Deepak Muley <[email protected]>
Co-authored-by: Abhishek <[email protected]>
Co-authored-by: Frederic M <[email protected]>
Co-authored-by: ArtemProt <[email protected]>
Co-authored-by: Gevorg <[email protected]>
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

No branches or pull requests

3 participants