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
The Python script make-mi-fic.py is used to create a managed-identity when testing ASO during development.
When it creates an identity, the files miclientid.txt and fix.txt are created in the directory v2/out/aks-identity/azure with details that are consumed by other tasks that run later.
However, when the identity already exists, the script terminates early with the message "An identity already exists, not creating another one"without ensuring those files exist, ensuring that later task steps fail with cryptic errors.
Expected behavior
The script make-mi-fic.py should ensure the files miclientid.txt and fix.txt exist with the correct content regardless of whether the identity already existed or not.
To Reproduce
Run task to create a managed identity:
task controller:create-mi-for-workload-identity
Remove the out folder
rm -rf v2/out
Run the task again and note that the files are not recreated
task controller:create-mi-for-workload-identity
Additional context
In my original case, the files weren't created because the script make-mi-fic.py failed after creating the identity, but before creating the files. The steps given above are a synthetic way to replicate the failure conditions.
The text was updated successfully, but these errors were encountered:
Describe the bug
The Python script
make-mi-fic.py
is used to create a managed-identity when testing ASO during development.When it creates an identity, the files
miclientid.txt
andfix.txt
are created in the directoryv2/out/aks-identity/azure
with details that are consumed by other tasks that run later.However, when the identity already exists, the script terminates early with the message
"An identity already exists, not creating another one"
without ensuring those files exist, ensuring that later task steps fail with cryptic errors.Expected behavior
The script
make-mi-fic.py
should ensure the filesmiclientid.txt
andfix.txt
exist with the correct content regardless of whether the identity already existed or not.To Reproduce
Run task to create a managed identity:
Remove the
out
folderRun the task again and note that the files are not recreated
Additional context
In my original case, the files weren't created because the script
make-mi-fic.py
failed after creating the identity, but before creating the files. The steps given above are a synthetic way to replicate the failure conditions.The text was updated successfully, but these errors were encountered: