Restoring the Configuration from Back Up
This section describes the procedure involved in restoring all the Policy Builder and CRD configuration files from the backup.
Restoring Policy Builder Configuration
-
Log in to the master node as an ubuntu user.
-
Retrieve the Cisco Policy Suite Central URL.
Example:
ubuntu@popcf-mas01:~/backups_09182019_T2141$ kubectl get ing -n $( kubectl get namespaces | grep -oP 'pcf-(\d+|\w+)' | cut -d\ -f1) | grep policy-builder | awk '{ print $2 }' pb.pcf-02-pcf-engine-app-blv02.<ipv4address>.nip.io
-
Navigate to the Cisco Policy Suite Central URL.
-
Log in with your user credentials.
-
Click Import/Export.
-
Click Import tab.
-
Click File to Import.
-
Select the exported policy backed up in the Back Up SVN, Policy, and CRD Data section.
-
In Import URL, specify the following URL:
http://svn/repos/configuration
-
Enter a brief description in Commit Message text-box.
-
Click Import.
-
Log in to the master node as an ubuntu user.
-
Run the following command to retrieve the Cisco Policy Builder URL.
Example:
kubectl get ing -n $(kubectl get namespaces | grep -oP 'pcf-(\d+|\w+)' | cut -d\ -f1) | grep policy-builder | awk '{ print "https://"$2"/pb" }' https://pb.pcf-02-pcf-engine-app-blv02.<ipv4address>.nip.io/pb ubuntu@popcf-mas01:~/backups_09182019_T2141$
-
Navigate to the Cisco Policy Builder URL.
-
Click Build Policies using version controlled data.
-
Choose Repository from the drop-down list.
-
Click OK.
-
Log in with your user credentials.
-
Click File.
-
Click Publish to Runtime Environment.
-
Enter a brief description in Commit Message.
-
Click OK.
Restoring CRD Data
-
In CPS Central home page, click Custom Reference Data.
-
Check the Export CRD to Golden Repository check-box.
-
Specify the SVN host name in Please enter valid server Hostname or IP text-box.
NoteFor PCF the SVN host name value is svn.
-
Click +.
-
Click Export.
NoteYou receive a success message when the data is exported successfully.
Removing Temporary Files
-
Log in to SMI Cluster Manager as an ubuntu user.
-
Delete the temporary directory.
NoteEnsure that a copy of the image is stored on OSPD before deleting.
Example:
ubuntu@popcf-cm01:~$ ls | grep temp temp_09192019_T0143 ubuntu@popcf-cm01:~/temp_08072019_T1651$ ubuntu@popcf-cm01:~/temp_08072019_T1651$ rm –f temp_09192019_T0143 ubuntu@popcf-cm01:~/temp_08072019_T1651$