shweta agarwal created CLOUDSTACK-3356:
------------------------------------------

             Summary:  listNetworks API doesn't list the "default guest 
network" 
                 Key: CLOUDSTACK-3356
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3356
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Projects
    Affects Versions: 4.2.0
            Reporter: shweta agarwal
            Priority: Critical
             Fix For: 4.2.0


Repro steps:
1. Have EIP/ELB enabled zone setup
2. Create at least one Project with owner set to any non-ROOT domain account.
3. Login as the above created non-ROOT domain admin account ( whether belongs 
to project or not).
4. Try "listNetworks" with projectid

Observations:

(i) From UI It didn't list any networks 


API :
http://10.147.38.141:8080/client/api?command=listNetworks&response=json&sessionkey=zoEGBQ8DqrevjfOToRuyBqGzIOA%3D&projectid=a548b266-18e5-4f36-a3bc-d55c93c3e289&listAll=true&page=1&pagesize=20&_=1372930379531

response:
{ "listnetworksresponse" : { } }

While when i executed the same API via cloudmonkey , network is listed 
API  log shows:
2013-07-04 15:11:38,559 INFO  [cloud.api.ApiServer] (catalina-exec-15:null) 
(userId=6 accountId=7 sessionId=null) 10.147.59.212 -- GET 
apiKey=1XeMKeSvcmMN2Isi7COJ1FY2J5g2PR3Gtqy8DH4Ogl4EFf4Y-2DHfiqjxZHHl1z1jX_LCUhbJheeoAlrFKBUzQ&command=listNetworks&response=json&signature=U6JER6eJpY5kqeskbcBYhDl%2Fptc%3D
 200 { "listnetworksresponse" : { "count":1 ,"network" : [  
{"id":"bd683308-2809-42f0-816b-7edbb0ab3eb6","name":"defaultGuestNetwork","displaytext":"defaultGuestNetwork","broadcastdomaintype":"Native","traffictype":"Guest","zoneid":"bfdf7ac5-16c3-491e-aabd-f7ad696612b8","zonename":"BasicwithEIPnELB","networkofferingid":"f18269b3-8793-4960-a05c-779ed56752a8","networkofferingname":"DefaultSharedNetscalerEIPandELBNetworkOffering","networkofferingdisplaytext":"Offering
 for Shared networks with Elastic IP and Elastic LB 
capabilities","networkofferingavailability":"Optional","issystem":false,"state":"Setup","related":"bd683308-2809-42f0-816b-7edbb0ab3eb6","dns1":"10.103.128.16","type":"Shared","acltype":"Domain","subdomainaccess":true,"domainid":"97e3cec8-e474-11e2-95e7-0682fe000017","domain":"ROOT","service":[{"name":"Dhcp"},{"name":"StaticNat","capability":[{"name":"ElasticIp","value":"true","canchooseservicecapability":false}]},{"name":"SecurityGroup"},{"name":"Dns","capability":[{"name":"AllowDnsSuffixModification","value":"true","canchooseservicecapability":false}]},{"name":"UserData"},{"name":"Lb","capability":[{"name":"SupportedLBIsolation","value":"dedicated,
 
shared","canchooseservicecapability":false},{"name":"SupportedLbAlgorithms","value":"roundrobin,leastconn","canchooseservicecapability":false},{"name":"SupportedStickinessMethods","value":"[{\"methodname\":\"LbCookie\",\"paramlist\":[{\"paramname\":\"holdtime\",\"required\":false,\"isflag\":false,\"description\":\"
 \"}],\"description\":\"This is cookie based sticky method, can be used only 
for 
http\"},{\"methodname\":\"AppCookie\",\"paramlist\":[{\"paramname\":\"name\",\"required\":true,\"isflag\":false,\"description\":\"
 \"}],\"description\":\"This is app session based sticky method, can be used 
only for 
http\"},{\"methodname\":\"SourceBased\",\"paramlist\":[{\"paramname\":\"holdtime\",\"required\":false,\"isflag\":false,\"description\":\"
 \"}],\"description\":\"This is source based sticky method, can be used for any 
type of 
protocol.\"}]","canchooseservicecapability":false},{"name":"SupportedProtocols","value":"tcp,udp","canchooseservicecapability":false},{"name":"AutoScaleCounters","value":"[{\"methodname\":\"snmp\",\"paramlist\":[{\"paramname\":\"snmpcommunity\",\"required\":true,\"isflag\":false,\"description\":\"the
 community string that has to be used to do a SNMP GET on the AutoScaled 
Vm\"},{\"paramname\":\"snmpport\",\"required\":false,\"isflag\":false,\"description\":\"the
 port at which SNMP agent is running on the AutoScaled 
Vm\"}]},{\"methodname\":\"netscaler\",\"paramlist\":[]}]","canchooseservicecapability":false},{"name":"LbSchemes","value":"Public","canchooseservicecapability":false},{"name":"TrafficStatistics","value":"per
 public 
ip","canchooseservicecapability":false},{"name":"ElasticLb","value":"true","canchooseservicecapability":false},{"name":"HealthCheckPolicy","value":"true","canchooseservicecapability":false},{"name":"LoadBalancingSupportedIps","value":"additional","canchooseservicecapability":false}]}],"networkdomain":"cs1cloud.internal","physicalnetworkid":"a4474756-59bb-4546-b43f-a411cbdf2761","restartrequired":false,"specifyipranges":true,"canusefordeploy":true,"ispersistent":false,"tags":[],"displaynetwork":true}
 ] } }
@                                                                               
                 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to