Hi

I have a ctrl-loop created in CLAMP. I get an error when submitting policies to 
Policy Engine:

------------------------------------------------------------------------------------------------------------
SUBMIT request failed, Error reported: 
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation 
failed invoking 
https://policy-api.onap:6969/policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies?connectionTimeToLive=5000
 with statusCode: 406 - Body: {"code":"NOT_ACCEPTABLE","error":"\n***validation 
of model failed***\nPfConceptKey(name=ToscaServiceTemplateSimple, 
version=1.0.0):org.onap.policy.models.tosca.simple.concepts.JpaToscaServiceTemplate:INVALID:no
 policy types are defined on the service template for the policies in the 
topology 
template\n********************************","details":["\n***validation of 
model failed***\nPfConceptKey(name=ToscaServiceTemplateSimple, 
version=1.0.0):org.onap.policy.models.tosca.simple.concepts.JpaToscaServiceTemplate:INVALID:no
 policy types are defined on the service template for the policies in the 
topology template\n********************************"]}
------------------------------------------------------------------------------------------------------------

I looked for this message "no policy types are defined..." in Policy code and 
it seems it comes from service template validation 
(JpaToscaServiceTemplate.validatePolicyTypesInPolicies()). And it seems it's 
raised when there are no policy types defined in the template (if I get this 
right). However I looked in to the template generated by SDC and it looks like 
policy types are imported there. I'm attaching CSAR exported from SDC.

Could you give me a hint what might be wrong?

Thanks
-Lukasz

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

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

Attachment: service-LgAaSrv-csar.csar
Description: service-LgAaSrv-csar.csar

Reply via email to