| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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 ac73e7e. changing to "--action=-A" will fix it.
|
@wido @GabrielBrascher could you please review and test it ? |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-343 |
Sorry, something went wrong.
There was a problem hiding this comment.
Code LGTM. Tested and it works.
Sorry, something went wrong.
|
Requires SG env that BO cannot kick by default, since manually tested, not kicking explicit test. |
Sorry, something went wrong.
…pache#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 ac73e7e. changing to "--action=-A" will fix it.
| Back | FazBrowse Home | New Git URL |
Description
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 ac73e7e. changing to "--action=-A" will fix it.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
When add a ip (ip must to be specified see #3635) to a nic, in advanced zone with security groups, the network rules for the ip should be added on hypervisor. However it does not work in 4.13/master.
in agent.log it gives the following error
root@node32:~# /usr/share/cloudstack-common/scripts/vm/network/security_group.py network_rules_vmSecondaryIp --vmname i-14-54-VM --nicsecips 192.168.116.246 --action -A usage: security_group.py [-h] [--vmname VMNAME] [--vmip VMIP] [--vmip6 VMIP6] [--vmid VMID] [--vmmac VMMAC] [--vif VIF] [--sig SIG] [--seq SEQ] [--rules RULES] [--brname BRNAME] [--localbrname LOCALBRNAME] [--dhcpSvr DHCPSVR] [--hostIp HOSTIP] [--hostMacAddr HOSTMACADDR] [--nicsecips NICSECIPS] [--action ACTION] [--privnic PRIVNIC] [--isFirstNic] [--check] command security_group.py: error: argument --action: expected one argumentThe rules (ipset, iptables, ebtables) are added after this fix.