Skip to content

Commit 39a671d

Browse files
committed
CLOUDSTACK-7919: If there is an out of band movement for the VR, irrespective of the fact that came as out of band live migrate or HA, reboot the router to make sure the router has all the rules configured.
1 parent 2d4e879 commit 39a671d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@ public boolean postStateTransitionEvent(final StateMachine2.Transition<State, Vi
25772577
final State oldState = transition.getCurrentState();
25782578
final State newState = transition.getToState();
25792579
final VirtualMachine.Event event = transition.getEvent();
2580-
if (oldState == State.Stopped && event == VirtualMachine.Event.FollowAgentPowerOnReport && newState == State.Running) {
2580+
if (event == VirtualMachine.Event.FollowAgentPowerOnReport && newState == State.Running) {
25812581
if (vo.getType() == VirtualMachine.Type.DomainRouter) {
25822582
s_logger.info("Schedule a router reboot task as router " + vo.getId() + " is powered-on out-of-band. we need to reboot to refresh network rules");
25832583
_executor.schedule(new RebootTask(vo.getId()), 1000, TimeUnit.MICROSECONDS);

0 commit comments

Comments
 (0)