cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
114
Views
0
Helpful
0
Replies
Highlighted
Cisco Employee

HA master to be slave causes NSO crash

After we upgrade NSO from 4.6.1 to 4.7.5,

The NEDs I used:

show packages package package-version
PACKAGE
NAME VERSION
--------------------------------
cisco-asa 6.7.2
cisco-fmc 1.2.9
cisco-ios 6.33.7
cisco-iosxr 7.13.9
cisco-nx 5.11.2
citrix-netscaler 4.0.3
snmp-notif-recv 1.0
tailf-hcc 4.4.3

 

We have HA master and slave and role: A as master while B is slave; then I makes B as master by deactivating A. The status is currently A as None, B as master.

Then when I try to let A as slave to B, I use command "ha commands role-override role slave; ha commands activate", all the packages reloaded and error occurred as below, please help on it:

 

ncsadmin@ncs# ha commands role-override role slave
status override
ncsadmin@ncs# ha commands activate
status activated
ncsadmin@ncs# ha commands status
status nsomaster[none]
ncsadmin@ncs# ha commands status
status nsomaster[none]
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-1-cisco-asa:ASADp
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-2-cisco-ios:IOSDp
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-3-cisco-nx:NexusDp
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-5-citrix-netscaler:DpCsvserver
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-6-citrix-netscaler:DpLbvserver
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-7-citrix-netscaler:DpNsip6
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-8-citrix-netscaler:DpRoute
ncsadmin@ncs#
System message at 2019-09-25 16:18:10...
Subsystem stopped: ncs-dp-9-citrix-netscaler:DpCitrixNetscaler
ncsadmin@ncs# ha commands status
Error: application communication failure
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-1-cisco-asa:ASADp
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-2-cisco-ios:IOSDp
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-3-cisco-nx:NexusDp
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-5-citrix-netscaler:DpCsvserver
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-6-citrix-netscaler:DpLbvserver
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-7-citrix-netscaler:DpNsip6
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-8-citrix-netscaler:DpRoute
ncsadmin@ncs#
System message at 2019-09-25 16:18:36...
Subsystem started: ncs-dp-9-citrix-netscaler:DpCitrixNetscaler

 

==> ncs-java-vm.log <==
===== EXCEPTION HOOK CALLED ======
<ERROR> 25-Sep-2019::16:18:09.106 NcsMain Timer-1: - Received exception from Thread[Timer-1,5,main]
java.lang.RuntimeException: Failure in PeriodicTask
at com.tailf.ns.tailfHcc.TcmApp$PeriodicTask.run(TcmApp.java:496)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: com.tailf.ha.HaException: Failed to create HA connection
at com.tailf.ns.tailfHcc.Cluster.update(Cluster.java:1231)
at com.tailf.ns.tailfHcc.TcmApp$PeriodicTask.run(TcmApp.java:493)
... 2 more
Caused by: java.lang.NullPointerException
at com.tailf.ns.tailfHcc.Cluster.findFailoverMaster(Cluster.java:183)
at com.tailf.ns.tailfHcc.Cluster.updateLocalNode(Cluster.java:1007)
at com.tailf.ns.tailfHcc.Cluster.update(Cluster.java:1227)
... 3 more
<WARN> 25-Sep-2019::16:18:09.109 NcsMain Timer-1: - Initializing shutdown
<WARN> 25-Sep-2019::16:18:09.109 NcsMain Timer-1: - shutdown() called =>
<WARN> 25-Sep-2019::16:18:10.111 NcsMain SHUTDOWN-THREAD: - Stopping by System.exit()
<WARN> 25-Sep-2019::16:18:10.111 NcsMain SHUTDOWN-THREAD: - NCS JVM STOPPED

 

 

But when I try to use command "ha commands force-be-slave-to member nsoslave, ha commands activate", it works well, result shows as below:

"status nsomaster[slave] connected nsoslave[master]"