Thanks for your response. it worked.

Thanks,
Vidya

On Thu, Nov 15, 2018 at 10:47 AM HERNANDEZ-HERRERO, JORGE <[email protected]>
wrote:

> Hi Vidya, not sure, will have to review the page carefully.   In any case,
> the page predates oom where you are getting caught by liveness failures.
> If you do an oom install from master, the only thing that you will need to
> do is to run the following sequence of commands back to back (nothing else
> should be needed):
>
> “policy stop; feature enable controlloop-utils; policy start;”
>
> They should fit within the time window before the container is declared
> unresponsive.   I think that’s the easiest option to make progress.
>
> Jorge
>
>
>
> *From:* Vidya Bijoor [mailto:[email protected]]
> *Sent:* Wednesday, November 14, 2018 10:23 PM
> *To:* [email protected]; HERNANDEZ-HERRERO, JORGE <
> [email protected]>
> *Cc:* Gaurav agrawal <[email protected]>; [email protected]
> *Subject:* Re: [onap-discuss][policy] CCVPN Casablanca Integration
> testing - policy-drools restarts after "policy stop" command
>
>
>
> Hi Jorge,
>
>
>
> I am following this wiki page as reference for testing (
> https://wiki.onap.org/display/DW/ONAP+Policy+Framework%3A+Installation+of+Amsterdam+Controller+and+vCPE+Policy
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_ONAP-2BPolicy-2BFramework-253A-2BInstallation-2Bof-2BAmsterdam-2BController-2Band-2BvCPE-2BPolicy&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=yatcudkmm0FkMM09mSh7Y65T_Ncieq70JfLvDYCnwkk&s=0Jy2s4wCYaj-jlpJO7hCroiY4Av5eNSrbemrnusnTeI&e=>
> )
>
>
>
> Install the *controlloop-utils* Drools PDP feature to allow standalone
> execution of control loop policies
>
> features install controlloop-utils
>
> features enable controlloop-utils
>
> By Default, controlloop-utils is disabled,  To enable the
> controloop-utils, I need to stop the policy(policy stop).  Whenever I stop
> the policy process, container is restarting So I am not able to enable
> controloop-utils.
>
>
>
> policy@dev-policy-drools-0:/tmp$ features status
>
> name                      version         status
>
> ----                      -------         ------
>
> eelf                      1.3.3           disabled
>
> pooling-dmaap             1.3.3           disabled
>
> active-standby-management 1.3.3           disabled
>
> test-transaction          1.3.3           disabled
>
> controlloop-amsterdam     1.3.3           enabled
>
> controlloop-casablanca    1.3.3           disabled
>
> controlloop-trans         1.3.3           enabled
>
> *controlloop-utils         1.3.3           disabled*
>
> distributed-locking       1.3.3           enabled
>
> state-management          1.3.3           disabled
>
> healthcheck               1.3.3           enabled
>
> session-persistence       1.3.3           disabled
>
>
>
> policy@dev-policy-drools-0:/tmp$
>
>
>
>
>
>
>
> Thanks,
>
> Vidya
>
>
>
>
>
> On Wed, Nov 14, 2018 at 9:25 PM Jorge Hernandez <
> [email protected]> wrote:
>
> Hello Vydia,
>
> kubernetes is very likely restarting the container in your case failing
> the liveness check, as the process has been stopped (policy stop).    It is
> probably better if you are doing some changes within the container to make
> those changes first and then follow it with “policy stop; policy start” to
> avoid this situation.    As a note, it seems you also have an “older”  oom
> installation going, as I see you have 2 drools container with 2 different
> naming conventions.  I don’t think would have side effects but fyi.
>
> Best regards,
>
> Jorge
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Vidyashree Rama
> *Sent:* Wednesday, November 14, 2018 12:50 AM
> *To:* [email protected]
> *Cc:* Gaurav agrawal <[email protected]>; [email protected]
> *Subject:* [onap-discuss][policy] CCVPN Casablanca Integration testing -
> policy-drools restarts after "policy stop" command
>
>
>
> Hi All,
>
>
>
> Please help to check this problem
>
>
>
> *Issue:* policy-drools restarts after "policy stop" command
>
>
>
> *Logs:*
>
>
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$ features status
>
> name                      version         status
>
> ----                      -------         ------
>
> eelf                      1.3.3           disabled
>
> pooling-dmaap             1.3.3           disabled
>
> active-standby-management 1.3.3           disabled
>
> test-transaction          1.3.3           disabled
>
> controlloop-amsterdam     1.3.3           enabled
>
> controlloop-casablanca    1.3.3           disabled
>
> controlloop-trans         1.3.3           enabled
>
> controlloop-utils         1.3.3           disabled
>
> distributed-locking       1.3.3           enabled
>
> state-management          1.3.3           disabled
>
> healthcheck               1.3.3           enabled
>
> session-persistence       1.3.3           disabled
>
>
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$ telemetry
>
> generating new spec ..
>
> Version: 1.0.0
>
> Config file not found. Initialized a new one:
> /home/policy/.config/http-prompt/config.py
>
> https://localhost:9696/policy/pdp/engine> exit
>
> Goodbye!
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$ *policy stop*
>
> [drools-pdp-controllers]
>
>  L []: Stopping Policy Management... Policy Management (pid=4079) is
> stopping... Policy Management has stopped.
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$
>
> policy@dev-policy-drools-0:/var/log/onap/policy/pdpd$ *command terminated
> with exit code 137         ====> exits abruptly*
>
> ubuntu@oom-rancher:~$ kubectl get pod -n onap | grep policy
>
> dep-policy-handler-5bb8df8ff5-zv8pt                    2/2       Running
>          0          14d
>
> dep-policy-handler-6554f78c8-6npx7                     2/2       Running
>          0          13d
>
> dev-policy-brmsgw-9b78694b7-87cp5                      1/1       Running
>          0          16h
>
> *dev-policy-drools-0                                    1/1       Running
>            5          16h*
>
> dev-policy-nexus-844bc4c98f-9frd5                      1/1       Running
>          0          16h
>
> dev-policy-pap-75bc8d86df-q9pzc                        2/2       Running
>          0          16h
>
> dev-policy-pdp-0                                       2/2       Running
>          0          16h
>
> dev-policy-policy-apex-pdp-0                           1/1       Running
>          0          16h
>
> dev-policy-policy-distribution-95cd64db5-448s8         1/1       Running
>          0          16h
>
> dev-policy-policydb-676d8c98c8-k2zpm                   1/1       Running
>          0          16h
>
> ubuntu@oom-rancher:~$ *kubectl -n onap logs dev-policy-drools-0 *
>
> installing ..
>
> found preinstallation script
>
> invoking config/apps-install.sh for controlloop 1.3.3 at
> /tmp/policy-install
>
> + APP_NAME=controlloop
>
> + [[ -z controlloop ]]
>
> + APP_VERSION=1.3.3
>
> + [[ -z 1.3.3 ]]
>
> + DOWNLOAD_DIR=/tmp/policy-install
>
> + [[ -z /tmp/policy-install ]]
>
> + [[ ! -d /tmp/policy-install ]]
>
> + APP_GROUP_ID=org.onap.policy.drools-applications.controlloop.packages
>
> + APP_ARTIFACT_ID=apps-controlloop
>
> + APP_BASE_URL=https://nexus.onap.org/content/repositories
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__nexus.onap.org_content_repositories&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=E4I5C6XYBcAVf1iW0fYEWxsHvr2sqUgOU_raY0vcbq4&e=>
>
> + APP_URL=https://nexus.onap.org/content/repositories
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__nexus.onap.org_content_repositories&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=E4I5C6XYBcAVf1iW0fYEWxsHvr2sqUgOU_raY0vcbq4&e=>
>
> + [[ 1.3.3 =~ -SNAPSHOT$ ]]
>
> + url_release
>
> + [[ y == y ]]
>
> + echo '-- url_release --'
>
> + set -x
>
> + APP_URL=
> https://nexus.onap.org/content/repositories/releases/org/onap/policy/drools-applications/controlloop/packages/apps-controlloop/1.3.3/apps-controlloop-1.3.3.zip
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__nexus.onap.org_content_repositories_releases_org_onap_policy_drools-2Dapplications_controlloop_packages_apps-2Dcontrolloop_1.3.3_apps-2Dcontrolloop-2D1.3.3.zip&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=Go-ihSvTcMb2FFe7pV8ENp6_SnG2wZYR47rxkRG7RVM&e=>
>
> + wget
> https://nexus.onap.org/content/repositories/releases/org/onap/policy/drools-applications/controlloop/packages/apps-controlloop/1.3.3/apps-controlloop-1.3.3.zip
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__nexus.onap.org_content_repositories_releases_org_onap_policy_drools-2Dapplications_controlloop_packages_apps-2Dcontrolloop_1.3.3_apps-2Dcontrolloop-2D1.3.3.zip&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=Go-ihSvTcMb2FFe7pV8ENp6_SnG2wZYR47rxkRG7RVM&e=>
> -O /tmp/policy-install/apps-controlloop.zip
>
> -- url_release --
>
> *--2018-11-14 05:26:48-- *
> https://nexus.onap.org/content/repositories/releases/org/onap/policy/drools-applications/controlloop/packages/apps-controlloop/1.3.3/apps-controlloop-1.3.3.zip
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__nexus.onap.org_content_repositories_releases_org_onap_policy_drools-2Dapplications_controlloop_packages_apps-2Dcontrolloop_1.3.3_apps-2Dcontrolloop-2D1.3.3.zip&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=Go-ihSvTcMb2FFe7pV8ENp6_SnG2wZYR47rxkRG7RVM&e=>
>
> Resolving nexus.onap.org
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus.onap.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=G8Y06iFEVPjSOVpHUD9_qw-jk7rR5DBjQ4BNFz5ycWU&e=>
> (nexus.onap.org
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus.onap.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=G8Y06iFEVPjSOVpHUD9_qw-jk7rR5DBjQ4BNFz5ycWU&e=>)...
> 199.204.45.137, 2604:e100:1:0:f816:3eff:fefb:56ed
>
> Connecting to nexus.onap.org
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus.onap.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=G8Y06iFEVPjSOVpHUD9_qw-jk7rR5DBjQ4BNFz5ycWU&e=>
> (nexus.onap.org
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus.onap.org&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=GptnFU-zYcRFPtEgGBHkR4ICXw8QIkL6DFp4OSOckGI&s=G8Y06iFEVPjSOVpHUD9_qw-jk7rR5DBjQ4BNFz5ycWU&e=>)|199.204.45.137|:443...
> connected.
>
> HTTP request sent, awaiting response... 200 OK
>
> Length: 4374187 (4.2M) [application/zip]
>
> Saving to: '/tmp/policy-install/apps-controlloop.zip'
>
>
>
> ubuntu@oom-rancher:~$ date
>
> *Wed Nov 14 05:29:38 UTC 2018*
>
> ubuntu@oom-rancher:~$
>
> ubuntu@oom-rancher:~$ kubectl get pod -n onap | grep drools
>
> dev-drools-0                                           1/1       Running
>          0          19d
>
> *dev-policy-drools-0                                    1/1       Running
>            5          17h  *
>
> ubuntu@oom-rancher:~$
>
>
>
> Thanks,
>
> Vidya
>
>
>
>
>
> 
>
>

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

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

Reply via email to