[ https://issues.apache.org/jira/browse/CLOUDSTACK-6559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990497#comment-13990497 ]
ASF subversion and git services commented on CLOUDSTACK-6559: ------------------------------------------------------------- Commit 18367b3a8614d39d6323f140fc50875230bb060a in cloudstack's branch refs/heads/4.4-forward from [~gpshilamkar] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=18367b3 ] CLOUDSTACK-6559: Added listall=True to list vm API > [Automation] SG test cases failing during vm deployment > -------------------------------------------------------- > > Key: CLOUDSTACK-6559 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6559 > Project: CloudStack > Issue Type: Test > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.4.0 > Environment: KVM basic SG > Reporter: Rayees Namathponnan > Assignee: Girish Shilamkar > Priority: Blocker > Fix For: 4.4.0, 4.5.0 > > > Run test_tags.py in basic security group environment > Test cases failing with below error > "Unable to create security group, a group with name basic_sec_grp already > exisits." > Test cases failing while creating 2 VMs, second VM creating failing > 215 cls.vm_1 = VirtualMachine.create( > 216 cls.api_client, > 217 cls.services["virtual_machine"], > 218 accountid=cls.account.name, > 219 domainid=cls.account.domainid, > 220 > serviceofferingid=cls.service_offering.id, > 221 mode=cls.zone.networktype > 222 ) > 223 cls.vm_2 = VirtualMachine.create( > 224 cls.api_client, > 225 cls.services["virtual_machine"], > 226 accountid=cls.account.name, > 227 domainid=cls.account.domainid, > 228 > serviceofferingid=cls.service_offering.id, > 229 mode=cls.zone.networktype > Actual issue in below code base.py. in list security, we are not passing > listall=true, this required in latest 4.4 builds > 240 @classmethod > 241 def ssh_access_group(cls, apiclient, cmd): > 242 """ > 243 Programs the security group with SSH access before deploying > virtualmachine > 244 @return: > 245 """ > 246 zone_list = Zone.list( > 247 apiclient, > 248 id=cmd.zoneid if cmd.zoneid else None, > 249 domainid=cmd.domainid if cmd.domainid else None > 250 ) > 251 zone = zone_list[0] > 252 #check if security groups settings is enabled for the zone > 253 if zone.securitygroupsenabled: > 254 list_security_groups = SecurityGroup.list( > 255 apiclient, > 256 account=cmd.account, > 257 domainid=cmd.domainid, > 258 securitygroupname="basic_sec_grp" > 259 ) > 260 -- This message was sent by Atlassian JIRA (v6.2#6252)