microsoft / azure_arc

Automated Azure Arc, Edge, and Platform environments
https://aka.ms/ArcJumpstart
Creative Commons Attribution 4.0 International
744 stars 550 forks source link

no matches for kind "MqttBridgeConnector" in version "mq.iotoperations.azure.com/v1beta1" #2738

Closed dguptaSAS closed 1 month ago

dguptaSAS commented 1 month ago

am going through the steps for Azure Jumpstart: [https://azurearcjumpstart.com/azure_arc_jumpstart/azure_edge_iot_ops/aio_manufacturing]

and during the post-deployment step, I am getting the following error

resource mapping not found for name: "my-topic-map" namespace: "azure-iot-operations" from "/home/SIJ/Tools/mq_cloudConnector.yml": no matches for kind "MqttBridgeTopicMap" in version "mq.iotoperations.azure.com/v1beta1" ensure CRDs are installed first resource mapping not found for name: "my-mqtt-bridge" namespace: "azure-iot-operations" from "/home/SIJ/Tools/mq_cloudConnector.yml": no matches for kind "MqttBridgeConnector" in version "mq.iotoperations.azure.com/v1beta1" ensure CRDs are installed first Error from server (NotFound): namespaces "azure-iot-operations" not found [12:05:02] INFO: Waiting for MQTT services to initialize and the service IP address to be assigned... Waiting for 20 seconds Error from server (NotFound): namespaces "azure-iot-operations" not found [12:05:02] INFO: Waiting for MQTT services to initialize and the service IP address to be assigned... Waiting for 20 seconds

the file that is giving the error is [https://github.com/microsoft/azure_arc/blob/main/azure_edge_iot_ops_jumpstart/aio_manufacturing/bicep/artifacts/Settings/mq_cloudConnector.yml]

mrhoads commented 1 month ago

Hi @dguptaSAS - I'm investigating this. It looks like the azure-iot-operations extension isn't properly installed, which I suspect may be related to this issue.

mrhoads commented 1 month ago

I confirmed that this is a result of the same underlying issue that #2731 addresses. AIO never gets deployed because the extension doesn't get installed. We're working on a fix.

dguptaSAS commented 1 month ago

I agree with you @mrhoards . this one is related to #2731. It eventually ends up in the indefinite loop of

Error from server (NotFound): namespaces "azure-iot-operations" not found [12:05:02] INFO: Waiting for MQTT services to initialize and the service IP address to be assigned... Waiting for 20 seconds

dguptaSAS commented 1 month ago

@mrhoads Furthermore on this. I tried deploying two versions and here are my findings.

With version, v0.5.1b1, azure it ops is not deployed due to the known 'AccessTokenInfo' error. basically issue #2731 (FYI: This issue was not there until a few days ago. The GitHub scripts would work fine. The issue probably could be coming from some recent updates on Azure CLI extensions) With version, v0.6.4, azure it ops gets deployed but gives the MQ Bridge (coming from mq_cloudConnector.yaml) error as mentioned in the issue.

mrhoads commented 1 month ago

Thanks for the additional info. This should be fixed shortly with a PR where we patch the 0.5.1b1 version of the azure-iot-ops extension

mrhoads commented 1 month ago

@dguptaSAS - this should be fixed with this PR. Would you please try re-deploying?

dguptaSAS commented 1 month ago

@mrhoads It is working now. Thanks for the quick fix.