EdgeAgent does not report environment vars (Proxy Settings, create options) back to IoT hub on first connect #5421
Labels
1.1.1
Targeted for 1.1.1 release
area:host_configuration
customer-reported
enhancement
New feature or request
iotedge
Background
In an environment with a proxy required to gain outside access, the config.yaml (IoT 1.1) is modified by the person installing the edge device so that the initial edgeAgent docker module creation sets the environment variables https_proxy and UpstreamProtocol: AmqpWs.
This allows the edgeAgent to connect to IoT Hub initially, and report a 417 - Configuration not set.
Any subsequent deployment will need to specify these settings from the cloud side again, making it required to also store the device's proxy settings there.
Expected Behavior
After the initial connection, we expect that the edge agent reports the http_proxy / https_proxy variables that have been set to him in the "reported properties". This way the settings can be retained or honoured when deploying a solution.
Current Behavior
The edge agent logs that it detected the proxy setting, uses the proxy, but does not report those environment variables to the cloud. Any deployment performed subsequently without those exact proxy settings will brick the device, because the edge agent will be overwritten with missing/wrong proxy settings.
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
Context (Environment)
Device Information
Runtime Versions
The text was updated successfully, but these errors were encountered: