[ https://issues.apache.org/jira/browse/CLOUDSTACK-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799849#comment-13799849 ]
Santhosh Kumar Edukulla commented on CLOUDSTACK-4846: ----------------------------------------------------- 1. I added a small change under marvin. While sending requests ( GET\POST ) for cloudstackAPI, a strip of \n\r for request url and params is done. This could be one of the cause. 2. I could see that GET requests do not have an issue when tested with cloudstack API and is not throwing any error similar to this. It seems it is Http POST which is causing this issue. Can you please check whether the POST call is supported for API at cloudstack when this issue happened? If GET is only supported and we are trying the POST call for this API, then this could be causing this issue? 3. Also, the payload length of POST call we are submitting, provided POST is supported. Is it the length of payload which is causing this issue. 4. Once assigned this bug, i will add the fix mentioned at step1 above. 2 &&3 need to be verified for. Please add your finding for steps 2 and 3 > Http connection error in marvin > ------------------------------- > > Key: CLOUDSTACK-4846 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4846 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation, marvin > Reporter: Girish Shilamkar > Assignee: Girish Shilamkar > > The connection fails with httplib.BadStatusLine which means that the error > code returned by http server was not recognised by marvin and therefore it > breaks. > ====================================================================== > ERROR: test_11_egress_fr11 (test_egress_fw_rules.TestEgressFWRules) > Test Regression on Firewall + PF + LB + SNAT > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/root/girish-1/test_egress_fw_rules.py", line 778, in > test_11_egress_fr11 > self.create_vm(pfrule=True) > File "/root/girish-1/test_egress_fw_rules.py", line 202, in create_vm > self.create_network_offering(egress_policy, RR) > File "/root/girish-1/test_egress_fw_rules.py", line 193, in > create_network_offering > conservemode=True) > File > "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line > 1525, in create > return NetworkOffering(apiclient.createNetworkOffering(cmd).__dict__) > File > "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", > line 1690, in createNetworkOffering > response = self.connection.marvin_request(command, > response_type=response, method=method) > File > "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line > 218, in marvin_request > cmdname, self.auth, payload=payload, method=method) > File > "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line > 153, in request > raise c > ConnectionError: HTTPConnectionPool(host='10.147.38.166', port=8080): Max > retries exceeded with url: > /client/api?apiKey=nVogzlRMdVgV78_e8egxMjqHCgAnAcnvUZkBWdldBFu18q-rjH6yxjGM3XqobvNTn4RvYbv9jl_GSWSczzm5aw&egressdefaultpolicy=true&serviceproviderlist%5B2%5D.provider=VirtualRouter&serviceproviderlist%5B5%5D.service=Dhcp&displaytext=Network+offering-VR+services-IRI2NS&specifyVlan=False&serviceproviderlist%5B4%5D.provider=VirtualRouter&serviceproviderlist%5B1%5D.provider=VirtualRouter&availability=Optional&conservemode=True&servicecapabilitylist%5B1%5D.capabilitytype=SupportedSourceNatTypes&serviceproviderlist%5B3%5D.service=Dns&serviceproviderlist%5B5%5D.provider=VirtualRouter&response=json&serviceproviderlist%5B0%5D.provider=VirtualRouter&servicecapabilitylist%5B0%5D.capabilitytype=RedundantRouter&serviceproviderlist%5B8%5D.provider=VirtualRouter&serviceproviderlist%5B1%5D.service=Lb&servicecapabilitylist%5B0%5D.service=SourceNat&serviceproviderlist%5B4%5D.service=Firewall&supportedservices=Dhcp%2CDns%2CSourceNat%2CPortForwarding%2CVpn%2CFirewall%2CLb%2CUserData%2CStaticNat&traffictype=GUEST&servicecapabilitylist%5B1%5D.service=SourceNat&serviceproviderlist%5B6%5D.provider=VirtualRouter&serviceproviderlist%5B8%5D.service=StaticNat&serviceproviderlist%5B3%5D.provider=VirtualRouter&name=Network+offering-VR+services-4O5XR6&guestiptype=Isolated&serviceproviderlist%5B7%5D.provider=VirtualRouter&servicecapabilitylist%5B1%5D.capabilityvalue=peraccount&serviceproviderlist%5B7%5D.service=SourceNat&serviceproviderlist%5B2%5D.service=PortForwarding&servicecapabilitylist%5B0%5D.capabilityvalue=true&serviceproviderlist%5B6%5D.service=Vpn&command=createNetworkOffering&signature=HRgb20smMpvPN6J1Eay3ySPGbxs%3D&serviceproviderlist%5B0%5D.service=UserData > (Caused by <class 'httplib.BadStatusLine'>: '') -- This message was sent by Atlassian JIRA (v6.1#6144)