How do I enable automatic VSR-NRC site switchover?
Automatic VSR-NRC site switchover
This procedure can be used to enable automatic swtichover from the primary VSR-NRC site to the inactive VSR-NRC site.
If the primary VSR-NRC loses Cproto channel connectivity to the NSP host server, the NSP host server raises a cprotoChannelDown alarm. This alarms triggers a workflow. After a configurable down timer (with a default value of 5 minutes) expires, the workflow checks whether the cprotoChannelDown alarm has been cleared. If it has, cproto connectivity is up, and the workflow doesn't continue. However, if the alarm still exists, the workflow will ping the VSR-NRC at the inactive site to ensure it is in better shape before initiating site switchover.
Steps
Create a Kafka Trigger
|
|
|
1 |
From the Workflows, Kafka Triggers view, click CREATE KAFKA TRIGGER. The Create Kafka Trigger form opens.
|
2 |
Configure the parameters as follows:
-
Workflow (PUBLISHED): switchover
-
Kafka Topic: nsp-db-fm
-
Trigger Rule: $[?(@.alarmName == 'CprotoChannelDown' && @.severity == 'major')]
-
Kafka Event: CREATE
-
Enable the ENABLED check box
|
3 |
Click CREATE. The Kafka Trigger is created.
|
Create an Environment
|
|
|
4 |
From the Workflows, Environments view, click CREATE ENVIRONMENT. The Create Environment form opens.
|
5 |
Add the following variables:
-
username: The username used to log in to the NSP host server
-
password: The password used with the above username
-
ping_duration: 3
-
delay: 300
-
site1_vsr: The IP address of the primary VSR-NRC
-
site1_wfm: The private IP address of the primary Workflow Manager
-
site1_vip_advertised: The advertised IP address of the primary NSP host server
-
site2_vsr: The IP address of the standby VSR-NRC
-
site2_wfm: The private IP address of the standby Workflow Manager
-
site2_vip_advertised: The advertised IP address of the standby NSP host server
-
site2_sdn1: The private IP address of the first member of the standby NSP host server cluster
-
site2_sdn2: The private IP address of the second member of the standby NSP host server cluster
-
site2_sdn3: The private IP address of the third member of the standby NSP host server cluster
Note: If the NSP host server was deployed with 1+1 redundancy, the values of site2_sdn1, site2_sdn2, and site2_sdn3 should be set to 'null'.
|
Import or create workflow
|
|
|
6 |
Perform one of the following:
-
From the Workflows, All Workflows view, choose IMPORT > File System.
-
From the Workflows, All Workflows view, choose IMPORT > GitHub.
-
From the Workflows, All Workflows view, click WORKFLOW.
|
7 |
See the NSP Network Automation Guide for more information about creating workflows.
End of steps |
© 2024 Nokia. Nokia Confidential Information
Use subject to agreed restrictions on disclosure and use.