security_group.py: check cidr unstrictly to accept cidrs like 1.1.1.1/24#3701
Merged
Merged
Conversation
wido
approved these changes
Nov 21, 2019
Contributor
wido
left a comment
There was a problem hiding this comment.
I understand where this comes from.
LGTM
yadvr
approved these changes
Nov 21, 2019
Member
yadvr
left a comment
There was a problem hiding this comment.
Works on Python3 - however, have we made packaging changes in both debian and centos7 packaging to ensure python3 is installed?
Contributor
|
@rhtyd Yes, we have that in the RPM/DEB dependencies. Python 3 is however also present by default on both CentOS and Ubuntu. |
Member
|
Manually tested against python3, BO doesn't run test against SG env so I'll merge this based on reviews and manual testing. |
ustcweizhou
added a commit
to ustcweizhou/cloudstack
that referenced
this pull request
Feb 28, 2020
…/24 (apache#3701) When I add a security group rule with cidr like 1.1.1.1/24, the rule is not applied on kvm hypervisor. Ths issue does not exist in 4.13.0.0 and previous versions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When I add a security group rule with cidr like 1.1.1.1/24, the rule is not applied on kvm hypervisor.
Ths issue does not exist in 4.13.0.0 and previous versions.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
It has been tested in advanced zone with security group.
It can be verified very easily in python3, see results below.