Need to cherry-pick fix get_nailgun_node_by_devops_node

Bug #1325877 reported by Tatyanka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Critical
Fuel QA Team

Bug Description

Service tests on Centos failed with
http://jenkins-product.srt.mirantis.net:8080/view/4.1_swarm/job/4.1_fuelmain.system_test.centos.services/98/testReport/junit/%28root%29/prepare_slaves_5/prepare_slaves_5/

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 "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/usr/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/tests/base_test_case.py", line 111, in prepare_slaves_5
    self.env.bootstrap_nodes(self.env.nodes().slaves[:5])
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/models/environment.py", line 116, in bootstrap_nodes
    wait(lambda: all(self.nailgun_nodes(devops_nodes)), 15, timeout)
  File "/home/jenkins/venv-nailgun-tests/local/lib/python2.7/site-packages/devops/helpers/helpers.py", line 93, in wait
    while not predicate():
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/models/environment.py", line 116, in <lambda>
    wait(lambda: all(self.nailgun_nodes(devops_nodes)), 15, timeout)
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/models/environment.py", line 309, in nailgun_nodes
    devops_nodes
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/models/environment.py", line 308, in <lambda>
    lambda node: self.fuel_web.get_nailgun_node_by_devops_node(node),
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/__init__.py", line 48, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/models/fuel_web_client.py", line 414, in get_nailgun_node_by_devops_node
    for nailgun_node in self.client.list_nodes():
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/helpers/decorators.py", line 66, in wrapped
    response = func(*args, **kwargs)
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/models/nailgun_client.py", line 35, in list_nodes
    return self.client.get("/api/nodes/")
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/helpers/http.py", line 38, in get
    return self._open(req)
  File "/home/jenkins/workspace/4.1_fuelmain.system_test.centos.services/fuelweb_test/helpers/http.py", line 64, in _open
    return self.opener.open(req)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 113] No route to host>
-------------------- >> begin captured logging << --------------------
fuelweb_test: DEBUG: Calling: get_nailgun_node_by_devops_node with args: (<fuelweb_test.models.fuel_web_client.FuelWebClient object at 0x7f881f896f90>, <Node: Node object>) {}
fuelweb_test: DEBUG: Look for nailgun node by macs set([u'64:2C:DE:B2:40:01', u'64:91:44:E5:5F:7D', u'64:9E:62:85:12:AF', u'64:AD:AB:91:9D:71', u'64:BE:7A:D6:C9:D2'])
--------------------- >> end captured logging << ---------------------

To avaid this we need to cerry-pick this commit
1e46bd4e590b8ddcac6da0b47005284d47e8e313

Tags: system-tests
summary: - Need to cherry-pick fix get_nailgun_node_by_devops_nod
+ Need to cherry-pick fix get_nailgun_node_by_devops_node
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

already in 4.1.1

Changed in fuel:
status: New → Invalid
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.