-
Bug
-
Resolution: Done
-
High
-
Dublin Release
-
None
This is the issue with the guard policy creation .. I see this ..
at java.lang.Thread.run(Thread.java:748)
[2019-05-16T14:03:33.152+00:00|WARN|LegacyGuardPolicyMapper|qtp872306601-21] policy type for guard policy "vloadbalancerguardpolicy1" unknown
[2019-05-16T14:03:33.153+00:00|ERROR|LegacyApiRestController|qtp872306601-21] POST /policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies
org.onap.policy.models.base.PfModelRuntimeException: policy type for guard policy "vloadbalancerguardpolicy1" unknown
at org.onap.policy.models.tosca.legacy.mapping.LegacyGuardPolicyMapper.toToscaServiceTemplate(LegacyGuardPolicyMapper.java:74)
at org.onap.policy.models.tosca.legacy.provider.LegacyProvider.createGuardPolicy(LegacyProvider.java:231)
at org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl.createGuardPolicy(DatabasePolicyModelsProviderImpl.java:269)
at org.onap.policy.api.main.rest.provider.LegacyGuardPolicyProvider.createGuardPolicy(LegacyGuardPolicyProvider.java:83)
at org.onap.policy.api.main.rest.LegacyApiRestController.createGuardPolicy(LegacyApiRestController.java:240)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
This is the URL body and response:
[2019-05-16T14:03:33.154+00:00|qtp872306601-21]10.42.12.49 - healthcheck [16/May/2019:14:03:32 +0000] "POST /policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies HTTP/1.1" 400 180
{"policy-id":"vloadbalancerguardpolicy1","content":{"recipe":"VF Module Create","clname":"LOOP_vLoadBalancer_v1_0_vLoadBalancerMS0_k8s-tca-clamp-policy-05082019","actor":"SO","targets":".*","min":"1","max":"10","limit":"","timeUnits":"","timeWindow":"","guardActiveStart":"00:00:00Z","guardActiveEnd":"23:59:59Z"}}
(per Seb).