Error in importing connection profile, admin user identity, and MSP from Azure Kubernetes Cluster.

ascii-c 31 Reputation points
2020-06-25T01:51:28.44+00:00

Hi,

I encountered this error when importing Orderer and Peers organizations' connection profile, admin user identity, and MSP from Azure Kubernetes Cluster.

Could not find Azure blockchain Hyperledger Fabric member Org2 in resource group dev-hlf2
This means unsuccessful import right?

az_dev@Azure:~/azhlfTool$ ./azhlf adminProfile import fromAzure -g $PEER_ORG_RESOURCE_GROUP -s $PEER_ORG_SUBSCRIPTION -o $PEER_ORG_NAME  
Trying to find requested resource in Azure Blockchain Service...  
Could not find Azure blockchain Hyperledger Fabric member Org2 in resource group dev-hlf2  
Fallback to marketplace based application...  
Retrieving information about marketplace based application...  
Retrieving Admin profile from application...  
admin.Org2 imported to wallet  

Is there a problem with the cluster?

  az_dev@Azure:~$ kubectl config get-contexts  
    CURRENT   NAME               CLUSTER            AUTHINFO                                     NAMESPACE  
              dev-hlf1-HLF-AKS   dev-hlf1-HLF-AKS   clusterUser_dev-hlf1_hlf1-HLF-AKS  
    *         dev-hlf2-HLF-AKS   dev-hlf2-HLF-AKS   clusterUser_dev-hlf2_hlf2-HLF-AKS   

Info

az_dev@Azure:~/azhlfTool/stores/connectionprofiles$ kubectl version  
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:36:53Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}  
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.11", GitCommit:"ec831747a3a5896dbdf53f259eafea2a2595217c", GitTreeState:"clean", BuildDate:"2020-05-29T19:56:10Z", GoVersion:"go1.12.17", Compiler:"gc", Platform:"linux/amd64"}  
az_dev@Azure:~/azhlfTool/stores/connectionprofiles$ kubectl get nodes  
NAME                       STATUS   ROLES   AGE   VERSION  
aks-agentpool-10869434-0   Ready    agent   12d   v1.15.11  
aks-agentpool-10869434-1   Ready    agent   12d   v1.15.11  
az_dev@Azure:~/azhlfTool/stores/connectionprofiles$ kubectl get cs  
NAME                 AGE  
controller-manager   <unknown>  
scheduler            <unknown>  
etcd-0               <unknown>  
az_dev@Azure:~/azhlfTool/stores/connectionprofiles$ kubectl get pod -n kube-system  
NAME                                                              READY   STATUS    RESTARTS   AGE  
addon-http-application-routing-default-http-backend-7d9648pxdsq   1/1     Running   0          12d  
addon-http-application-routing-external-dns-7fbf5cbf66-lzstj      1/1     Running   0          12d  
addon-http-application-routing-nginx-ingress-controller-69kls44   1/1     Running   0          12d  
azure-cni-networkmonitor-6t9qk                                    1/1     Running   0          12d  
azure-cni-networkmonitor-bxt54                                    1/1     Running   0          12d  
azure-ip-masq-agent-7gd72                                         1/1     Running   0          12d  
azure-ip-masq-agent-th4lg                                         1/1     Running   0          12d  
coredns-698c77c5d7-85njh                                          1/1     Running   0          12d  
coredns-698c77c5d7-qptfl                                          1/1     Running   0          12d  
coredns-autoscaler-5ccb7f6c8f-69q7b                               1/1     Running   0          12d  
kube-proxy-7jdg6                                                  1/1     Running   0          12d  
kube-proxy-wprkd                                                  1/1     Running   0          12d  
kubernetes-dashboard-74d8c675bc-wp6mm                             1/1     Running   0          12d  
metrics-server-7d654ddc8b-bz8b6                                   1/1     Running   0          12d  
omsagent-m82cv                                                    1/1     Running   1          12d  
omsagent-qbbvl                                                    1/1     Running   1          12d  
omsagent-rs-b66cdc7d6-7cxnx                                       1/1     Running   1          12d  
tunnelfront-6ccfc699f5-26rjp                          

Any idea how to solve this one?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,886 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,474 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Shruti Gupta 16 Reputation points
    2020-06-25T07:39:46.027+00:00

    Hi @asciic-7039,

    The azhlf tool is written to work with both Azure Blockchain Service HLF and AKS-HLF marketplace template. Hence to support that, it first look up for the specified resource in Azure Blockchain Service. If not found, then it lookup for the resource in AKS-HLF template deployment.

    In your particular scenario, it was not able to find resource in ABS HLF (which is expected as well). Then it fallback to marketplace deployment and successfully import the admin profile from there.

    Please let us know if you have any other query.