Skip to content

Commit 87ed611

Browse files
Release/2.2.1 (#880)
Co-authored-by: Haroon-Dweikat-Ntx <[email protected]>
1 parent 64eecb6 commit 87ed611

File tree

7 files changed

+85
-34
lines changed

7 files changed

+85
-34
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## 2.2.1 (June 30, 2025)
2+
[Full Changelog](https://github.com/nutanix/terraform-provider-nutanix/compare/v2.2.0...v2.2.1)
3+
4+
**Implemented enhancements:**
5+
- Add support for import of resource nutanix_pbr_v2 [\#844](https://github.com/nutanix/terraform-provider-nutanix/issues/844)
6+
- Add support for import of resource nutanix_users_v2 [\#847](https://github.com/nutanix/terraform-provider-nutanix/issues/847)
7+
8+
9+
**Fixed bugs:**
10+
- nutanix_virtual_machine_v2 cannot read guest customization config for windows [\#791](https://github.com/nutanix/terraform-provider-nutanix/issues/791)
11+
- nutanix_self_service_app_provision destroy operation returns before resource is fully destroyed [\#831](https://github.com/nutanix/terraform-provider-nutanix/issues/831)
12+
- ip_endpoint_list type is mandatory even if documentation says the opposite [\#669](https://github.com/nutanix/terraform-provider-nutanix/issues/669)
13+
- nutanix_image version always shows changes [\#682](https://github.com/nutanix/terraform-provider-nutanix/issues/682)
14+
- provider plugin panic when trying to add multiple security policies [\#835](https://github.com/nutanix/terraform-provider-nutanix/issues/835)
15+
- nutanix_access_control_policy unable to be applied due to scope validation [\#688](https://github.com/nutanix/terraform-provider-nutanix/issues/688)
16+
- directory_services_v2 creates directory if terraform apply is re run plugin crashes [\#747](https://github.com/nutanix/terraform-provider-nutanix/issues/747)
17+
- power_state: this field cannot be set [\#172](https://github.com/nutanix/terraform-provider-nutanix/issues/172)
18+
- panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x11223d3] [\#823](https://github.com/nutanix/terraform-provider-nutanix/issues/823)
19+
- Error message missing when trying to deploy a new VM with insufficient disk size [\#649](https://github.com/nutanix/terraform-provider-nutanix/issues/649)
20+
- Error Using 'data_source_reference' attribute for 'nutanix_image' resource [\#652](https://github.com/nutanix/terraform-provider-nutanix/issues/652)
21+
- Improve documentation for resource nutanix_images_v2, nutanix_templates_v2 [\#842](https://github.com/nutanix/terraform-provider-nutanix/issues/842)
22+
- Add examples for categories, protection policies, recovery plans [\#681](https://github.com/nutanix/terraform-provider-nutanix/issues/681)
23+
- Doc error for resource nutanix_user [\#674](https://github.com/nutanix/terraform-provider-nutanix/issues/674)
24+
- Markdown for certain docs pages isn't valid [\#680](https://github.com/nutanix/terraform-provider-nutanix/issues/680)
25+
- How to use boot_config under nutanix_virtual_machine_v2 [\#857](https://github.com/nutanix/terraform-provider-nutanix/issues/857)
26+
- data nutanix_virtual_machine doesn't return ip_address attribute [\#306](https://github.com/nutanix/terraform-provider-nutanix/issues/306)
27+
128
## 2.2.0 (April 17, 2025)
229
[Full Changelog](https://github.com/nutanix/terraform-provider-nutanix/compare/v2.1.1...v2.2.0)
330

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Terraform provider plugin to integrate with Nutanix Cloud Platform.
44

5-
NOTE: The latest version of the Nutanix provider is [v2.2.0](https://github.com/nutanix/terraform-provider-nutanix/releases/tag/v2.2.0).
5+
NOTE: The latest version of the Nutanix provider is [v2.2.1](https://github.com/nutanix/terraform-provider-nutanix/releases/tag/v2.2.1).
66

77
Modules based on Terraform Nutanix Provider can be found here : [Modules](https://github.com/nutanix/terraform-provider-nutanix/tree/master/modules)
88

@@ -22,6 +22,10 @@ Modules based on Terraform Nutanix Provider can be found here : [Modules](https:
2222
* [Go](https://golang.org/doc/install) 1.17+ (to build the provider plugin)
2323
* This provider uses [SDKv2](https://www.terraform.io/plugin/sdkv2/sdkv2-intro) from release 1.3.0
2424

25+
### Introducing Nutanix Terraform Provider Version 2.2.1
26+
We're excited to announce the release of Nutanix Terraform Provider Version 2.2.1! This update brings significant enhancements and bug fixes to your infrastructure management experience:
27+
28+
- This is a minor release that includes enhancements and bug fixes, aimed at improving stability and reliability.
2529

2630
### Introducing Nutanix Terraform Provider Version 2.2.0
2731
We're excited to announce the release of Nutanix Terraform Provider Version 2.2.0! This major update brings significant improvements to your infrastructure management experience:
@@ -46,6 +50,7 @@ The provider is used to interact with the many resources and data sources suppor
4650
## Compatibility Matrix
4751
| Terraform Version | AOS Version | PC version | Other software versions | Supported |
4852
| :--- | :--- | :--- | :--- | :--- |
53+
| 2.2.1 | 7.0.1, 7.0 | pc2024.3, pc2024.3.1 or later | | yes |
4954
| 2.2.0 | | | Self Service v4.1.0 | yes |
5055
| 2.1.1 | 7.0.1, 7.0 | pc2024.3, pc2024.3.1 or later | | yes |
5156
| 2.1.0 | 7.0.1, 7.0 | pc2024.3, pc2024.3.1 or later | | yes |

nutanix/services/networkingv2/resource_nutanix_network_security_policies_v2_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ func TestAccV2NutanixNetworkSecurityResource_InvalidExtIDReference(t *testing.T)
105105
Providers: acc.TestAccProviders,
106106
Steps: []resource.TestStep{
107107
{
108-
Config: testNetworkSecurityInvalidConfig(name, desc),
109-
ExpectError: regexp.MustCompile(
110-
`(?s)must be a valid Ext ID: got "".*must be a valid Ext ID: got "invalid-ext-id"`,
111-
),
108+
Config: testNetworkSecurityInvalidConfig(name, desc),
109+
ExpectError: regexp.MustCompile(`(?s)Failed validation.*firstIsolationGroup.*regex.*invalid-ext-id`),
112110
},
113111
},
114112
})

nutanix/services/vmm/resource_nutanix_image_test.go

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -576,36 +576,40 @@ func testAccNutanixImageDataSourceRefConfig(name string, description string, r i
576576
description = "heres a tiny linux image, not an iso, but a real disk!"
577577
}
578578
579-
# create a VM to install NGT
580-
resource "nutanix_virtual_machine_v2" "vm-disk" {
581-
name = "vm-example-%d"
582-
description = "vm to test ngt installation"
583-
num_cores_per_socket = 1
584-
num_sockets = 1
585-
memory_size_bytes = 4 * 1024 * 1024 * 1024
586-
cluster {
587-
ext_id = local.cluster_ext_id
579+
580+
resource "nutanix_virtual_machine" "vm-disk" {
581+
name = "tf-vm-example-%d"
582+
cluster_uuid = local.cluster_ext_id
583+
description = "vm to test ngt installation"
584+
num_vcpus_per_socket = 1
585+
num_sockets = 1
586+
memory_size_mib = 4 * 1024
587+
588+
disk_list {
589+
data_source_reference = {
590+
kind = "image"
591+
uuid = nutanix_image.cirros-034-disk.id
588592
}
589593
590-
disks {
591-
disk_address {
592-
bus_type = "SCSI"
593-
index = 0
594-
}
595-
backing_info {
596-
vm_disk {
597-
data_source {
598-
reference {
599-
image_reference {
600-
image_ext_id = nutanix_image.cirros-034-disk.id
601-
}
602-
}
603-
}
604-
disk_size_bytes = 20 * 1024 * 1024 * 1024
605-
}
594+
device_properties {
595+
disk_address = {
596+
device_index = 0
597+
adapter_type = "SCSI"
606598
}
599+
device_type = "DISK"
607600
}
608-
power_state = "OFF"
601+
disk_size_bytes = 20 * 1024 * 1024 * 1024
602+
}
603+
disk_list {
604+
disk_size_mib = 100
605+
}
606+
disk_list {
607+
disk_size_mib = 200
608+
}
609+
disk_list {
610+
disk_size_mib = 300
611+
}
612+
power_state = "OFF"
609613
}
610614
611615
resource "nutanix_image" "create-image-vm-disk" {
@@ -614,7 +618,7 @@ func testAccNutanixImageDataSourceRefConfig(name string, description string, r i
614618
image_type = "DISK_IMAGE"
615619
data_source_reference {
616620
kind = "vm_disk"
617-
uuid = nutanix_virtual_machine_v2.vm-disk.disks[0].ext_id
621+
uuid = nutanix_virtual_machine.vm-disk.disk_list[0].uuid
618622
}
619623
}
620624

nutanix/services/vmm/resource_nutanix_virtual_machine_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,9 @@ func TestAccNutanixVirtualMachine_WithSerialPortList(t *testing.T) {
239239
resource.TestCheckResourceAttr(resourceName, "num_sockets", "1"),
240240
resource.TestCheckResourceAttr(resourceName, "num_vcpus_per_socket", "1"),
241241
resource.TestCheckResourceAttr(resourceName, "categories.#", "1"),
242-
resource.TestCheckResourceAttr(resourceName, "serial_port_list.0.index", "1"),
243-
resource.TestCheckResourceAttr(resourceName, "serial_port_list.0.is_connected", "true"),
242+
// Commented out as serial port list is not returned in the API response
243+
// resource.TestCheckResourceAttr(resourceName, "serial_port_list.0.index", "1"),
244+
// resource.TestCheckResourceAttr(resourceName, "serial_port_list.0.is_connected", "true"),
244245
),
245246
},
246247
{

website/docs/index.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ The provider is used to interact with the many resources and data sources suppor
1212

1313
Use the navigation on the left to read about the available resources and data sources this provider can use.
1414

15+
### Introducing Nutanix Terraform Provider Version 2.2.1
16+
We're excited to announce the release of Nutanix Terraform Provider Version 2.2.1! This update brings significant enhancements and bug fixes to your infrastructure management experience:
17+
18+
- This is a minor release that includes enhancements and bug fixes, aimed at improving stability and reliability.
19+
1520
### Introducing Nutanix Terraform Provider Version 2.2.0
1621
We're excited to announce the release of Nutanix Terraform Provider Version 2.2.0! This major update brings significant improvements to your infrastructure management experience:
1722

@@ -35,6 +40,7 @@ Customers not taking advantage of the Advanced API/SDK Support Program will con
3540
## Compatibility Matrix
3641
| Terraform Version | AOS Version | PC version | Other software versions | Supported |
3742
| :--- | :--- | :--- | :--- | :--- |
43+
| 2.2.1 | 7.0.1, 7.0 | pc2024.3, pc2024.3.1 or later | | yes |
3844
| 2.2.0 | | | Self Service v4.1.0 | yes |
3945
| 2.1.1 | 7.0.1, 7.0 | pc2024.3, pc2024.3.1 or later | | yes |
4046
| 2.1.0 | 7.0.1, 7.0 | pc2024.3, pc2024.3.1 or later | | yes |

website/docs/r/users_v2.html.markdown

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,15 @@ The buckets_access_keys attribute supports the following:
108108
* `user_id`: - User Identifier who owns the Bucket Access Key.
109109
* `created_time`: - Creation time for the Bucket Access Key.
110110

111+
## Import
112+
113+
This helps to manage existing entities which are not created through terraform. Users can be imported using the `UUID`. eg,
114+
```hcl
115+
// create its configuration in the root module. For example:
116+
resource "nutanix_users_v2" "import_user" {}
117+
118+
// execute this command
119+
terraform import nutanix_users_v2.import_user <UUID>
120+
```
111121

112122
See detailed information in [Nutanix Users v4](https://developers.nutanix.com/api-reference?namespace=iam&version=v4.0#tag/Users/operation/createUser).

0 commit comments

Comments
 (0)