Hi all,
I noted a strange behavior in AAI properties associated to a service and I'd 
like your support to better understand it.
I create a service instance and I correctly add some relationships (details 
below).

If I GET 
https://{{aai_ip}}:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/relationship-list/
 ( 
https://mail.polito.it/SRedirect/3A81FC3B/%7B%7Baai_ip%7D%7D:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/relationship-list/
 )

 I get the following error

{
     "requestError": {
         "serviceException": {
             "messageId": "SVC3001",
             "text": "Resource not found for %1 using id %2 (msg=%3) (ec=%4)",
             "variables": [
                 "GET",
                 
"business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38
                  42b73ae4438e/relationship-list/",
                 "Node Not Found:No Node of type relationship found at: 
                  
business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-
                                  42b73ae4438e/relationship-list/",
                 "ERR.5.4.6114"
             ]
         }
     }
}

In Amsterdam release I used that GET to get relationships. With Casablanca it 
seems it doesn't work. Is there a way to get the relationship-list of a certain 
resource (e.g. service instance)?

Thanks
Aniello Paolo Malinconico

 

 

 

 

**********************************************************DETAILS***************************************************************************

I create the service instance by POST 
http://{{so_ip}}:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances ( 
https://mail.polito.it/Redirect/3A81FC3B/%7B%7Bso_ip%7D%7D:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances
 )

I add the relationships to my service instance by PUT 
https://{{aai_ip}}:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/relationship-list/relationship
 ( 
https://mail.polito.it/SRedirect/3A81FC3B/%7B%7Baai_ip%7D%7D:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/relationship-list/relationship
 ) 
with the following body :

   {
                         "related-to": "logical-link",
                         "relationship-data": [
                             {
                                 "relationship-key": "logical-link.link-name",
                                 "relationship-value": 
"163.162.95.64-onos-cord_FC-1"
                             }
                                             ]
    }

GET 
https://{{aai_ip}}:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/
 ( 
https://mail.polito.it/SRedirect/3A81FC3B/%7B%7Baai_ip%7D%7D:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/
 )
Provide the output:

{
     "service-instance-id": "3d507df3-42bb-46bf-ad38-42b73ae4438e",
     "service-instance-name": "svc_20190402_evc",
     "environment-context": "General_Revenue-Bearing",
     "workload-context": "Production",
     "model-invariant-id": "888550a3-e9ba-47a4-beb7-5cbbca54b975",
     "model-version-id": "99cdee74-1f5d-4fc3-b920-e6af93052f6c",
     "resource-version": "1554206512058",
     "orchestration-status": "Active",
     "relationship-list": {
         "relationship": [
             {
                 "related-to": "project",
                 "related-link": 
"/aai/v11/business/projects/project/Project-Demonstration",
                 "relationship-data": [
                     {
                         "relationship-key": "project.project-name",
                         "relationship-value": "Project-Demonstration"
                     }
                 ]
             },
             {
                 "related-to": "owning-entity",
                 "related-link": 
"/aai/v11/business/owning-entities/owning-entity/8e4e0473-a580-4d00-a3e0-c2a4a3ffa622",
                 "relationship-data": [
                     {
                         "relationship-key": "owning-entity.owning-entity-id",
                         "relationship-value": 
"8e4e0473-a580-4d00-a3e0-c2a4a3ffa622"
                     }
                 ]
             },
             {
                 "related-to": "logical-link",
                 "related-link": 
"/aai/v11/network/logical-links/logical-link/163.162.95.64-onos-cord_FC-1",
                 "relationship-data": [
                     {
                         "relationship-key": "logical-link.link-name",
                         "relationship-value": "163.162.95.64-onos-cord_FC-1"
                     }
                 ]
             }
         ]
     }
}

So the relationship is added to my service.

If I GET 
https://{{aai_ip}}:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/relationship-list/
 ( 
https://mail.polito.it/SRedirect/3A81FC3B/%7B%7Baai_ip%7D%7D:30233/aai/v11/business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-42b73ae4438e/relationship-list/
 ) 
 I have the following error

{
     "requestError": {
         "serviceException": {
             "messageId": "SVC3001",
             "text": "Resource not found for %1 using id %2 (msg=%3) (ec=%4)",
             "variables": [
                 "GET",
                 
"business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38
                  2b73ae4438e/relationship-list/",
                 "Node Not Found:No Node of type relationship found at: 
                  
business/customers/customer/TIM/service-subscriptions/service-subscription/EVPL/service-instances/service-instance/3d507df3-42bb-46bf-ad38-
                                  42b73ae4438e/relationship-list/",
                 "ERR.5.4.6114"
             ]
         }
     }
}

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16436): https://lists.onap.org/g/onap-discuss/message/16436
Mute This Topic: https://lists.onap.org/mt/30867138/21656
Mute #aai: https://lists.onap.org/mk?hashtag=aai&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to