-
Notifications
You must be signed in to change notification settings - Fork 463
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
IoT Edge Modules are getting recreated if iotedge service restarts #4866
Comments
@niravart7383 Can you confirm that your iotedged version matches your edgeAgent. Run |
Yes, it matches exactly |
Hey @niravart7383, sorry for the delay. I can confirm that this is expected behavior. This is because restarting triggers the deprovisioning flow, which for DPS with TPM results in a new identity. If you want to avoid this, you can set
If you update to the LTS 1.1.x, the field is now |
Hi I will check the same and let you know. Isn't it? |
I have tested the same by setting flag always_reprovision_on_startup to true I have attached two screenshots, where you can find the containerIds are different. |
Hey @niravart7383, the Sorry if the config file I linked above caused confusion, I simply linked to an example config in our repo that had the field. |
In addition, if you are worried about losing data in a container, you can use volume mounting to store permanent files on the host filesystem: https://docs.docker.com/storage/volumes/ |
I have checked with both, true/false |
I agree !! But why the behaviour is different, the same thing is not happening If I am not using TPM |
This issue is being marked as stale because it has been open for 30 days with no activity. |
Expected Behavior
Modules should be as it is after iotedge restart
Current Behavior
Module containers are getting recreated if iotedge service restarts
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
Context (Environment)
OS: Windows IoT 1809 (LTSC)
Output of
iotedge check
Click here
Device Information
Runtime Versions
iotedge version
]:Note: when using Windows containers on Windows, run
docker -H npipe:////./pipe/iotedge_moby_engine version
insteadLogs
Additional Information
It is applicable to TPM auth with DPS only, It is working fine with SAS token authentication
The text was updated successfully, but these errors were encountered: