cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeetha Hariharan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7585) Automation - Fix test_acl_sharednetwork.py and test_acl_sharednetwork_deployVM-impersonation.py to pick "Shared Network" network offering when creating networks.
Date Thu, 18 Sep 2014 21:49:34 GMT
Sangeetha Hariharan created CLOUDSTACK-7585:
-----------------------------------------------

             Summary: Automation - Fix test_acl_sharednetwork.py and test_acl_sharednetwork_deployVM-impersonation.py
to pick "Shared Network" network offering when creating networks.
                 Key: CLOUDSTACK-7585
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7585
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Test
    Affects Versions: 4.5.0
         Environment: test_acl_sharednetwork.py and test_acl_sharednetwork_deployVM-impersonation.py
cases executed against simulator build in advanced zone set up.
            Reporter: Sangeetha Hariharan
             Fix For: 4.5.0


Automation - Fix test_acl_sharednetwork.py and test_acl_sharednetwork_deployVM-impersonation.py
to pick "Shared Network" network offering when creating networks.


Attempting to create shared network on the advanced zone set up fails with following exception
since the script tried to create network with "shared network with securitygroup enabled"
network offering , when the real intent was to create network with "shared network".

2014-09-17 07:30:36,714 INFO  [a.c.c.a.ApiServer] (catalina-exec-4:ctx-371aa034 ctx-671b4b25
ctx-6c06fff3) (userId=566 accountId=621 sessionId=null) 10.220.135.94 -- GET jobid=9edd5afa-ade4-414b-9c84-ae045162140c&apiKey=1Qwx85LkDHJa5pbSN6BZwGrP-GyVSkzkG70wWLzaostLbopRqtgR-vpR9GMwohyfvt4wzldxj1QizAsjcrqDTA&command=queryAsyncJobResult&response=json&signature=kwsOpv9uEajw1D5rC1rvKAl3mXU%3D
200 { "queryasyncjobresultresponse" : {"accountid":"dfb8610d-1488-4e73-8d6d-75dabebc4891","userid":"1898cb06-16c9-4a6c-976e-9e7dfa933550","cmd":"org.apache.cloudstack.api.command.user.vm.DeployVMCmd","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"VirtualMachine","jobinstanceid":"a0b03a69-6468-4957-855a-da5d6541452f","created":"2014-09-17T07:30:36+0000","jobid":"9edd5afa-ade4-414b-9c84-ae045162140c"}
}
2014-09-17 07:30:36,821 INFO  [a.c.c.a.ApiServer] (catalina-exec-13:ctx-70aa613c ctx-d326566c
ctx-1b289a9f) (userId=2 accountId=2 sessionId=null) 10.220.135.94 -- GET endip=10.223.1.100&apiKey=d-PIiwVeP_F-GpoQ0a8eSAnon806DSJGS9L34BPW3jmsAQz2LUNePLC9XQ-ILIMcDrGMSzQmMk8xrbfrRkpyXw&name=SharedNetwork-All&networkofferingid=4dc8bedc-58e5-47ef-b462-8c13b18765e4&startip=10.223.1.2&vlan=4001&zoneid=6c748d63-12c2-48c3-b84e-e81ff63ea441&netmask=255.255.255.0&acltype=Domain&displaytext=SharedNetwork-All&signature=NSWuzSOrbpLs9ggT6A3lf7SzXQs%3D&command=createNetwork&response=json&gateway=10.223.1.1
530 Provider SecurityGroupProvider is either not enabled or doesn't support service SecurityGroup
in physical network id=200

Root cause for this issue , is we query for networkoffering with "name=DefaultSharedNetworkOffering"
 which results in returning 2 entries , "DefaultSharedNetworkOffering" and "DefaultSharedNetworkOfferingWithSGService".
The script ends up picking the network offering of "DefaultSharedNetworkOfferingWithSGService"

2014-09-17 07:30:36,653 INFO  [a.c.c.a.ApiServer] (catalina-exec-9:ctx-d64b7593 ctx-f74a4a25
ctx-f14b10c9) (userId=2 accountId=2 sessionId=null) 10.220.135.94 -- GET response=json&apiKey=d-PIiwVeP_F-GpoQ0a8eSAnon806DSJGS9L34BPW3jmsAQz2LUNePLC9XQ-ILIMcDrGMSzQmMk8xrbfrRkpyXw&command=listNetworkOfferings&name=DefaultSharedNetworkOffering&signature=djKbBqXshW0SNBHMJjDnldyk7Ls%3D
200 { "listnetworkofferingsresponse" : { "count":2 ,"networkoffering" : [  {"id":"4dc8bedc-58e5-47ef-b462-8c13b18765e4","name":"DefaultSharedNetworkOfferingWithSGService","displaytext":"Offering
for Shared Security group enabled networks","traffictype":"Guest","isdefault":true,"specifyvlan":true,"conservemode":true,"specifyipranges":true,"availability":"Optional","networkrate":200,"state":"Enabled","guestiptype":"Shared","serviceofferingid":"caf28ce7-1a81-4767-9e64-c0b16700beed","service":[{"name":"Dhcp","provider":[{"name":"VirtualRouter"}]},{"name":"SecurityGroup","provider":[{"name":"SecurityGroupProvider"}]},{"name":"Dns","provider":[{"name":"VirtualRouter"}]},{"name":"UserData","provider":[{"name":"VirtualRouter"}]}],"forvpc":false,"ispersistent":false,"egressdefaultpolicy":false,"supportsstrechedl2subnet":false},
{"id":"09d13c2a-4cd7-4700-a092-3192605c29cb","name":"DefaultSharedNetworkOffering","displaytext":"Offering
for Shared networks","traffictype":"Guest","isdefault":true,"specifyvlan":true,"conservemode":true,"specifyipranges":true,"availability":"Optional","networkrate":200,"state":"Enabled","guestiptype":"Shared","serviceofferingid":"caf28ce7-1a81-4767-9e64-c0b16700beed","service":[{"name":"Dhcp","provider":[{"name":"VirtualRouter"}]},{"name":"Dns","provider":[{"name":"VirtualRouter"}]},{"name":"UserData","provider":[{"name":"VirtualRouter"}]}],"forvpc":false,"ispersistent":false,"egressdefaultpolicy":false,"supportsstrechedl2subnet":false}
] } }






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message