You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Especially, replace_triggered_by meta-argument only allows resources/count/each sources, meaning we cannot use a variable inside of it. ignore_changes is required because, with state refreshing, the secret on the device is not the same as provided unencrypted because the value; the value in the configuration is not encrypted, while the value on the remote is. This means that, even if the secret does not change, terraform will think there is a change
NOTE: In this workaround, I first only used the password as a trigger, but for an unknown reason, terraform always think that the username changed as well, therefore I also must ensure that the username triggers a replacement
Cisco version
Nb: This bug was confirmed with one specific version, but it may also impact others
#show version
Cisco IOS XE Software, Version 16.12.07
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.12.7, RELEASE SOFTWARE (fc2)
Additional information
The first creation of the user work even if the user already exists on the device prior to terraform execution. I therefore think there is an issue with the "PATCH" requrest
The text was updated successfully, but these errors were encountered:
Hi @danischm, I saw that you are the most active contributor and that you approved PR.
I am wondering if you could confirm this issue and if there are any plan on fixing it ?
Nb: If needed, I may contribute.
Thank you for your response
iosxe_username is not able to update the remote user. (Also, the "description" variable does not work)
Steps to reproduce
Define the provider and a new user:
Now change the
secret
value, e.g.:If I run terraform with
TF_LOG=DEBUG terraform apply -auto-approve
, I will see:Workaround
We can force to replace the user instead of updating him using lifecycle:replace_triggered_by and lifecycle:ignore_changes meta-arguments but this is still not optimal
Especially,
replace_triggered_by
meta-argument only allows resources/count/each sources, meaning we cannot use a variable inside of it.ignore_changes
is required because, with state refreshing, the secret on the device is not the same as provided unencrypted because the value; the value in the configuration is not encrypted, while the value on the remote is. This means that, even if the secret does not change, terraform will think there is a changeNOTE: In this workaround, I first only used the password as a trigger, but for an unknown reason, terraform always think that the username changed as well, therefore I also must ensure that the username triggers a replacement
Cisco version
Nb: This bug was confirmed with one specific version, but it may also impact others
#show version Cisco IOS XE Software, Version 16.12.07 Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.12.7, RELEASE SOFTWARE (fc2)
Additional information
The text was updated successfully, but these errors were encountered: