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

azurerm_managed_lustre_file_system - when export jobs are enabled json: cannot unmarshal number 100.0 into Go struct field AmlFilesystemArchiveStatus.properties.hsm.archiveStatus.status.percentComplete of type int64 #28436

Open
1 task done
katbyte opened this issue Jan 7, 2025 · 0 comments

Comments

@katbyte
Copy link
Collaborator

katbyte commented Jan 7, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.x

AzureRM Provider Version

3.117.0

Affected Resource(s)/Data Source(s)

azurerm_managed_lustre_file_system

Terraform Configuration Files

terraform {
  required_providers {
    azurerm = {
      source = "hashicorp/azurerm"
      version = "3.117.0"
    }
  }
}

provider "azurerm" {
features { }
}


resource "azurerm_resource_group" "example" {
  name     = "example-resources-lustre"
  location = "West Europe"
}

resource "azurerm_virtual_network" "example" {
  name                = "example-vnet"
  address_space       = ["10.0.0.0/16"]
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_subnet" "example" {
  name                 = "example-subnet"
  resource_group_name  = azurerm_resource_group.example.name
  virtual_network_name = azurerm_virtual_network.example.name
  address_prefixes     = ["10.0.2.0/24"]
}

resource "azurerm_managed_lustre_file_system" "example" {
  name                   = "example-amlfs-abhinav"
  resource_group_name    = azurerm_resource_group.example.name
  location               = azurerm_resource_group.example.location
  sku_name               = "AMLFS-Durable-Premium-500"
  subnet_id              = azurerm_subnet.example.id
  storage_capacity_in_tb = 8
  zones                  = ["1"]

tags = {
  name = "azurerm-managed-lustre-file-system"
}

hsm_setting {
      container_id         = "/subscriptions/x/resourceGroups/example-resources-lustre/providers/Microsoft.Storage/storageAccounts/testing1234/blobServices/default/containers/new-container"
      logging_container_id = "/subscriptions/x/resourceGroups/example-resources-lustre/providers/Microsoft.Storage/storageAccounts/testing1234/blobServices/default/containers/logging-container"
  }

  maintenance_window {
    day_of_week     = "Saturday"
    time_of_day_in_utc = "07:30"
  }
}

resource "azurerm_storage_account" "this" {
  name                            = "testing1234"
  resource_group_name             = "example-resources-lustre"
  location                        = "West Europe"
  account_tier                    = "Standard"
  account_replication_type        = "LRS"
  account_kind                    = "BlobStorage"
tags = {
  name = "storage-account"
}
 
}
resource "azurerm_storage_account_network_rules" "config" {
  storage_account_id         = azurerm_storage_account.this.id
  default_action             = "Allow"
}
resource "azurerm_storage_container" "example" {
  name                  = "new-container"
  storage_account_name  = azurerm_storage_account.this.name
}
resource "azurerm_storage_container" "example-logging" {
  name                  = "logging-container"
  storage_account_name  = azurerm_storage_account.this.name
}


### Debug Output/Panic Output

```shell
Error: retrieving Aml Filesystem (Subscription: "9f9b362c-0ced-42f9-8327-987494fd7c26" Resource Group Name: "example-resources-lustre" Aml Filesystem Name: "example-amlfs-abhinav"): unmarshaling response body: json: cannot unmarshal number 100.0 into Go struct field AmlFilesystemArchiveStatus.properties.hsm.archiveStatus.status.percentComplete of type int64


### Expected Behaviour

one can run an export and not break the terraform resource

### Actual Behaviour

_No response_

### Steps to Reproduce

After creating the resource, create a new job of the type export in the Blob integration

Once this export job is completed, the archive status property of the resource gets updated as mentioned in screenshot 

The subsequent terraform plans fail with error

### Important Factoids

_No response_

### References

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants