-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vm controller unit tests #38
Conversation
* Handle link and unlink volume * Handle add vm as backend * Handle attach eip * Handle add sg with vm sgmember * Update volume unit test * Add vm unit test
loadBalancerSecurityGroupClusterScopeName := loadBalancerSecurityGroupName + "-" + clusterScope.GetUID() | ||
associateSecurityGroupId := securityGroupsRef.ResourceMap[loadBalancerSecurityGroupClusterScopeName] | ||
machineScope.Info("Get sg", "associateSecurityGroupId", associateSecurityGroupId) | ||
_, err = securityGroupSvc.CreateSecurityGroupRule(associateSecurityGroupId, flow, ipProtocol, "", securityGroupIds[0], fromPortRange, toPortRange) | ||
_, err = securityGroupSvc.CreateSecurityGroupRule(associateSecurityGroupId, "Outbound", ipProtocol, "", securityGroupIds[0], fromPortRange, toPortRange) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In SecurityGroup, there is a default rules to allow all outbound traffic, no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@outscale-mdr
Yes, there is a default rules which allow outbound traffic, but you have to set outbound security group rule (in lbu sg) for each securityGroup (securityGroupMember) associate to your backend instance associate with lbu.
And you have to set inbound security group rule in each sg backend instance associate with lbu securityGroupMember.
(https://docs.outscale.com/fr/userguide/%C3%80-propos-des-security-groups-dans-LBU.html)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default rules which allow outbound traffic is not enough for lbu.
close #29 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #29
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs: