Dear Policy and Clamp Team,
I've got errors to say that could not find policy with ... in El Alto branch
when I operated the
'Manage – Submit' on CLAMP GUI.
I found that there is no record related to pdp group tables, but there are in
toscapolicy and jpatoscapolicy_properties.
Does anyone kindly help me with fixing this issue?
# policy-api
kubectl -n onap exec -it dev-policy-policy-api-5b79948d4d-4jrdv bash
[2020-04-09T11:24:57.987+00:00|ERROR|ApiRestController|qtp176041373-21] GET
/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/tca_k8s_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019/versions/deployed
org.onap.policy.models.base.PfModelException: could not find policy with ID
tca_k8s_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019 and type
onap.policies.monitoring.cdap.tca.hi.lo.app:1.0.0 deployed in any pdp group
--
[2020-04-09T11:24:58.135+00:00|ERROR|LegacyApiRestController|qtp176041373-24]
GET
/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies/OPERATIONAL_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019/versions/1
org.onap.policy.models.base.PfModelRuntimeException: no policy found for
policy: OPERATIONAL_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019:1
--
[2020-04-09T11:24:58.280+00:00|ERROR|LegacyApiRestController|qtp176041373-20]
GET
/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies/OPERATIONAL_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019/versions/deployed
org.onap.policy.models.base.PfModelException: could not find policy with ID
OPERATIONAL_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019 and type
onap.policies.controlloop.Operational:1.0.0 deployed in any pdp group
--
[2020-04-09T11:24:58.410+00:00|ERROR|LegacyApiRestController|qtp176041373-20]
GET
/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.vlbpolicy_CDS1/versions/1
org.onap.policy.models.base.PfModelRuntimeException: no policy found for
policy: guard.frequency.vlbpolicy_CDS1:1
--
[2020-04-09T11:24:58.592+00:00|ERROR|LegacyApiRestController|qtp176041373-18]
GET
/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/guard.frequency.vlbpolicy_CDS1/versions/deployed
org.onap.policy.models.base.PfModelException: could not find policy with ID
guard.frequency.vlbpolicy_CDS1 and type
onap.policies.controlloop.guard.FrequencyLimiter:1.0.0 deployed in any pdp group
# policydb
kubectl -n onap exec -it dev-policy-policydb-7c87d9646f-phfb9 -- mysql -uroot
-psecret -e 'select * from policyadmin.toscapolicy;'
+-------------+-------------------+----------------------+---------------------------------------------------------------+---------+---------------------------------------------+--------------+
| DESCRIPTION | derived_from_name | derived_from_version | name
| version | type_name
| type_version |
+-------------+-------------------+----------------------+---------------------------------------------------------------+---------+---------------------------------------------+--------------+
| NULL | NULL | NULL |
tca_k8s_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019 | 1.0.0 |
onap.policies.monitoring.cdap.tca.hi.lo.app | 1.0.0 |
+-------------+-------------------+----------------------+---------------------------------------------------------------+---------+---------------------------------------------+--------------+
kubectl -n onap exec -it dev-policy-policydb-7c87d9646f-phfb9 -- mysql -uroot
-psecret -e 'select * from policyadmin.jpatoscapolicy_properties;'
+---------------------------------------------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------+
| name | version |
PROPERTIES
| PROPERTIES_KEY |
+---------------------------------------------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------+
| tca_k8s_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019 | 1.0.0 |
{"domain":"measurementsForVfScaling","metricsPerEventName":[{"policyVersion":"1.0.2","thresholds":[{"severity":"CRITICAL","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":30,"closedLoopEventStatus":"ONSET","closedLoopControlName":"LOOP_vlb_cds1_v1_0_vlb_cds10_k8s-tca-clamp-policy-05162019","version":"1.0.2","direction":"GREATER_OR_EQUAL"}],"policyName":"vlbpolicy_CDS1","controlLoopSchemaType":"VM","policyScope":"vlbclosedloop_CDS1","eventName":"vLoadBalancer"}]}
| tca_policy |
+---------------------------------------------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------+
kubectl -n onap exec -it dev-policy-policydb-7c87d9646f-phfb9 -- mysql -uroot
-psecret -e 'select * from policyadmin.pdpgroup';
+-----------------------------------------------------------------------+---------------+--------------+---------+
| DESCRIPTION |
PDPGROUPSTATE | name | version |
+-----------------------------------------------------------------------+---------------+--------------+---------+
| The default group that registers all supported policy types and pdps. |
3 | defaultGroup | 0.0.0 |
+-----------------------------------------------------------------------+---------------+--------------+---------+
kubectl -n onap exec -it dev-policy-policydb-7c87d9646f-phfb9 -- mysql -uroot
-psecret -e 'select * from policyadmin.pdpsubgroup';
+----------------------+----------------------+-----------------+-----------+------------------+---------------+
| CURRENTINSTANCECOUNT | DESIREDINSTANCECOUNT | parentLocalName | localName |
parentKeyVersion | parentKeyName |
+----------------------+----------------------+-----------------+-----------+------------------+---------------+
| 1 | 1 | NULL | apex |
0.0.0 | defaultGroup |
| 1 | 1 | NULL | drools |
0.0.0 | defaultGroup |
| 1 | 1 | NULL | xacml |
0.0.0 | defaultGroup |
+----------------------+----------------------+-----------------+-----------+------------------+---------------+
kubectl -n onap exec -it dev-policy-policydb-7c87d9646f-phfb9 -- mysql -uroot
-psecret -e 'select * from policyadmin.pdpgroup_pdpsubgroup';
+--------------+---------+-----------------+-----------+------------------+---------------+
| name | version | parentLocalName | localName | parentKeyVersion |
parentKeyName |
+--------------+---------+-----------------+-----------+------------------+---------------+
| defaultGroup | 0.0.0 | NULL | apex | 0.0.0 |
defaultGroup |
| defaultGroup | 0.0.0 | NULL | drools | 0.0.0 |
defaultGroup |
| defaultGroup | 0.0.0 | NULL | xacml | 0.0.0 |
defaultGroup |
+--------------+---------+-----------------+-----------+------------------+---------------+
kubectl -n onap exec -it dev-policy-policydb-7c87d9646f-phfb9 -- mysql -uroot
-psecret -e 'select * from policyadmin.pdpsubgroup_pdp';
+------------------+---------------------+--------------------+--------------+-----------------+----------------------------------------------+------------------+---------------+
| pdpParentKeyName | pdpParentKeyVersion | pdpParentLocalName | pdpLocalName |
parentLocalName | localName |
parentKeyVersion | parentKeyName |
+------------------+---------------------+--------------------+--------------+-----------------+----------------------------------------------+------------------+---------------+
| defaultGroup | 0.0.0 | NULL | apex |
apex | apex_12 | 0.0.0
| defaultGroup |
| defaultGroup | 0.0.0 | NULL | drools |
drools | dev-policy-drools-0 | 0.0.0
| defaultGroup |
| defaultGroup | 0.0.0 | NULL | xacml |
xacml | dev-policy-policy-xacml-pdp-6696c8c5bd-5n47v | 0.0.0
| defaultGroup |
+------------------+---------------------+--------------------+--------------+-----------------+----------------------------------------------+------------------+---------------+
Ref:
https://gerrit.onap.org/r/c/policy/api/+/92616/2/main/src/main/java/org/onap/policy/api/main/rest/provider/CommonModelProvider.java#186
Yukihiro Kishimoto
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20602): https://lists.onap.org/g/onap-discuss/message/20602
Mute This Topic: https://lists.onap.org/mt/72915462/21656
Mute #policy: https://lists.onap.org/mk?hashtag=policy&subid=2740164
Mute #clamp: https://lists.onap.org/mk?hashtag=clamp&subid=2740164
Mute #elalto: https://lists.onap.org/mk?hashtag=elalto&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-