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
When using a deployment manifest that specifies an IpcMode in hostconfig that accesses shared memory in another container, iotedgehubdev start fails due to a nonexistent container error.
Note the IpcMode set in lvaEdge and rtpsim. The actual containers used do not matter; any containers that use that use these ipcmode settings will trigger the issue.
Steps to reproduce
iotedgehubdev start -d config/minimal.json
Network azure-iot-edge-dev is external, skipping
ERROR: Service 'rtspsim' uses the IPC namespace of container 'lvaEdge' which does not exist.
ERROR: Error while executing command: docker-compose -f /var/lib/iotedgehubdev/data/docker-compose.yml pull edgeHubDev. Command '['docker-compose', '-f', '/var/lib/iotedgehubdev/data/docker-compose.yml', 'pull', 'edgeHubDev']' returned non-zero exit status 1.
"none": own private IPC namespace, with /dev/shm not mounted
"private": own private IPC namespace
"shareable": own private IPC namespace, with a possibility to share it with other containers
"container:<name|id>": join another (shareable) container's IPC namespace
"host": use the host system's IPC namespace
However iotedgehubdev uses docker-compose to start the deployment. docker-compose requires the use of the settingipc: "service:[service name]" when referring to another service in the same compose file. If the IpcMode value of rtpsim in the manifest above is changed from container:lvaEdge to service:lvaEdge iotedgehubdev is able to start up the solution as expected. This however will not work when deploying to a real edge device, as the service: syntax is not supported by docker create ("Error": "Invalid IPC mode: service:lvaEdge").
In this case we are using Azure LVA on IoT Edge, and have an inferencing module that uses the gRPC interface and shared memory to share frames (using the second option, "When communicating with a gRPC server running in another IoT Edge module"). This is the recommended approach for high-performance inferencing in LVA.
The edge deployment manifest used here is just for demo/bug reporting purposes. It does not contain a real inferencing module, but still can be used to reproduce and validate the issue.
Thanks! There is a workaround available for this issue in the meantime: it is possible to use an external templating tool to change container: to service: when using iotedgehubdev.
When using a deployment manifest that specifies an IpcMode in hostconfig that accesses shared memory in another container,
iotedgehubdev start
fails due to a nonexistent container error.Relevant version numbers:
with docker-compose versions prior to 1.27.0 a different error message is thrown.
Sample deployment manifest
Note the IpcMode set in lvaEdge and rtpsim. The actual containers used do not matter; any containers that use that use these ipcmode settings will trigger the issue.
Steps to reproduce
Possible solution
The IoT Edge deployment manifest module createOptions uses docker create options. The docker create container options allow the following values:
However iotedgehubdev uses docker-compose to start the deployment. docker-compose requires the use of the setting
ipc: "service:[service name]"
when referring to another service in the same compose file. If the IpcMode value of rtpsim in the manifest above is changed fromcontainer:lvaEdge
toservice:lvaEdge
iotedgehubdev is able to start up the solution as expected. This however will not work when deploying to a real edge device, as theservice:
syntax is not supported by docker create ("Error": "Invalid IPC mode: service:lvaEdge"
).network _mode may also suffer from the same issue.
The text was updated successfully, but these errors were encountered: