Closed cj-chung closed 3 years ago
The following lines of code in SecurityGroupService.java in DPM cannot handle null value of each attributes in a rule. It blocks the e2e test. In order to unblock the issue, we need to comment out these lines of code for a temporary solution.
null
for (SecurityGroupRule securityGroupRule: securityGroup.getSecurityGroupRules()) { com.futurewei.alcor.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder securityGroupRuleBuilder = com.futurewei.alcor.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.newBuilder(); securityGroupRuleBuilder.setSecurityGroupId(securityGroup.getId()); securityGroupRuleBuilder.setId(securityGroupRule.getId()); securityGroupRuleBuilder.setDirection(com.futurewei.alcor.schema.SecurityGroup.SecurityGroupConfiguration.Direction.valueOf(securityGroupRule.getDirection().toUpperCase())); securityGroupRuleBuilder.setEthertype(Common.EtherType.valueOf(securityGroupRule.getEtherType().toUpperCase())); securityGroupRuleBuilder.setProtocol(Common.Protocol.valueOf(securityGroupRule.getProtocol())); securityGroupRuleBuilder.setPortRangeMin(securityGroupRule.getPortRangeMin()); securityGroupRuleBuilder.setPortRangeMax(securityGroupRule.getPortRangeMax()); securityGroupRuleBuilder.setRemoteIpPrefix(securityGroupRule.getRemoteIpPrefix()); securityGroupRuleBuilder.setRemoteGroupId(securityGroupRule.getRemoteGroupId()); securityGroupConfigBuilder.addSecurityGroupRules(securityGroupRuleBuilder.build()); }
Fixed by this PR: https://github.com/futurewei-cloud/alcor/pull/530
The following lines of code in SecurityGroupService.java in DPM cannot handle
null
value of each attributes in a rule. It blocks the e2e test. In order to unblock the issue, we need to comment out these lines of code for a temporary solution.