[
https://issues.apache.org/jira/browse/CLOUDSTACK-7199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Girish Shilamkar resolved CLOUDSTACK-7199.
------------------------------------------
Resolution: Fixed
> [Automation] test_multiple_ips_per_nic failng due to missing attributes
> ------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7199
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7199
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Affects Versions: 4.5.0
> Reporter: Rayees Namathponnan
> Assignee: Girish Shilamkar
> Priority: Critical
> Fix For: 4.5.0
>
>
> Below test cases failing in automation runs in vmware
> integration.component.test_multiple_ips_per_nic.TestVmNetworkOperations.test_network_restart_cleanup_false_3_VPC
> Error Message
> Error Message
> 'TestNetworkRules' object has no attribute 'vpc_off'
> -------------------- >> begin captured stdout << ---------------------
> === TestName: test_add_static_nat_rule_3_VPC | Status : EXCEPTION ===
> --------------------- >> end captured stdout << ----------------------
> -------------------- >> begin captured logging << --------------------
> test_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> ::::::::::::STARTED : TC: test_add_static_nat_rule_3_VPC :::::::::::
> test_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> Payload: {'username':
> 'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W',
> 'domainid': u'de3e8c70-16da-11e4-a7b2-52b2d980df8a', 'firstname': 'test',
> 'lastname': 'test', 'response': 'json', 'apiKey':
> u'xkp61NgHs4tG3PrK7WvtPKVU7Wd17aQ0zhZY1ku4LwqycZRISeJsJG-MrhjUaY-bfPcyxxIDpeIAItlm7RW2kQ',
> 'command': 'createAccount', 'accounttype': 0, 'signature':
> '1ecQbYqO6bDFi7aMhuKVMiMFKLA=', 'password': 'password', 'email':
> '[email protected]'}
> test_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> ========Sending GET Cmd : createAccount=======
> requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection
> (1): 10.223.49.197
> requests.packages.urllib3.connectionpool: DEBUG: "GET
> /client/api?username=test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W&domainid=de3e8c70-16da-11e4-a7b2-52b2d980df8a&firstname=test&lastname=test&email=test-account%40test.com&apiKey=xkp61NgHs4tG3PrK7WvtPKVU7Wd17aQ0zhZY1ku4LwqycZRISeJsJG-MrhjUaY-bfPcyxxIDpeIAItlm7RW2kQ&command=createAccount&accounttype=0&signature=1ecQbYqO6bDFi7aMhuKVMiMFKLA%3D&password=password&response=json
> HTTP/1.1" 200 1734
> test_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> Response : {primarystorageavailable : u'Unlimited', domain : u'ROOT',
> domainid : u'de3e8c70-16da-11e4-a7b2-52b2d980df8a', vpclimit : u'Unlimited',
> iplimit : u'Unlimited', volumelimit : u'Unlimited', memorytotal : 0,
> secondarystorageavailable : u'Unlimited', vmtotal : 0, cputotal : 0, vpctotal
> : 0, id : u'de5493f9-9060-4130-bf07-c6f43c46e597', cpuavailable :
> u'Unlimited', snapshotlimit : u'Unlimited', networklimit : u'Unlimited',
> iptotal : 0, volumetotal : 0, projectlimit : u'Unlimited', state :
> u'enabled', networktotal : 0, accounttype : 0, networkavailable :
> u'Unlimited', primarystoragetotal : 0, templatelimit : u'Unlimited',
> snapshottotal : 0, templateavailable : u'Unlimited', vmlimit : u'Unlimited',
> vpcavailable : u'Unlimited', memoryavailable : u'Unlimited',
> secondarystoragetotal : 0, templatetotal : 0, projecttotal : 0, user :
> [{username :
> u'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W',
> account :
> u'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W',
> domainid : u'de3e8c70-16da-11e4-a7b2-52b2d980df8a', firstname : u'test',
> created : u'2014-07-29T05:54:32-0700', lastname : u'test', domain : u'ROOT',
> id : u'128e219b-d09e-471b-8fc7-87769f39c731', iscallerchilddomain : False,
> state : u'enabled', accounttype : 0, email : u'[email protected]',
> isdefault : False, accountid : u'de5493f9-9060-4130-bf07-c6f43c46e597'}],
> groups : [], projectavailable : u'Unlimited', isdefault : False,
> primarystoragelimit : u'Unlimited', secondarystoragelimit : u'Unlimited',
> volumeavailable : u'Unlimited', name :
> u'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W',
> vmavailable : u'Unlimited', ipavailable : u'Unlimited', memorylimit :
> u'Unlimited', cpulimit : u'Unlimited', snapshotavailable : u'Unlimited'}
> test_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> creating a VPC network in the account:
> test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W
> test_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): CRITICAL:
> EXCEPTION: test_add_static_nat_rule_3_VPC: ['Traceback (most recent call
> last):\n', ' File "/usr/local/lib/python2.7/unittest/case.py", line 318, in
> run\n testMethod()\n', ' File
> "/usr/local/lib/python2.7/site-packages/ddt.py", line 114, in wrapper\n
> return func(self, *args, **kwargs)\n', ' File
> "/data/Repo2/qa/cloudstack/test/integration/component/test_multiple_ips_per_nic.py",
> line 735, in test_add_static_nat_rule\n network = createNetwork(self,
> value)\n', ' File
> "/data/Repo2/qa/cloudstack/test/integration/component/test_multiple_ips_per_nic.py",
> line 72, in createNetwork\n vpcofferingid=self.vpc_off.id,
> zoneid=self.zone.id,\n', "AttributeError: 'TestNetworkRules' object has no
> attribute 'vpc_off'\n"]
> --------------------- >> end captured logging << ---------------------
> Stacktrace
> File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
> testMethod()
> File "/usr/local/lib/python2.7/site-packages/ddt.py", line 114, in wrapper
> return func(self, *args, **kwargs)
> File
> "/data/Repo2/qa/cloudstack/test/integration/component/test_multiple_ips_per_nic.py",
> line 735, in test_add_static_nat_rule
> network = createNetwork(self, value)
> File
> "/data/Repo2/qa/cloudstack/test/integration/component/test_multiple_ips_per_nic.py",
> line 72, in createNetwork
> vpcofferingid=self.vpc_off.id, zoneid=self.zone.id,
> '\'TestNetworkRules\' object has no attribute
> \'vpc_off\'\n-------------------- >> begin captured stdout <<
> ---------------------\n=== TestName: test_add_static_nat_rule_3_VPC | Status
> : EXCEPTION ===\n\n\n--------------------- >> end captured stdout <<
> ----------------------\n-------------------- >> begin captured logging <<
> --------------------\ntest_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> ::::::::::::STARTED : TC: test_add_static_nat_rule_3_VPC
> :::::::::::\ntest_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> Payload: {\'username\':
> \'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W\',
> \'domainid\': u\'de3e8c70-16da-11e4-a7b2-52b2d980df8a\', \'firstname\':
> \'test\', \'lastname\': \'test\', \'response\': \'json\', \'apiKey\':
> u\'xkp61NgHs4tG3PrK7WvtPKVU7Wd17aQ0zhZY1ku4LwqycZRISeJsJG-MrhjUaY-bfPcyxxIDpeIAItlm7RW2kQ\',
> \'command\': \'createAccount\', \'accounttype\': 0, \'signature\':
> \'1ecQbYqO6bDFi7aMhuKVMiMFKLA=\', \'password\': \'password\', \'email\':
> \'[email protected]\'}\ntest_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> ========Sending GET Cmd :
> createAccount=======\nrequests.packages.urllib3.connectionpool: INFO:
> Starting new HTTP connection (1):
> 10.223.49.197\nrequests.packages.urllib3.connectionpool: DEBUG: "GET
> /client/api?username=test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W&domainid=de3e8c70-16da-11e4-a7b2-52b2d980df8a&firstname=test&lastname=test&email=test-account%40test.com&apiKey=xkp61NgHs4tG3PrK7WvtPKVU7Wd17aQ0zhZY1ku4LwqycZRISeJsJG-MrhjUaY-bfPcyxxIDpeIAItlm7RW2kQ&command=createAccount&accounttype=0&signature=1ecQbYqO6bDFi7aMhuKVMiMFKLA%3D&password=password&response=json
> HTTP/1.1" 200 1734\ntest_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> Response : {primarystorageavailable : u\'Unlimited\', domain : u\'ROOT\',
> domainid : u\'de3e8c70-16da-11e4-a7b2-52b2d980df8a\', vpclimit :
> u\'Unlimited\', iplimit : u\'Unlimited\', volumelimit : u\'Unlimited\',
> memorytotal : 0, secondarystorageavailable : u\'Unlimited\', vmtotal : 0,
> cputotal : 0, vpctotal : 0, id : u\'de5493f9-9060-4130-bf07-c6f43c46e597\',
> cpuavailable : u\'Unlimited\', snapshotlimit : u\'Unlimited\', networklimit :
> u\'Unlimited\', iptotal : 0, volumetotal : 0, projectlimit : u\'Unlimited\',
> state : u\'enabled\', networktotal : 0, accounttype : 0, networkavailable :
> u\'Unlimited\', primarystoragetotal : 0, templatelimit : u\'Unlimited\',
> snapshottotal : 0, templateavailable : u\'Unlimited\', vmlimit :
> u\'Unlimited\', vpcavailable : u\'Unlimited\', memoryavailable :
> u\'Unlimited\', secondarystoragetotal : 0, templatetotal : 0, projecttotal :
> 0, user : [{username :
> u\'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W\',
> account :
> u\'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W\',
> domainid : u\'de3e8c70-16da-11e4-a7b2-52b2d980df8a\', firstname : u\'test\',
> created : u\'2014-07-29T05:54:32-0700\', lastname : u\'test\', domain :
> u\'ROOT\', id : u\'128e219b-d09e-471b-8fc7-87769f39c731\',
> iscallerchilddomain : False, state : u\'enabled\', accounttype : 0, email :
> u\'[email protected]\', isdefault : False, accountid :
> u\'de5493f9-9060-4130-bf07-c6f43c46e597\'}], groups : [], projectavailable :
> u\'Unlimited\', isdefault : False, primarystoragelimit : u\'Unlimited\',
> secondarystoragelimit : u\'Unlimited\', volumeavailable : u\'Unlimited\',
> name :
> u\'test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W\',
> vmavailable : u\'Unlimited\', ipavailable : u\'Unlimited\', memorylimit :
> u\'Unlimited\', cpulimit : u\'Unlimited\', snapshotavailable :
> u\'Unlimited\'}\ntest_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules): DEBUG:
> creating a VPC network in the account:
> test-account-TestVmNetworkOperations-test_add_static_nat_rule_3_VPC-71766W\ntest_add_static_nat_rule_3_VPC
> (integration.component.test_multiple_ips_per_nic.TestNetworkRules):
> CRITICAL: EXCEPTION: test_add_static_nat_rule_3_VPC: [\'Traceback (most
> recent call last):\\n\', \' File
> "/usr/local/lib/python2.7/unittest/case.py", line 318, in run\\n
> testMethod()\\n\', \' File "/usr/local/lib/python2.7/site-packages/ddt.py",
> line 114, in wrapper\\n return func(self, *args, **kwargs)\\n\', \' File
> "/data/Repo2/qa/cloudstack/test/integration/component/test_multiple_ips_per_nic.py",
> line 735, in test_add_static_nat_rule\\n network = createNetwork(self,
> value)\\n\', \' File
> "/data/Repo2/qa/cloudstack/test/integration/component/test_multiple_ips_per_nic.py",
> line 72, in createNetwork\\n vpcofferingid=self.vpc_off.id,
> zoneid=self.zone.id,\\n\', "AttributeError: \'TestNetworkRules\' object has
> no attribute \'vpc_off\'\\n"]\n--------------------- >> end captured logging
> << --------------------
--
This message was sent by Atlassian JIRA
(v6.2#6252)