Notifications

26 views

Description




Building a relationship between the DataCenter and the Cloud object Storage to load the S3 Buckets into the related list.



Cause


 From the Filter navigator:
Go to the cmdb_ci_aws_datacenter.LIST 
1. Choose a Data Center
2. Now, go to the bottom of the record and select the 'Cloud Object Storage’ near the related lists. Out of box this field is empty.

The related lists for the Cloud Object Storage is controlled by the following:
1. From the sys_relationship.LIST
2. Search for Virtual Machines: 
In the Virtual Machine record (sys_relationship) It is using these fields:
- Applies to this table: 'cmdb_ci_logical_datacenter'  
- Queries from this table: 'cmdb_ci_vm_instance' 
Its Using this code:
(function refineQuery(current, parent) { 
 
 
new global.CMPGetRelatedResourcesForLDC().getHostedResources(current,parent); 
 
 
})(current, parent); 

Resolution

Workaround

 Create a new Relationship:
1. From the sys_relationship.LIST
2. Create a new relation ‘Cloud Object Storage’
Use these fields:
- Applies to this table: 'cmdb_ci_logical_datacenter'  
- Queries from this table: ‘cmdb_ci_cloud_object_storage'
 
Using the same code as above:
(function refineQuery(current, parent) { 
 
 
new global.CMPGetRelatedResourcesForLDC().getHostedResources(current,parent); 
 
 
})(current, parent); 

Article Information

Last Updated:2020-08-10 17:19:20
Published:2020-08-11