HP VAN SDN Controller Administrator Guide

72
Unpacking hp-sdn-ctl (from hp-sdn-ctl_1.11_amd64.deb) ...
Setup has detected a compatible jre-headless - 1.7.0_25
Creating system group 'sdn'...
...done.
Creating system user 'sdn'...
...done.
Creating system user 'sdnadmin'...
...done.
Configuring PostgreSQL database...
* Restarting PostgreSQL 9.1 database server [ OK ]
...done.
Adding SDN-related items to Keystone...
keystone stop/waiting
keystone start/running, process 11514
...done.
Setting up hp-sdn-ctl (1.11) ...
Certificate was added to keystore
CTL_RESTORE_INSTALL_MODE option is set
SDN controller will be started in restore mode
sdna start/running, process 11633
sdnc start/running, process 11636
Processing triggers for ureadahead ...Caution
Do not re-install any applications before you complete the restore process. The
restoration will add data from the backup file into the current database contents. If
you re-install applications that are part of the controller backup, then those
applications may end up with duplicate or conflicting entries in their database.
Only install applications after you have completed all steps of the restore process.
4. Acquire the authentication token for the system restore:
curl --noproxy <controller_ip> -X POST --fail -ksSfL --url
"https://<controller_ip>:8443/sdn/v2.0/auth" -H "Content-Type: application/json" --
data-binary '{"login": {"domain": "<domain>","user": "<user>","password":
"<password>"}}'
Caution
Credential information (user name, password, domain, and authentication tokens)
used in cURL commands may be saved in the command history. For security
reasons, HP recommends that you disable command history prior to executing
commands containing credential information.
5. Acquire the controller uid for the controller backup:
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksSfL --
request GET --url https://<controller_ip>:8443/sdn/v2.0/systems
6. Use the following cURL command to set the IP address:
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksSfL --
request PUT "https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>" --data-
binary '{"system":{"ip":"<controller_ip>"}}'
7. Perform a single controller restore onto each controller needing restoration.
a. Upload the backup files that will be restored:
curl --noproxy <controller_ip> -X POST --fail -ksSfL --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/backup" -H "X-Auth-
Token:<auth_token>" -H HP-filename:<file-name>.zip --data-binary @<path-and-file-
name>.zip