You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by gi...@git.apache.org on 2017/05/19 10:00:57 UTC

[GitHub] ustcweizhou commented on a change in pull request #1965: CLOUDSTACK-9727 Password reset discrepancy in RVR when one of the Rou?

ustcweizhou commented on a change in pull request #1965: CLOUDSTACK-9727 Password reset discrepancy in RVR when one of the Rou?
URL: https://github.com/apache/cloudstack/pull/1965#discussion_r117446899
 
 

 ##########
 File path: server/src/org/apache/cloudstack/network/topology/AdvancedNetworkVisitor.java
 ##########
 @@ -61,13 +61,15 @@
     @Override
     public boolean visit(final UserdataPwdRules userdata) throws ResourceUnavailableException {
         final VirtualRouter router = userdata.getRouter();
-
         final Commands commands = new Commands(Command.OnError.Stop);
         final VirtualMachineProfile profile = userdata.getProfile();
         final NicVO nicVo = userdata.getNicVo();
         final UserVmVO userVM = userdata.getUserVM();
 
-        _commandSetupHelper.createPasswordCommand(router, profile, nicVo, commands);
+        if (router.getRedundantState() == VirtualRouter.RedundantState.MASTER) {
 
 Review comment:
   1. line 69 should be changed to 
   ```
   if (!router.getIsRedundantRouter() || router.getRedundantState() == RedundantState.MASTER) {
   ```
   
   2, this works in a new isolated network ( with RVR), but not working with a new VPC (with RVR). It might because there is always a guest network in new isolated network so VRs are MASTER/BACKUP, but for VPC they are BACKUP/BACKUP. I have no idea how to fix it, maybe we do not change this part and let password stored in both......actually only the first vm in a vpc.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services