Hi Gülsüm,

Did you execute the commands manually after connecting to PAP POD? If you
are using *exec* then the POD liveness probe will restart the container and
you will lose the below changes.

You need to apply the below workaround manually.

export POLICY_PAP_UI_POD_NAME=$(kubectl get pods -n onap | grep policy-pap
| grep -v 'policy-policy-pap' | awk '{print $1}')


*kubectl exec -n onap ${POLICY_PAP_UI_POD_NAME} -c pap -it -- /bin/bash*
# Simply copy paste the commands in container shell
sed -i "s/^role_access_centralized.*$/#role_access_centralized=remote/g"
/opt/app/policy
/servers/console/webapps/onap/WEB-INF/classes/portal.properties
export POLICY_HOME=/opt/app/policy
export KEYSTORE_PASSWD=Pol1cy_0nap
/opt/app/policy/etc/init.d/pap stop
/opt/app/policy/etc/init.d/console stop

export POLICY_HOME=/opt/app/policy
export KEYSTORE_PASSWD=Pol1cy_0nap
/opt/app/policy/bin/policy.sh start
/opt/app/policy/bin/policy.sh status

Regards
Vivek

On Wed, Apr 29, 2020 at 1:40 PM Gülsüm Atıcı <
[email protected]> wrote:

> Hello Vivek,
>
> I applied the workaround   for  Dublin Policy Portal, however, it still
> fails in the healthcheck.
> Are there any other things need to be fixed?
>
> Thanks,
>
>
> KEYWORD BuiltIn . Should Be Equal As Strings ${resp.status_code}, 200
>
>
> Documentation:
>
> Fails if objects are unequal after converting them to strings.
> Start / End / Elapsed: 20200429 10:59:48.738 / 20200429 10:59:48.739 /
> 00:00:00.001
> 10:59:48.739 TRACE Arguments: [ 403 | '200' ]
>
> 10:59:48.739 DEBUG Test timeout 20 seconds active. 19.967 seconds left.
>
> 10:59:48.739 INFO Argument types are: <type 'int'> <type 'unicode'>
>
> 10:59:48.739 FAIL 403 != 200
>
> 10:59:48.739 DEBUG Traceback (most recent call last): None
>
> 10:59:48.707 TRACE Arguments: [ ]

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

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

Reply via email to