Notifications

193 views

Description

Azure Subscription Discovery fails with below error.

Info Default-thread-9 EE2AD3201B05F7409E8C33F8CD4BCB1F txid=ae93e3681b05 #242465 [CMP API] com.snc.cloud.mgmt.modules.svccatalog.service.impl.ResourceOperationProcessor : Parsing Resource Operation : ddf5cd6bd722220097eb6ccf6e610346 , Discovery Interface.ListSubscriptions 
06:41:27.949 Warning Default-thread-9 EE2AD3201B05F7409E8C33F8CD4BCB1F txid=ae93e3681b05 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: "CMPCIRelationshipUtil" is not defined.
Caused by error in Script Include: 'CMPSysChoiceLabelResolver' at line 1

==> 1: var CMPSysChoiceLabelResolver = Class.create();
2: CMPSysChoiceLabelResolver.prototype = {
3: initialize: function() {
4: },
06:41:27.950 Warning Default-thread-9 EE2AD3201B05F7409E8C33F8CD4BCB1F txid=ae93e3681b05 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: "CMPCIRelationshipUtil" is not defined.
Caused by error in sys_ui_action.5c3f4c1e0b1003003503e0d425673a59.script at line 13
06:41:27.953 Warning Default-thread-9 EE2AD3201B05F7409E8C33F8CD4BCB1F txid=ae93e3681b05 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: "CMPCIRelationshipUtil" is not defined.
Caused by error in sys_ui_action.5c3f4c1e0b1003003503e0d425673a59.script at line 1

==> 1: new CMPCIRelationshipUtil().ldcIdForConfigurationItem('')
06:41:27.953 Warning Default-thread-9 EE2AD3201B05F7409E8C33F8CD4BCB1F txid=ae93e3681b05 WARNING *** WARNING *** #242465 [CMP API] com.snc.cloud.mgmt.modules.svccatalog.service.processor.CIRelationShipIdentifier : Output of function call: new CMPCIRelationshipUtil().ldcIdForConfigurationItem(''), to infer LDC is empty or not a valid string: null

Steps to Reproduce

  1. Log into the instance 
  2. Activate the Cloud Management Core Plugin.
  3. Add Azure Service Principal Credentials.
  4. Click Discover Subscription
  5. The azure subscription fails with error :
Info Default-thread-9 EE2AD3201B05F7409E8C33F8CD4BCB1F txid=ae93e3681b05 #242465 [CMP API] com.snc.cloud.mgmt.modules.svccatalog.service.impl.ResourceOperationProcessor : Parsing Resource Operation : ddf5cd6bd722220097eb6ccf6e610346 , Discovery Interface.ListSubscriptions 
06:41:27.949 Warning Default-thread-9 EE2AD3201B05F7409E8C33F8CD4BCB1F txid=ae93e3681b05 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: "CMPCIRelationshipUtil" is not defined.
Caused by the error in Script Include: 'CMPSysChoiceLabelResolver' at line 1


Expected Result: The Azure subscription should complete successfully and discover the subscriptions. then create an Azure Service Account.

Cause:    

  • The issue is observed when the Instance only activated with "Cloud Management Core" &  "Cloud API" plugin and other Cloud-related plugins are not activated, as below.

  • The script includes "CMPCIRelationshipUtil" is only available if activated with the "Cloud config Mangement" plugin
  • Since the Environment is having "Cloud Management Core" &  "Cloud API" plugin Activated the "CMPCIRelationshipUtil" is not available and causing the issue.

Workaround

This problem has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix. Till upgraded to intended fixed version, refer below workaround to fix the issue.

  1. Log into the Instance
  2. Change the Application Scope to  "Cloud Management Platform" 
  3. Import the XML "CMPCIRelationshipUtil"
  4. Re-Execute the Discovery

Note: The XML will create the Script under "sys_script_include" table with the name "CMPCIRelationshipUtil", there will be no other impact on the instance.


Related Problem: PRB1340374

Seen In

There is no data to report.

Fixed In

Madrid Patch 4
New York

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-06-03 03:51:37
Published:2019-05-14