HewlettPackard / terraform-provider-oneview

Automates the provisioning of physical infrastructure from a private cloud using templates from HPE OneView with Terraform
Apache License 2.0
49 stars 30 forks source link

ilo settings updated not being commited into state #509

Closed rismoney closed 1 year ago

rismoney commented 1 year ago

6.6.0-13 +

Before: I had this config:

  management_processor {
    manage_mp = true
    mp_settings {

      local_accounts {
        user_name                    = var.iloadmin_username
        display_name                 = var.iloadmin_username
        password                     = var.iloadmin_password
        user_config_priv             = true
        remote_console_priv          = true
        virtual_media_priv           = true
        virtual_power_and_reset_priv = true
        ilo_config_priv              = true
      }

Then I updated it to this config:

  management_processor {
    manage_mp = true
    mp_settings {

      local_accounts {
        user_name                    = var.iloadmin_username
        display_name                 = var.iloadmin_username
        password                     = var.iloadmin_password
        user_config_priv             = true
        remote_console_priv          = true
        virtual_media_priv           = true
        virtual_power_and_reset_priv = true
        ilo_config_priv              = true
        login_priv                   = true
        host_bios_config_priv        = true
        host_nic_config_priv         = true
        host_storage_config_priv     = true
      }

It made the changes on the server profile template, but every TF run, it wants to make those changes again (idempotency issue), possibly from not committing it properly to state?

nabhajit-ray commented 1 year ago

Hi @rismoney ,

Will check this and get back to you.

nabhajit-ray commented 1 year ago

This is fixed in new release. closing it here