Hello Adam, I inquired to one of the local experts in this area about this issue, and what needs to be preloaded if any in policy previous provisioning control loops using clamp. I got the feedback that the drl template should be the only thing preloaded (this step is in line 26 of the push-policies.sh script and note that no modifications in the script or environment variable is necessary for that line to be executed). If that's the case, you don't need steps 1-5 below, as this will do:
kubectl exec -it <pap-pod> -c pap -n onap -- bash -c " /tmp/policy-install/config/push-policies.sh" If you have a chance at some point to corroborate if that's indeed correct, let us know. If you want to run the whole push-policies.sh with all demo policies, can also avoid 1-5 steps and just run a single command: kubectl exec -it dev-pap-8587696769-vwj6k -c pap -n onap -- bash -c "export PRELOAD_POLICIES=true; /tmp/policy-install/config/push-policies.sh" If you want to modify custom changes to preload policies, then yes, you would need something like the 1-5 steps that you outlined. Best regards, Jorge From: [email protected] [mailto:[email protected]] On Behalf Of Krysiak, Adam (Nokia - PL/Wroclaw) Sent: Wednesday, December 05, 2018 2:14 AM To: [email protected]; [email protected] Subject: Re: [onap-discuss] [clamp] [policy]closed loop distribution error Hi, It's an issue inside Policy component. On PAP container there is script called push-policies.sh. It is responsible for creating initial policies in Policy. The problem is that in first step this script tries to download drools rule template. Unfortunately folder where it's located belongs to root and there is no permission to add anything new. As workaround: 1. Enter PAP container 2. Create new folder 3. copy push-policies from /tmp/policy-install/config/ to your new folder 4. set variable PRELOAD_POLICIES to true 5. run push-policies.sh Hope this helps. Br, Adam Krysiak Software Engineer MN MANO RD&Pz ONAP-UI-ML DEVOPS WRO 2 SG Nokia Contact number: +48691441316 ________________________________ From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> on behalf of Chandra <[email protected]<mailto:[email protected]>> Sent: Wednesday, December 5, 2018 6:28:39 AM To: [email protected]<mailto:[email protected]> Subject: [onap-discuss] [clamp] [policy]closed loop distribution error Hi All, We are getting the error while distributing the closed loop from CLAMP GUI. We are using OOM K8s deployment of Cassablanca release. The error description is - policy send failed PE300: Invalid template, the template name closedLoopControlName was not found in the dictionary. Please refer to attached screenshot Tried to check the CLAMP logs in main POD of CLAMP , however not able to see anything in log directory. Can someone let us know where to find the CLAMP logs. We have no files in the /var/log/onap directory. bash-4.2$ cd onap bash-4.2$ ls -lrt total 0 bash-4.2$ pwd /var/log/onap bash-4.2$ Tried to check the existing Jira ticket similar to this error https://jira.onap.org/browse/POLICY-275<https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.onap.org_browse_POLICY-2D275&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=E1r8yv0jZdrvzZnKiY2kCyG1EPCtCkU-Px9QM2uLgtI&s=YCvrlFoRpWfYmWN6l1wX-yESP7HkIj1-ocka2vkqgqo&e=> .. But this was fixed in Amsterdam. Can anyone have any insight on this error? ============================================================================================================================ 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<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.techmahindra.com_Disclaimer.html&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=E1r8yv0jZdrvzZnKiY2kCyG1EPCtCkU-Px9QM2uLgtI&s=icaUQb0Y1Y_ACPMrzTRGmNV47DfFJka22n40K38Y5wY&e=> externally http://tim.techmahindra.com/tim/disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__tim.techmahindra.com_tim_disclaimer.html&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=E1r8yv0jZdrvzZnKiY2kCyG1EPCtCkU-Px9QM2uLgtI&s=kNF1RvB7qD6cOAmc4FEmbOPF3wXQFxPkjn9YsUcvk0A&e=> internally within TechMahindra. ============================================================================================================================ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14287): https://lists.onap.org/g/onap-discuss/message/14287 Mute This Topic: https://lists.onap.org/mt/28608380/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
