Hi, Brian,

I think the relationship to the vf-module is missing its containing 
generic-vnf.  If you want to create an edge to the vf-module (assuming it’s 
contained by the generic-vnf in the payload), I think it would look like this:


                     "relationship": [

                                {

                                    "related-to": "generic-vnf",

                                    "relationship-data": [

                                        {

                                            "relationship-key": 
"generic-vnf.vnf-id",

                                            "relationship-value": 
"9ce350e8-2daf-4e2d-be13-a3c536ca09ba"

                                        }

                                    ]

                                },

                                {

                                    "related-to": "vf-module",

                                    "relationship-data": [

                                        {

                                            "relationship-key": 
"generic-vnf.vnf-id",

                                            "relationship-value": 
"9ce350e8-2daf-4e2d-be13-a3c536ca09ba"

                                        },

                                        {

                                            "relationship-key": 
"vf-module.vf-module-id",

                                            "relationship-value": 
"84b59da3-1019-43f6-85ea-116be6301d3e"

                                        }

                                    ]

                                },

                                {

                                    "related-to": "flavor",

                                    "relationship-data": [

                                        {

                                            "relationship-key": 
"flavor.flavor-id",

                                            "relationship-value": 
"764efb04-5a46-4806-a766-2bdd24559f39"

                                        },

                                        {

                                            "relationship-key": 
"cloud-region.cloud-owner",

                                            "relationship-value": "CloudOwner"

                                        },

                                        {

                                            "relationship-key": 
"cloud-region.cloud-region-id",

                                            "relationship-value": "RegionOne"

                                        }

                                    ]

                                },


Thanks,
Jimmy

From: <[email protected]> on behalf of "FREEMAN, BRIAN D" 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>, 
"FREEMAN, BRIAN D" <[email protected]>
Date: Wednesday, September 26, 2018 at 9:03 AM
To: "[email protected]" <[email protected]>, 
"[email protected]" <[email protected]>
Cc: "Koblosz, Sandra (Nokia - PL/Wroclaw)" <[email protected]>, 
"Krysiak, Piotr (Nokia - PL/Wroclaw)" <[email protected]>, "Darosz, Piotr 
(Nokia - PL/Wroclaw)" <[email protected]>, "Krysiak, Adam (Nokia - 
PL/Wroclaw)" <[email protected]>, "Golabek, Tomasz (Nokia - PL/Wroclaw)" 
<[email protected]>
Subject: [onap-discuss] AAI relationship does not start from a valid namespace 
-> RE: [Robot][Heatbridge][master][aai] Robot heatbridge action fails

***Security Advisory: This Message Originated Outside of AT&T ***
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.


The resource-id issue could simply be the bulkadd for images and flavors being 
run more than once. I dont think that is affecting anything.

The vfmodule one about “does not start with a valid namespace”  is concerning.  
I would try it via POSTMAN directly and see if you can determine the problem.

Jimmy,

Did the format of bulkadd or relationship change ?

Brian


Arguments: [ 'aai' | '/aai/v11/bulkadd' | data=b'{"transactions": [{"put": 
[{"body": {"image-os-distro": "unknown", "application-version": "unknown", 
"image-architecture": "unknown", "application-vendor": "unknown", "image-name": 
"unknown", "image-os-version": "unknown", "application": "unknown", "image-id": 
"6e219e86-cd94-4989-9119-def29aa10b12", "image-selflink": 
"http://10.12.25.2:8774/1e097c6713e74fd7ac8e4295e605ee1e/images/6e219e86-cd94-4989-9119-def29aa10b12"}<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.12.25.2-3A8774_1e097c6713e74fd7ac8e4295e605ee1e_images_6e219e86-2Dcd94-2D4989-2D9119-2Ddef29aa10b12-2522-257d&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=-0W2VRtB5eVpr2DEzXjpcPcD5D3CKmgJW26psD36UFo&s=FBEYdeyGqJ80QnK05_PujlXDaxHlhPMbKt7-PbvEFcs&e=>,
 "uri": 
"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/6e219e86-cd94-4989-9119-def29aa10b12"}]},
 {"put": [{"body": {"flavor-id": "764efb04-5a46-4806-a766-2bdd24559f39", 
"flavor-vcpus": 2, "flavor-ephemeral": 0, "flavor-ram": 4096, "flavor-name": 
"m1.medium", "flavor-selflink": 
"http://10.12.25.2:8774/v2.1/1e097c6713e74fd7ac8e4295e605ee1e/flavors/764efb04-5a46-4806-a766-2bdd24559f39<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.12.25.2-3A8774_v2.1_1e097c6713e74fd7ac8e4295e605ee1e_flavors_764efb04-2D5a46-2D4806-2Da766-2D2bdd24559f39&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=-0W2VRtB5eVpr2DEzXjpcPcD5D3CKmgJW26psD36UFo&s=rk5-klTvEWKzv8OAgC2qnns2JcRpLKylGH9NSmXlF2Q&e=>",
 "flavor-disk": 40}, "uri": 
"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39"}]},
 {"put": [{"body": {"vserver-name2": "scale-out-wro-testing-vnf003", 
"vserver-name": "scale-out-wro-testing-vnf003", "relationship-list": 
{"relationship": [{"relationship-data": [{"relationship-key": 
"generic-vnf.vnf-id", "relationship-value": 
"9ce350e8-2daf-4e2d-be13-a3c536ca09ba"}], "related-to": "generic-vnf"}, 
{"relationship-data": [{"relationship-key": "vf-module.vf-module-id", 
"relationship-value": "84b59da3-1019-43f6-85ea-116be6301d3e"}], "related-to": 
"vf-module"}, {"relationship-data": [{"relationship-key": "flavor.flavor-id", 
"relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39"}, 
{"relationship-key": "cloud-region.cloud-owner", "relationship-value": 
"CloudOwner"}, {"relationship-key": "cloud-region.cloud-region-id", 
"relationship-value": "RegionOne"}], "related-to": "flavor"}, 
{"relationship-data": [{"relationship-key": "image.image-id", 
"relationship-value": "6e219e86-cd94-4989-9119-def29aa10b12"}, 
{"relationship-key": "cloud-region.cloud-owner", "relationship-value": 
"CloudOwner"}, {"relationship-key": "cloud-region.cloud-region-id", 
"relationship-value": "RegionOne"}], "related-to": "image"}]}, "volumes": [], 
"prov-status": "ACTIVE", "vserver-id": "a45e87b1-d082-465f-8726-1f5607787ce4", 
"vserver-selflink": 
"http://10.12.25.2:8774/v2.1/1e097c6713e74fd7ac8e4295e605ee1e/servers/a45e87b1-d082-465f-8726-1f5607787ce4"}<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.12.25.2-3A8774_v2.1_1e097c6713e74fd7ac8e4295e605ee1e_servers_a45e87b1-2Dd082-2D465f-2D8726-2D1f5607787ce4-2522-257d&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=-0W2VRtB5eVpr2DEzXjpcPcD5D3CKmgJW26psD36UFo&s=dHP52z7u4z3DagONQj_wzp_NGk6bvQum3tAfwd3XVIc&e=>,
 "uri": 
"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/1e097c6713e74fd7ac8e4295e605ee1e/vservers/vserver/a45e87b1-d082-465f-8726-1f5607787ce4"}]}]}'
 | headers={'Accept': 'application/json', 'Content-Type': 'application/json', 
'X-FromAppId': 'robot-ete', 'X-TransactionId': 
'robot-ete-daed81d0-7eb8-4158-8c22-c7042a6cb90b'} ]


07:07:16.018

DEBUG

Starting new HTTPS connection (1): 10.0.1.1:8443


07:07:16.156

DEBUG

https://10.0.1.1:8443<https://urldefense.proofpoint.com/v2/url?u=https-3A__10.0.1.1-3A8443&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=-0W2VRtB5eVpr2DEzXjpcPcD5D3CKmgJW26psD36UFo&s=L-1GdBm4-whB-tfJ-OtOriOmB8YRW_SKF9vUT7Qr-rA&e=>
 "PUT /aai/v11/bulkadd HTTP/1.1" 201 1918


07:07:16.157

DEBUG

put response: 
{"transaction":[{"put":[{"uri":"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/6e219e86-cd94-4989-9119-def29aa10b12","body":{"412":"{\"requestError\":{\"serviceException\":{\"messageId\":\"SVC3000\",\"text\":\"Invalid
 input performing %1 on %2 (msg\u003d%3) 
(ec\u003d%4)\",\"variables\":[\"PUT\",\"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/6e219e86-cd94-4989-9119-def29aa10b12\",\"Precondition
 Required:resource-version not passed for update of 
/images/image/6e219e86-cd94-4989-9119-def29aa10b12\",\"ERR.5.4.6130\"]}}}"}}]},{"put":[{"uri":"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39","body":{"412":"{\"requestError\":{\"serviceException\":{\"messageId\":\"SVC3000\",\"text\":\"Invalid
 input performing %1 on %2 (msg\u003d%3) 
(ec\u003d%4)\",\"variables\":[\"PUT\",\"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39\",\"Precondition
 Required:resource-version not passed for update of 
/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39\",\"ERR.5.4.6130\"]}}}"}}]},{"put":[{"uri":"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/1e097c6713e74fd7ac8e4295e605ee1e/vservers/vserver/a45e87b1-d082-465f-8726-1f5607787ce4","body":{"400":"{\"requestError\":{\"serviceException\":{\"messageId\":\"SVC3000\",\"text\":\"Invalid
 input performing %1 on %2 (msg\u003d%3) 
(ec\u003d%4)\",\"variables\":[\"PUT\",\"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/1e097c6713e74fd7ac8e4295e605ee1e/vservers/vserver/a45e87b1-d082-465f-8726-1f5607787ce4\",\"Invalid
 input performing %1 on 
%2:vf-modules/vf-module/84b59da3-1019-43f6-85ea-116be6301d3e not a valid path. 
It does not start from a valid namespace\",\"ERR.5.2.3000\"]}}}"}}]}]}



From: [email protected] <[email protected]> On Behalf Of 
Sliwka, Wojciech (Nokia - PL/Wroclaw)
Sent: Wednesday, September 26, 2018 4:57 AM
To: [email protected]
Cc: Koblosz, Sandra (Nokia - PL/Wroclaw) <[email protected]>; Krysiak, 
Piotr (Nokia - PL/Wroclaw) <[email protected]>; Darosz, Piotr (Nokia - 
PL/Wroclaw) <[email protected]>; Krysiak, Adam (Nokia - PL/Wroclaw) 
<[email protected]>; Golabek, Tomasz (Nokia - PL/Wroclaw) 
<[email protected]>
Subject: [onap-discuss] [Robot][Heatbridge][master][aai] Robot heatbridge 
action fails


Hi,

As I wrote in subject, I noticed that heatbridge action fails during PUT call 
to AAI with following exception:




{
"transaction": [{
"put": [{
"uri": 
"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/6e219e86-cd94-4989-9119-def29aa10b12",
"body": {
"412": 
"{\"requestError\":{\"serviceException\":{\"messageId\":\"SVC3000\",\"text\":\"Invalid
 input performing %1 on %2 (msg\u003d%3) 
(ec\u003d%4)\",\"variables\":[\"PUT\",\"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/6e219e86-cd94-4989-9119-def29aa10b12\",\"Precondition
 Required:resource-version not passed for update of 
/images/image/6e219e86-cd94-4989-9119-def29aa10b12\",\"ERR.5.4.6130\"]}}}"
}
}]
}, {
"put": [{
"uri": 
"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39",
"body": {
"412": 
"{\"requestError\":{\"serviceException\":{\"messageId\":\"SVC3000\",\"text\":\"Invalid
 input performing %1 on %2 (msg\u003d%3) 
(ec\u003d%4)\",\"variables\":[\"PUT\",\"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39\",\"Precondition
 Required:resource-version not passed for update of 
/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39\",\"ERR.5.4.6130\"]}}}"
}
}]
}, {
"put": [{
"uri": 
"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/1e097c6713e74fd7ac8e4295e605ee1e/vservers/vserver/a45e87b1-d082-465f-8726-1f5607787ce4",
"body": {
"400": 
"{\"requestError\":{\"serviceException\":{\"messageId\":\"SVC3000\",\"text\":\"Invalid
 input performing %1 on %2 (msg\u003d%3) 
(ec\u003d%4)\",\"variables\":[\"PUT\",\"/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/1e097c6713e74fd7ac8e4295e605ee1e/vservers/vserver/a45e87b1-d082-465f-8726-1f5607787ce4\",\"Invalid
 input performing %1 on 
%2:vf-modules/vf-module/84b59da3-1019-43f6-85ea-116be6301d3e not a valid path. 
It does not start from a valid namespace\",\"ERR.5.2.3000\"]}}}"
}
}]
}]
}




Any ideas what could be wrong here?



Env: Windriver , Integration-SB-07



Logs from robot in attachements



BR,

Wojtek



[email protected]<mailto:[email protected]>






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

View/Reply Online (#12662): https://lists.onap.org/g/onap-discuss/message/12662
Mute This Topic: https://lists.onap.org/mt/26230567/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to