Closed arabold closed 5 years ago
Update: Setting the health check through Dockerfile
doesn't work either. It fails during updating reported properties:
2019-05-07 17:24:35.382 +00:00 [INF] - Updated reported properties
2019-05-07 17:24:58.714 +00:00 [WRN] - Reconcile failed because of the an exception
Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling List modules: Could not list modules
caused by: Could not query module runtime state
caused by: Container runtime error
caused by: invalid value: integer `15000000000`, expected i32 at line 1 column 5447, StatusCode:500, at: at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/Agent.cs:line 116
2019-05-07 17:24:58.903 +00:00 [INF] - Updated reported properties
2019-05-07 17:25:21.331 +00:00 [WRN] - Reconcile failed because of the an exception
Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling List modules: Could not list modules
caused by: Could not query module runtime state
caused by: Container runtime error
caused by: invalid value: integer `15000000000`, expected i32 at line 1 column 5723, StatusCode:500, at: at Microsoft.Azure.Devices.Edge.Agent.Core.Agent.ReconcileAsync(CancellationToken token) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/Agent.cs:line 116
Hi @arabold,
The fix was not part of 1.0.7 release, it will be in 1.0.8 release.
A release candidate for 1.0.8 was just released. You can try it out using the 1.0.8-rc1 tag on your images. Packages for the daemon are located here: https://github.com/Azure/azure-iotedge/releases/tag/1.0.8-rc1
I'm testing this version since a couple of days and after some initial hiccup with me installing the wrong build, this works as expected now. I'll report back if I see any unusual behavior but for now the health checks work very well.
Thank you for the update! Much appreciated.
1.0.8 is released.
This is a follow-up bug on https://github.com/Azure/iotedge/issues/1116 - Docker health checks are still not 100% working despite a fix released in 1.0.7
While it appears that health checks defined in
Dockerfile
are working as expected now, there's still a problem when defining them in thedeployment.template.json
as follows:The
edgeAgent
will report errors as shown below. This still seems a Int32 vs Int64 issue.Expected Behavior
Health checks should work following the Docker specification.
Current Behavior
Steps to Reproduce
Add health checks to a module like shown in the example above. Running this in the simulator will work as expected. However, deploying it on an actual Edge Server will fail with above errors.
Context (Environment)
Device (Host) Operating System
Ubuntu 18.04.2 LTS
Architecture
amd64
Container Operating System
Runtime Versions
iotedged
iotedged 1.0.7 (f455ae2cd66db716c4bd8e7aaa7984ce092481c0)
Edge Agent
Version - 1.0.7.21905529 (f455ae2cd66db716c4bd8e7aaa7984ce092481c0)
Edge Hub
Version - 1.0.7.21905529 (f455ae2cd66db716c4bd8e7aaa7984ce092481c0)
Docker
Logs
See above
Additional Information
n/a