Activity log for bug #1520626

Date Who What changed Old value New value Message
2015-11-27 15:36:46 Ilya Kharin bug added bug
2015-11-27 16:39:56 Ilya Kharin description This test fails periodically with error: ___ TestClusterObjectGetRoles.test_plugin_role_conflict_with_plugin_and_core ___ [gw3] linux2 -- Python 2.7.6 /home/jenkins/workspace/gate-fuel-web-py27/nailgun/.tox/py27/bin/python2.7 self = <nailgun.test.unit.test_objects.TestClusterObjectGetRoles testMethod=test_plugin_role_conflict_with_plugin_and_core> def test_plugin_role_conflict_with_plugin_and_core(self): self.create_plugin({ 'role_x': { 'name': 'Role X', 'description': 'Role X is ...', }, }) plugin_in_conflict = self.create_plugin({ 'role_x': { 'name': 'Role Y', 'description': 'Role Y is ...', }, 'role_a': { 'name': 'Role A', 'description': 'Role A is ...', }, }) message_pattern = ( '^Plugin \(ID={0}\) is unable to register the following node ' 'roles: (.*)' .format(plugin_in_conflict.id)) with self.assertRaisesRegexp( errors.AlreadyExists, message_pattern) as cm: objects.Cluster.get_roles(self.cluster) # 0 - the whole message, 1 - is first match of (.*) pattern roles = re.match(message_pattern, str(cm.exception)).group(1) roles = [role.lstrip().rstrip() for role in roles.split(',')] > self.assertItemsEqual(roles, ['role_x', 'role_a']) E AssertionError: Element counts were not equal: E First has 0, Second has 1: 'role_x' nailgun/test/unit/test_objects.py:1408: AssertionError It seems that the objects.ClusterPlugins.set_attributes method does not synchronize objects in the session. This test fails periodically with error:     ___ TestClusterObjectGetRoles.test_plugin_role_conflict_with_plugin_and_core ___     [gw3] linux2 -- Python 2.7.6 /home/jenkins/workspace/gate-fuel-web-py27/nailgun/.tox/py27/bin/python2.7     self = <nailgun.test.unit.test_objects.TestClusterObjectGetRoles testMethod=test_plugin_role_conflict_with_plugin_and_core>         def test_plugin_role_conflict_with_plugin_and_core(self):             self.create_plugin({                 'role_x': {                     'name': 'Role X', 'description': 'Role X is ...', },             })             plugin_in_conflict = self.create_plugin({                 'role_x': {                     'name': 'Role Y', 'description': 'Role Y is ...', },                 'role_a': {                     'name': 'Role A', 'description': 'Role A is ...', },             })             message_pattern = (                 '^Plugin \(ID={0}\) is unable to register the following node '                 'roles: (.*)'                 .format(plugin_in_conflict.id))             with self.assertRaisesRegexp(                     errors.AlreadyExists, message_pattern) as cm:                 objects.Cluster.get_roles(self.cluster)             # 0 - the whole message, 1 - is first match of (.*) pattern             roles = re.match(message_pattern, str(cm.exception)).group(1)             roles = [role.lstrip().rstrip() for role in roles.split(',')]     > self.assertItemsEqual(roles, ['role_x', 'role_a'])     E AssertionError: Element counts were not equal:     E First has 0, Second has 1: 'role_x'     nailgun/test/unit/test_objects.py:1408: AssertionError It seems that the objects.ClusterPlugins.set_attributes method does not synchronize objects in the session but this test rely on it.
2015-11-27 16:44:54 OpenStack Infra fuel: status New In Progress
2015-11-27 16:44:54 OpenStack Infra fuel: assignee Ilya Kharin (akscram)
2015-11-30 16:20:36 Dmitry Klenov tags area-python
2015-11-30 16:20:41 Dmitry Klenov fuel: milestone 8.0
2015-11-30 16:20:46 Dmitry Klenov fuel: importance Undecided Medium
2015-12-09 12:44:45 OpenStack Infra fuel: status In Progress Fix Released
2015-12-09 13:41:27 Oleg S. Gelbukh fuel: status Fix Released Fix Committed
2016-02-13 20:37:24 Nastya Urlapova tags area-python area-python dev-to-verify