Hi Ambica,

In this case, your schema is correct, but your request body data is incorrect.
The data error is because the example "model-invariant-id" does not exist. 
Those models come from SDC (note the URL is 
"service-design-and-creation/models/..."

Please remove the "model-invariant-id", "model-customization-id" and 
"model-version-id", since you will not have the relevant data.

Also remove the "resource-version" attribute, as this should be empty when 
creating a new object.

Please post your request body if you have further problems with your PUT call.


Keong


From: Ambica Chattoraj [mailto:[email protected]]
Sent: Tuesday, 5 February 2019 16:59
To: Keong Lim <[email protected]>; [email protected]
Cc: Gaurang Parnaik <[email protected]>; Viresh R Navalli 
<[email protected]>
Subject: Re: [confluence] Developer Wiki > Tutorial: Making and Testing a 
Schema Change in A&AI in Casablanca Release


Hi,



 Thanks, I did the same but still getting the below error


"variables": [
                "PUT",
                "network/pnfs/pnf/example-pnf-name-val-55404",
                "Node Not Found:object located at 
service-design-and-creation/models/model/example-model-invariant-id-val-35566/model-vers/model-ver/example-model-version-id-val-71392
 not found",
                "ERR.5.4.6114"
            ]

Note: No errors while doing a PUT call on Cloud infrastructure.

Thanks & Regards,
Ambica
________________________________
From: Keong Lim <[email protected]<mailto:[email protected]>>
Sent: Monday, February 4, 2019 6:13:21 PM
To: Ambica Chattoraj; 
[email protected]<mailto:[email protected]>
Cc: Gaurang Parnaik; Viresh R Navalli
Subject: RE: [confluence] Developer Wiki > Tutorial: Making and Testing a 
Schema Change in A&AI in Casablanca Release


Hi Ambica and Gaurang,



Your v14 OXM file is not following the Tutorial step 6.





In <java-type name="LInterface"> and <java-type name="Vlan"> and <java-type 
name="PInterface"> and <java-type name="LogicalLink"> and <java-type 
name="Pnf">, you have added new attribute "eventId":



<xml-element java-attribute="eventId" name="event-id" required="true" 
type="java.lang.String" xml-key="true">



Do not try to add a new attribute with 'xml-key="true"' because it creates 
complications when the key value is already set e.g.



<xml-element java-attribute="interfaceName" name="interface-name" 
required="true" type="java.lang.String" xml-key="true">



As per Tutorial Step 6, please try it with this definition instead:



<xml-element java-attribute="eventId" name="event-id" required="true" 
type="java.lang.String">

    <xml-properties>

        <xml-property name="description" value="Event id populated from 
Spark."/>

    </xml-properties>

</xml-element>





Keong



From: Ambica Chattoraj [mailto:[email protected]]
Sent: Monday, 4 February 2019 18:25
To: [email protected]<mailto:[email protected]>; Keong Lim 
<[email protected]<mailto:[email protected]>>
Cc: Gaurang Parnaik 
<[email protected]<mailto:[email protected]>>; Viresh R Navalli 
<[email protected]<mailto:[email protected]>>
Subject: Re: [confluence] Developer Wiki > Tutorial: Making and Testing a 
Schema Change in A&AI in Casablanca Release



Hi Keong Lim,



 PFA , the OXM files before and after changes. I have tried the changes in v14. 
As of now only we are able to GET the records and could not PUT any. It is 
behaving the same for all namespaces i.e network,cloud infrastructure etc.





Thanks & Regards,

Ambica

________________________________

From: Gaurang Parnaik 
<[email protected]<mailto:[email protected]>>
Sent: Monday, February 4, 2019 12:45:30 PM
To: Ambica Chattoraj
Subject: Fwd: [confluence] Developer Wiki > Tutorial: Making and Testing a 
Schema Change in A&AI in Casablanca Release







---------- Forwarded message ---------
From: Keong Lim (Confluence) <[email protected]<mailto:[email protected]>>
Date: Mon, 4 Feb 2019 at 5:32 AM
Subject: [confluence] Developer Wiki > Tutorial: Making and Testing a Schema 
Change in A&AI in Casablanca Release
To: <[email protected]<mailto:[email protected]>>



There's 1 new comment on this page





[page 
icon]<https://wiki.onap.org/pages/viewpage.action?pageId=45309919&focusedCommentId=53251182&src=mail&src.mail.product=confluence-server&src.mail.timestamp=1549238557787&src.mail.notification=com.atlassian.confluence.plugins.confluence-notifications-batch-plugin%3Abatching-notification&src.mail.recipient=8a9e486d687856f2016879a3f5320000&src.mail.action=view#comment-53251182>



Tutorial: Making and Testing a Schema Change in A&AI in Casablanca 
Release<https://wiki.onap.org/pages/viewpage.action?pageId=45309919&focusedCommentId=53251182&src=mail&src.mail.product=confluence-server&src.mail.timestamp=1549238557787&src.mail.notification=com.atlassian.confluence.plugins.confluence-notifications-batch-plugin%3Abatching-notification&src.mail.recipient=8a9e486d687856f2016879a3f5320000&src.mail.action=view#comment-53251182>



[cid:[email protected]]


Gaurang Parnaik




@Keong Lim<https://wiki.onap.org/display/~keong>  May be it is not able to 
locate the Network node through search query.Do i need to execute any specific 
step to add the network node ?






[cid:[email protected]]


Keong Lim




@Gaurang Parnaik<https://wiki.onap.org/display/~gaurang27> could you please 
email your full v11 OXM file and also the original v11 OXM file from before you 
started editing?

Also, can you try restarting your system using the original v11 OXM file?

I don't know how you managed to break the whole /network namespace, but I will 
try to check your files for possible errors.

You don't need to add anything because it is one of the built-in names for AAI.





Reply<https://wiki.onap.org/pages/viewpage.action?pageId=45309919&replyToComment=53251182&src=mail&src.mail.product=confluence-server&src.mail.timestamp=1549238557787&src.mail.notification=com.atlassian.confluence.plugins.confluence-notifications-batch-plugin%3Abatching-notification&src.mail.recipient=8a9e486d687856f2016879a3f5320000&src.mail.action=reply#comment-53251182>


*


Like<https://wiki.onap.org/plugins/likes/like.action?contentId=53251182&src=mail&src.mail.product=confluence-server&src.mail.timestamp=1549238557787&src.mail.notification=com.atlassian.confluence.plugins.confluence-notifications-batch-plugin%3Abatching-notification&src.mail.recipient=8a9e486d687856f2016879a3f5320000&src.mail.action=like&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhOWU0ODZkNjg3ODU2ZjIwMTY4NzlhM2Y1MzIwMDAwIiwicXNoIjoiY2JjOWIzN2Q4ZTc3NmJhMTRhNzBiMjkxOWViMjVkMzJhMzlmOTY3YzAzOWZiMWQzM2E2ZWY5MDY4NWE1Y2EyNiIsImlzcyI6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0JYQU0tUEI1Ui1SVFhQLTNFVkUiLCJleHAiOjE1NDk4NDMzNTcsImlhdCI6MTU0OTIzODU1N30.Lwi7R7SUV-e6JD_N-hD4pbOv1l1qHIURGNIe8hKjePk>















View 
comment<https://wiki.onap.org/pages/viewpage.action?pageId=45309919&focusedCommentId=53251182&src=mail&src.mail.product=confluence-server&src.mail.timestamp=1549238557787&src.mail.notification=com.atlassian.confluence.plugins.confluence-notifications-batch-plugin%3Abatching-notification&src.mail.recipient=8a9e486d687856f2016879a3f5320000&src.mail.action=view#comment-53251182>








Stop watching 
page<https://wiki.onap.org/users/removepagenotification.action?pageId=45309919&src=mail&src.mail.product=confluence-server&src.mail.timestamp=1549238557787&src.mail.notification=com.atlassian.confluence.plugins.confluence-notifications-batch-plugin%3Abatching-notification&src.mail.recipient=8a9e486d687856f2016879a3f5320000&src.mail.action=stop-watching&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhOWU0ODZkNjg3ODU2ZjIwMTY4NzlhM2Y1MzIwMDAwIiwicXNoIjoiYzQ3Y2VjN2QwNWI5MmJiYjM2MWExZTA0NjEzNDkxMmVkNWM1ZWQ3OWUyYTIzODY1OGNjMjEyOGE1Y2Q4NGQ1ZSIsImlzcyI6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0JYQU0tUEI1Ui1SVFhQLTNFVkUiLCJleHAiOjE1NDk4NDMzNTcsImlhdCI6MTU0OTIzODU1N30.WrXO5HJjmz2_P1J6o4wODpFdWCl1zGAdO6Gg09yMfk8>


*


Manage 
notifications<https://wiki.onap.org/users/editmyemailsettings.action?src=mail&src.mail.product=confluence-server&src.mail.timestamp=1549238557787&src.mail.notification=com.atlassian.confluence.plugins.confluence-notifications-batch-plugin%3Abatching-notification&src.mail.recipient=8a9e486d687856f2016879a3f5320000&src.mail.action=manage>



[Confluence logo big]



This message was sent by Atlassian Confluence 6.13.0
[cid:[email protected]]



--

*Thanks & Regards-*
*Gaurang S Parnaik*
*Mob*-  (+91)9822384333
*Email*-  [email protected]<mailto:[email protected]>
               [email protected]<mailto:[email protected]>

============================================================================================================================

Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.

============================================================================================================================

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

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

Reply via email to