John Dilley created CLOUDSTACK-7268:
---------------------------------------

             Summary: Fix for CLOUDSTACK-2694 causes error in smoke tests
                 Key: CLOUDSTACK-7268
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7268
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Automation, marvin
    Affects Versions: Future, 4.5.0
            Reporter: John Dilley
            Assignee: John Dilley


{noformat}
test_deploy_vm (integration.smoke.test_vm_life_cycle.TestDeployVM): DEBUG: 
Payload: {'networkid': u'7fe8577b-86f2-4764-85f0-02e7037e4996', 'apiKey': 
u'yA0_Fd34djdskCD77q575Ku8uwio2WDoY7zB_CW8iy1H0KZZUdu9QcsUGFAJhvHi5e2mB1jr6U3d2I-Tx3JR1w',
 'protocol': 'All', 'cidrlist': '0.0.0.0/0', 'command': 
'createEgressFirewallRule', 'signature': 'TkyOcnLb0EgljbakJuRsKj4FkDI=', 
'response': 'json'}
test_deploy_vm (integration.smoke.test_vm_life_cycle.TestDeployVM): DEBUG: 
========Sending GET Cmd : createEgressFirewallRule=======
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection 
(1): 10.220.135.16
requests.packages.urllib3.connectionpool: DEBUG: "GET 
/client/api?networkid=7fe8577b-86f2-4764-85f0-02e7037e4996&apiKey=yA0_Fd34djdskCD77q575Ku8uwio2WDoY7zB_CW8iy1H0KZZUdu9QcsUGFAJhvHi5e2mB1jr6U3d2I-Tx3JR1w&protocol=All&cidrlist=0.0.0.0%2F0&command=createEgressFirewallRule&signature=TkyOcnLb0EgljbakJuRsKj4FkDI%3D&response=json
 HTTP/1.1" 537 181
test_deploy_vm (integration.smoke.test_vm_life_cycle.TestDeployVM): ERROR: 
Exception:['Traceback (most recent call last):\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 
308, in __parseAndGetResponse\n    response_cls)\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/jsonHelper.py", line 150, in 
getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, 
errMsg)\n', 'CloudstackAPIException: Execute cmd: createegressfirewallrule 
failed, due to: errorCode: 537, errorText:There is already a firewall rule 
specified with protocol = all and no ports\n']
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", 
line 308, in __parseAndGetResponse
    response_cls)
  File "/usr/local/lib/python2.7/dist-packages/marvin/jsonHelper.py", line 150, 
in getResultObj
    raise cloudstackException.CloudstackAPIException(respname, errMsg)
CloudstackAPIException: Execute cmd: createegressfirewallrule failed, due to: 
errorCode: 537, errorText:There is already a firewall rule specified with 
protocol = all and no ports
test_deploy_vm (integration.smoke.test_vm_life_cycle.TestDeployVM): ERROR: 
marvinRequest : CmdName: 
<marvin.cloudstackAPI.createEgressFirewallRule.createEgressFirewallRuleCmd 
object at 0x244cfd0> Exception: ['Traceback (most recent call last):\n', '  
File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", 
line 374, in marvinRequest\n    raise self.__lastError\n', 
'CloudstackAPIException: Execute cmd: createegressfirewallrule failed, due to: 
errorCode: 537, errorText:There is already a firewall rule specified with 
protocol = all and no ports\n']
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", 
line 374, in marvinRequest
    raise self.__lastError
CloudstackAPIException: Execute cmd: createegressfirewallrule failed, due to: 
errorCode: 537, errorText:There is already a firewall rule specified with 
protocol = all and no ports
test_deploy_vm (integration.smoke.test_vm_life_cycle.TestDeployVM): CRITICAL: 
EXCEPTION: test_deploy_vm: ['Traceback (most recent call last):\n', '  File 
"/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 208, in run\n    
self.setUp()\n', '  File 
"/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp\n    
self.setupContext(ancestor)\n', '  File 
"/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 314, in 
setupContext\n    try_run(context, names)\n', '  File 
"/usr/local/lib/python2.7/dist-packages/nose/util.py", line 470, in try_run\n   
 return func()\n', '  File 
"/root/cloudstack.git/test/integration/smoke/test_vm_life_cycle.py", line 274, 
in setUpClass\n    mode=cls.services["mode"]\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 484, in 
create\n    networkid=cmd.networkids[0] if cmd.networkids else None)\n', '  
File "/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 345, in 
access_ssh_over_nat\n    cidrlist=\'0.0.0.0/0\'\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/lib/base.py", line 1616, in 
create\n    apiclient.createEgressFirewallRule(cmd).__dict__)\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
 line 2017, in createEgressFirewallRule\n    response = 
self.connection.marvinRequest(command, response_type=response, 
method=method)\n', '  File 
"/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py", line 
379, in marvinRequest\n    raise e\n', 'CloudstackAPIException: Execute cmd: 
createegressfirewallrule failed, due to: errorCode: 537, errorText:There is 
already a firewall rule specified with protocol = all and no ports\n']
--------------------- >> end captured logging << ---------------------
{noformat}

Earlier on in the test we created the same egress firewall rule:

{noformat}
test_deploy_vm (integration.smoke.test_vm_life_cycle.TestDeployVM): DEBUG: 
Payload: {'networkid': u'7fe8577b-86f2-4764-85f0-02e7037e4996', 'apiKey': 
u'yA0_Fd34djdskCD77q575Ku8uwio2WDoY7zB_CW8iy1H0KZZUdu9QcsUGFAJhvHi5e2mB1jr6U3d2I-Tx3JR1w',
 'protocol': 'All', 'cidrlist': '0.0.0.0/0', 'command': 
'createEgressFirewallRule', 'signature': 'TkyOcnLb0EgljbakJuRsKj4FkDI=', 
'response': 'json'}
test_deploy_vm (integration.smoke.test_vm_life_cycle.TestDeployVM): DEBUG: 
========Sending GET Cmd : createEgressFirewallRule=======
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to