several potential programming bugs found by pylint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Yun Mao |
Bug Description
This is against the current master 2ba710af4f619a9
One of them might be a duplicate of #1036419.
File nova/api/
Line 53: raise webob.exc.
E0602: Undefined variable 'webob'
File nova/console/api.py
Line 46: pool['host'])
E0602: Undefined variable 'pool'
File nova/console/
Line 126: pool_info = compute_
E1101: Module 'nova.compute.
File nova/db/
Line 1437: instance_
E1101: Instance of 'Instance' has no 'instance_type' member
File nova/db/
Line 84: columns.
E1101: Instance of 'NovaBase' has no '_extra_keys' member
File nova/db/
Line 95: def connect(delf, dbapi_con, con_record):
E0213: Method should have "self" as first argument
File nova/db/
Line 67: attach_
E0602: Undefined variable 'attach_datetime'
File nova/tests/
Line 30: def fake_ec2_
E0213: Method should have "self" as first argument
File nova/tests/
Line 529: def setUp(self):
E1003: Bad first argument 'ComputeDriver' given to super class
File nova/tests/
Line 611: nova.common.
E1101: Module 'nova.common' has no 'policy' member
File nova/tests/
Line 611: nova.common.
E1101: Module 'nova.common' has no 'policy' member
File nova/tests/
Line 1019: def test_migrate_
E0102: method already defined line 1011
File nova/tests/
Line 2085: def call_plugin(
E0213: Method should have "self" as first argument
File nova/tests/
Line 2102: actual = self.kwargs[
E1101: Instance of 'VmUtilsTestCase' has no 'kwargs' member
File nova/tests/
Line 762: foo() # generate a TypeError
E1120: No value passed for parameter 'a' in function call
File nova/tests/
Line 52: self.asserTrue(
E1101: Instance of 'ConfigDriveTest' has no 'asserTrue' member
File nova/tests/
Line 373: text = serializer.
E1101: Instance of 'HypervisorInde
File nova/tests/
Line 419: text = serializer.
E1101: Instance of 'HypervisorDeta
File nova/tests/
Line 448: text = serializer.
E1101: Instance of 'HypervisorTemp
File nova/tests/
Line 460: text = serializer.
E1101: Instance of 'HypervisorUpti
File nova/tests/
Line 483: text = serializer.
E1101: Instance of 'HypervisorServ
File nova/tests/
Line 507: text = serializer.
E1101: Instance of 'HypervisorStat
File nova/tests/
Line 197: def test_keypair_
E0102: method already defined line 126
File nova/tests/
Line 280: self.asserTrue(
E1101: Instance of 'KeypairsTest' has no 'asserTrue' member
File nova/tests/
Line 148: text = self.serializer
E1101: Instance of 'QuotaClassTemp
File nova/tests/
Line 1323: return serializer.
E1101: Instance of 'MinimalCreateS
File nova/tests/
Line 1704: nova.common.
E1101: Module 'nova.common' has no 'policy' member
File nova/tests/
Line 1704: nova.common.
E1101: Module 'nova.common' has no 'policy' member
File nova/tests/
Line 101: compute_
E1120: No value passed for parameter 'ctxt' in function call
File nova/tests/
Line 117: compute_
E1120: No value passed for parameter 'ctxt' in function call
File nova/tests/
Line 171: compute_
E1120: No value passed for parameter 'ctxt' in function call
File nova/tests/
Line 184: compute_
E1120: No value passed for parameter 'ctxt' in function call
File nova/tests/
Line 438: compute_
E1120: No value passed for parameter 'ctxt' in function call
File nova/tests/
Line 504: compute_
E1120: No value passed for parameter 'ctxt' in function call
File nova/virt/
Line 132: disk.destroy_
E1101: Instance of 'BareMetalDriver' has no 'container' member
File nova/virt/
Line 258: 'power_state': power_state.
E1101: Module 'nova.compute.
File nova/virt/
Line 79: self.error = _('partition search unsupported with %s') % self.mode
E1101: Instance of 'Mount' has no 'mode' member
File nova/virt/
Line 2543: self._cache_
E1101: Instance of 'LibvirtDriver' has no '_cache_image' member
File nova/virt/
Line 106: start_transfer(
E1120: No value passed for parameter 'data_size' in function call
File nova/virt/
Line 134: start_transfer(
E1120: No value passed for parameter 'data_size' in function call
File nova/virt/
Line 622: def VM_migrate_
E0102: method already defined line 495
File nova/virt/
Line 419: root_vdi = vm_utils.
E1101: Module 'nova.virt.
Changed in nova: | |
importance: | Low → Medium |
Changed in nova: | |
status: | Fix Committed → In Progress |
Changed in nova: | |
status: | Fix Committed → In Progress |
Changed in nova: | |
milestone: | none → folsom-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
Some of this is good stuff ... some of it false positives, though