Manoj,

Two small comments:

1.       ./cleanup.sh so (not dev-so, dev is added automatically by the script)

2.       This is what the script removes: secrets, configmaps, pvc, pv, 
services, deployments, statefulsets, clusterrolebinding

You can try to add job to that list and see what happens. If it works, it would 
be a nice thing to have.

The complete set of operations to delete a specific component is:

·         helm del --purge dev-<component_name>

·         rm -rf /dockerdata-nfs/dev-<component_name>/*

·         ./cleanup.sh <component_name>

The reason why we created the cleanup.sh script is because helm del --purge 
doesn’t always remove everything.

Thanks,
Marco

From: <[email protected]> on behalf of BRIAN FREEMAN <[email protected]>
Reply-To: "[email protected]" <[email protected]>, BRIAN 
FREEMAN <[email protected]>
Date: Thursday, July 11, 2019 at 11:20 AM
To: "'[email protected]'" <[email protected]>, 
"'[email protected]'" <[email protected]>
Subject: Re: [onap-discuss] Steps to Remove Deployment of ONAP

***Security Advisory: This Message Originated Outside of AT&T ***
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.


Sorry that is the script for an individual module

./cleanup.sh dev-so  for example.

Brian


From: FREEMAN, BRIAN D
Sent: Thursday, July 11, 2019 11:19 AM
To: [email protected]; [email protected]
Subject: RE: [onap-discuss] Steps to Remove Deployment of ONAP

I use this script (you have most of the steps) and then check jobs

[integration.git] / deployment / heat / onap-rke / scripts / cleanup.sh

Cd ...
./cleanup.sh
kubectl -n onap get jobs
kubectl -n onap delete job xxxx

(cleanup.sh might have been updated to handle jobs but I’m not sure )

Brian



From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf Of 
Manoj K Nair
Sent: Thursday, July 11, 2019 11:13 AM
To: [email protected]<mailto:[email protected]>
Subject: [onap-discuss] Steps to Remove Deployment of ONAP

Hi,

I would like to know is there is any recommended steps for removing a bad ONAP 
deployment (not individual projects, but whole ONAP that failed due to timing 
issues, sync issues etc).  I noted that in page 
here<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_Cloud-2BNative-2BDeployment-23CloudNativeDeployment-2DPODredeployment_undeploy_deploy&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=-O6KzhPMuqLm8FWnrsrA_dUFdsVpwUs6SGcw4WT2JsQ&s=A-mZ29duAvlvkeyoyEpBCqlVykbKuIBodBBuWfH_6kA&e=>,
 following steps are mentioned
kubectl delete namespace onap
sudo helm delete --purge onap
kubectl delete pv --all
kubectl delete pvc --all
kubectl delete secrets --all
kubectl delete clusterrolebinding --all
sudo rm -rf /dockerdata-nfs/onap-<pod>

This used to work in Casablanca. But in Dublin it seems some additional steps 
are required like patching the finalizer for namespace/pv/pvc etc. Appreciate 
if someone can suggest the recommended steps for undeploy/redeploy ONAP in case 
of a failed installation attempt.

Regards

Manoj



________________________________
The information transmitted herein is intended only for the person or entity to 
which it is addressed and may contain confidential, proprietary and/or 
privileged material. Any review, retransmission, dissemination or other use of, 
or taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited. If you received this 
in error, please contact the sender and delete the material from any computer.


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

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

Reply via email to