Closed crpietschmann closed 4 years ago
It looks like this functionality is planned for v1.0.9 release, as per this link: https://github.com/Azure/iotedge/blob/master/doc/rc/how-to-auto-provision-x509-certificates.md#create-and-provision-an-iot-edge-device-using-x509-certificates-preview
Guess I'll close this Issue and wait until the 1.0.9 release.
Expected Behavior
The
/etc/iotedge/config.yaml
is setup for DPS provisioning using x.509 certificates.When running
sudo iotedge check --verbose --iothub-hostname https://iothub-name.azure-devices.net
(with my IoT Hub hostname) all checks should succeed without error.Current Behavior
The
iotedge check
command is returning the following errors for the Connectivity Checks showing that the IoT Hub Hostname cannot be resolved, even though running thehost IOT-HUB-HOSTNAME.azure-devices.net
command for the IoT Hub resolves correctly.Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
Context (Environment)
Output of
iotedge check
Click here
``` Configuration checks -------------------- √ config.yaml is well-formed - OK × config.yaml has well-formed connection string - Error Device is not using manual provisioning, so Azure IoT Hub hostname needs to be specified with --iothub-hostname √ container engine is installed and functional - OK ‼ config.yaml has correct hostname - Warning config.yaml has hostname AzureIoTEdgeGatewayLinuxVM which does not comply with RFC 1035. - Hostname must be between 1 and 255 octets inclusive. - Each label in the hostname (component separated by ".") must be between 1 and 63 octets inclusive. - Each label must start with an ASCII alphabet character (a-z), end with an ASCII alphanumeric character (a-z, 0-9), and must contain only ASCII alphanumeric characters or hyphens (a-z, 0-9, "-"). Not complying with RFC 1035 may cause errors during the TLShandshake with modules and downstream devices. × config.yaml has correct URIs for daemon mgmt endpoint - Error Error: could not execute list-modules request: an error occurred trying to connect: Connection refused (os error 111) caused by: docker returned exit code: 1, stderr = Error: could not execute list-modules request: an error occurred trying to connect: Connection refused (os error 111) √ latest security daemon - OK √ host time is close to real time - OK √ container time is close to host time - OK ‼ DNS server - Warning Container engine is not configured with DNS server setting,which may impact connectivity to IoT Hub. Please see https://aka.ms/iotedge-prod-checklist-dns for best practices. You can ignore this warning if you are setting DNS server per module in the Edge deployment. caused by: Could not open container engine config file /etc/docker/daemon.json caused by: No such file or directory (os error 2) √ production readiness: certificates - OK √ production readiness: certificates expiry - OK √ production readiness: container engine - OK ‼ production readiness: logs policy - Warning Container engine is not configured to rotate module logs which may cause it run out of disk space. Please see https://aka.ms/iotedge-prod-checklist-logs for best practices. You can ignore this warning if you are setting log policy per module in the Edge deployment. caused by: Could not open container engine config file /etc/docker/daemon.json caused by: No such file or directory (os error 2) Connectivity checks ------------------- √ host can connect to and perform TLS handshake with DPS endpoint - OK ‼ host can connect to and perform TLS handshake with IoT Hub AMQP port - Warning skipping because of previous failures ‼ host can connect to and perform TLS handshake with IoT Hub HTTPS / WebSockets port - Warning skipping because of previous failures ‼ host can connect to and perform TLS handshake with IoT Hub MQTT port - Warning skipping because of previous failures ‼ container on the default network can connect to IoT Hub AMQP port - Warning skipping because of previous failures ‼ container on the default network can connect to IoT Hub HTTPS/ WebSockets port - Warning skipping because of previous failures ‼ container on the default network can connect to IoT Hub MQTT port - Warning skipping because of previous failures ‼ container on the IoT Edge module network can connect to IoT Hub AMQP port - Warning skipping because of previous failures ‼ container on the IoT Edge module network can connect to IoT Hub HTTPS / WebSockets port - Warning skipping because of previous failures ‼ container on the IoT Edge module network can connect to IoT Hub MQTT port - Warning skipping because of previous failures × Edge Hub can bind to ports on host - Error Could not check current state of Edge Hub container caused by: docker returned exit code: 1, stderr = Error: No such object: edgeHub 9 check(s) succeeded. 3 check(s) raised warnings. 3 check(s) raised errors. 9 check(s) were skipped due to errors from other checks. ```Device Information
The host OS I'm using for this IoT Edge Device is the Azure IoT Edge on Ubuntu VM image from the Azure Marketplace.
Runtime Versions
iotedge version
]: iotedge 1.0.8 (208b2204fd30e856d00b280112422130c104b9f0
)docker version
]: 3.0.8Note: when using Windows containers on Windows, run
docker -H npipe:////./pipe/iotedge_moby_engine version
insteadLogs
iotedged logs
```edge-agent logs
```edge-hub logs
```Additional Information
N/A