HP VAN SDN Controller Administrator Guide v3
2. Before restoring a controller, set CTL_RESTORE_INSTALL_MODE=True in the
~/.sdn_install_options file in the home directory. If this file is not present in the directory, create
it with the CTL_RESTORE_INSTALL_MODE entry. If the file is already present, ensure that it
includes the CTL_RESTORE_INSTALL_MODE entry. This entry directs the installer to perform
the necessary changes to direct the controller to start in recovery/restore mode, during which
OpenFlow activity is suspended for the subject controller.
3. Re-install the failed controller(s), making sure to use the same IP address configuration. During
the re-installation, log messages similar to the following appear in the Audit Log:
root@mak:~/dev/controller/dist# dpkg -i
hp-sdn-ctl_1.11_amd64.deb
Selecting previously unselected package hp-sdn-ctl.
(Reading database ... 212350 files and directories currently
installed.)
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.
8.2 Restore a Controller from a Backup 97