Skip to content

Commit ebb9a0c

Browse files
author
Sheng Yang
committed
Revert "CLOUDSTACK-2792: Send "saved_password" to BACKUP router when reset password for user VM"
This reverts commit 5a8a2a2. We would fix it in another way, since mgmt server may get state updated in time. Conflicts: server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
1 parent 883b980 commit ebb9a0c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3384,12 +3384,7 @@ private void createPasswordCommand(VirtualRouter router, VirtualMachineProfile p
33843384

33853385
// password should be set only on default network element
33863386
if (password != null && nic.isDefaultNic()) {
3387-
String encodedPassword = PasswordGenerator.rot13(password);
3388-
// We would unset password for BACKUP router in the RvR, to prevent user from accidently reset the
3389-
// password again after BACKUP become MASTER
3390-
if (router.getIsRedundantRouter() && router.getRedundantState() != RedundantState.MASTER) {
3391-
encodedPassword = PasswordGenerator.rot13("saved_password");
3392-
}
3387+
final String encodedPassword = PasswordGenerator.rot13(password);
33933388
SavePasswordCommand cmd = new SavePasswordCommand(encodedPassword, nic.getIp4Address(), profile.getVirtualMachine().getHostName(), _networkModel.getExecuteInSeqNtwkElmtCmd());
33943389
cmd.setAccessDetail(NetworkElementCommand.ROUTER_IP, getRouterControlIp(router.getId()));
33953390
cmd.setAccessDetail(NetworkElementCommand.ROUTER_GUEST_IP, getRouterIpInNetwork(nic.getNetworkId(), router.getId()));

0 commit comments

Comments
 (0)