-
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
Setting AuthenticationMode to Cloud fails on mcr.microsoft.com/azureiotedge-hub:1.2 #6284
Comments
Hi @ksaye, I am going to try to replicate the situation to investigate this, but to confirm you AuthenticationMode to the value CloudAndScope? Or to Cloud? And if you go back to 1.1 does everything work again? Thanks |
Hi @ksaye - looks like this might be a bug in our authentication code. |
Sorry for the late response @nyanzebra, I am setting AuthenticationMode to Cloud and it does work with 1.1 but not with 1.2. @varunpuranik, thanks for the confirmation. Yes it is a Nested Edge + Leaf Devices, so the preference would be AuthenticationMode = Cloud on 1.2. The real goal/desire here was to enable the AuthenticationMode=Cloud FOR Nested Edge so we can have child Edge devices failover from parent 1 to parent 2 without making changes in the cloud. Happy to follow the status of this bug and retest. |
@veyalla is there a VM-based failover system that doesn't require AuthenticationMode = Cloud? Vaguely remember you mentioning it? |
@varunpuranik please post your thoughts on cloud authentication mode here for posterity |
The VM hostname and IP addresses don't change with a VM failover based solution. So it doesn't require Cloud AuthenticationMode. Note, while the failover is automatic, there is will be some downtime while the failure is detected by the underlying Server Virtualization platform and failover is completed. |
This issue is being marked as stale because it has been open for 30 days with no activity. |
Open to PM guidance here, I just know that if you use AuthenticationMode = Cloud and change the URL to mcr.microsoft.com/azureiotedge-hub:1.2, it will fail today. |
We did update our docs a little to include issues with Cloud auth But Cloud auth not working at all seems unintended - @varunpuranik ? |
Yes, this seems like a bug in our code. I mentioned that in my previous comment - #6284 (comment) |
Thanks all. Happy to close this comment but want customer to avoid this issue. I have some that use the AuthenticationMode = Cloud. @jlian, Love the document https://github.com/Azure/iotedge/blob/main/doc/EnvironmentVariables.md#cloud-authenticationmode-not-supported-in-production, and perhaps it is acceptable to just modify that document for now. |
Let me try that, sorry did not notice the request. |
I just tested on EdgeHub 1.2.4. With AuthenticationMode:Cloud edgeHub crashes. EdgeHub Crashes Error EdgeHub with AuthenticationMode = Cloud
APIProxy failes to connect Error EdgeHub with AuthenticationMode = Cloud and NestedEdgeEnabled = False
|
Expected Behavior
When using the URI mcr.microsoft.com/azureiotedge-hub:1.1, I can set the AuthenticationMode to Cloud with no issue.
When I use mcr.microsoft.com/azureiotedge-hub:1.2, I get the error:
Current Behavior
When I use mcr.microsoft.com/azureiotedge-hub:1.2, I get the error:
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
Context (Environment)
Output of
iotedge check
Click here
Device Information
Runtime Versions
iotedge version
]: 1.2.9docker version
]: 20.10.14+azure-1Note: when using Windows containers on Windows, run
docker -H npipe:////./pipe/iotedge_moby_engine version
insteadLogs
aziot-edged logs
edge-agent logs
edge-hub logs
Additional Information
Please provide any additional information that may be helpful in understanding the issue.
The text was updated successfully, but these errors were encountered: