[system-tests] Ceph destructive tests failed with attribute error

Bug #1509234 reported by Tatyanka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Tatyanka

Bug Description

After https://github.com/openstack/fuel-qa/commit/71314d71cc184bcd2492ddad5808b5e3b932fc6c test ha_ceph_neutron_rabbit_master_destroy.ha_ceph_neutron_rabbit_master_destroy starts to fail with
Error Message

'int' object has no attribute 'name'

Stacktrace

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.ha_destructive_ceph_neutron/fuelweb_test/helpers/decorators.py", line 80, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.ha_destructive_ceph_neutron/fuelweb_test/tests/tests_strength/test_failover_with_ceph.py", line 71, in ha_ceph_neutron_rabbit_master_destroy
    super(self.__class__, self).ha_sequential_rabbit_master_failover()
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.ha_destructive_ceph_neutron/fuelweb_test/tests/tests_strength/test_failover_base.py", line 742, in ha_sequential_rabbit_master_failover
    ['controller'])
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.ha_destructive_ceph_neutron/fuelweb_test/__init__.py", line 58, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.ha_destructive_ceph_neutron/fuelweb_test/models/fuel_web_client.py", line 2082, in get_nailgun_primary_node
    with self.get_ssh_for_node(slave.name) as remote:
AttributeError: 'int' object has no attribute 'name'

Looks like we use wrong method in 742 l, should be n_ctrls = self.fuel_web.get_nailgun_cluster_nodes_by_roles(
            cluster_id, 'controller')

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

Fix proposed to branch: master
Review: https://review.openstack.org/238833

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/238833
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=527d7a414acf045aaf49f4504215b1771d773e0e
Submitter: Jenkins
Branch: master

commit 527d7a414acf045aaf49f4504215b1771d773e0e
Author: Tatyana Leontovich <email address hidden>
Date: Fri Oct 23 11:18:32 2015 +0300

    Fix ceph destructive test

    After 71314d71cc184bcd2492ddad5808b5e3b932fc6c
    wrong method is using in failover-base.py L742,
    should be self.fuel_web.get_nailgun_cluster_nodes_by_roles

    Change-Id: Id4610e7c56da099f1b558783ee7ee74877bb9c26
    Closes-Bug: #1509234

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: non-release
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.