This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch 4.13 in repository https://gitbox.apache.org/repos/asf/cloudstack.git
View the commit online: https://github.com/apache/cloudstack/commit/23ca806db99f51e3237b7c86a37146dc1e9d28d6 The following commit(s) were added to refs/heads/4.13 by this push: new 23ca806 kvm: fix issue that network rules for secondary IPs are not applied (#3636) 23ca806 is described below commit 23ca806db99f51e3237b7c86a37146dc1e9d28d6 Author: Wei Zhou <[email protected]> AuthorDate: Thu Nov 21 07:10:17 2019 +0100 kvm: fix issue that network rules for secondary IPs are not applied (#3636) When I add a secondary IP to a nic on shared network in advanced zone with security groups, the network rules for new IP are not applied on KVM hypervisors. It is because "--action -A" cannot be recognized in security_group.py after commit ac73e7e671ba107830f96b9fb534eb716956e405. changing to "--action=-A" will fix it. --- .../com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java index b20f1a5..0746139 100644 --- a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java +++ b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java @@ -3638,7 +3638,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv cmd.add("network_rules_vmSecondaryIp"); cmd.add("--vmname", vmName); cmd.add("--nicsecips", secIp); - cmd.add("--action", action); + cmd.add("--action=" + action); final String result = cmd.execute(); if (result != null) {
