Bug 1451777

Summary: Octavia scenario tests fail with 'No such file or directory', because the Octavia tests subpackage does not bring in the 'golang' dependency
Product: Red Hat OpenStack Reporter: Arie Bregman <abregman>
Component: openstack-octaviaAssignee: Nir Magnezi <nmagnezi>
Status: CLOSED ERRATA QA Contact: Alexander Stafeyev <astafeye>
Severity: high Docs Contact:
Priority: high    
Version: 11.0 (Ocata)CC: abregman, amuller, apevec, astafeye, ihrachys, jlibosva, lhh, lpeer, majopela, mburns, nyechiel, sclewis, slinaber
Target Milestone: Upstream M2Keywords: AutomationBlocker, TechPreview, Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-octavia-1.0.0-0.20170719072610.208395f.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 21:27:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1451829    

Description Arie Bregman 2017-05-17 13:44:52 UTC
Description of problem:

When running Octavia scenario tests, after deploying it with TripleO, the following tests are failing:

octavia.tests.tempest.v1.scenario.test_listener_basic.TestListenerBasic.test_load_balancer_basic
octavia.tests.tempest.v1.scenario.test_load_balancer_tree_minimal.TestLoadBalancerTreeMinimal.test_load_balancer_tree_minimal

The traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tempest/test.py", line 103, in wrapper
    return f(self, *func_args, **func_kwargs)
  File "/usr/lib/python2.7/site-packages/octavia/tests/tempest/v1/scenario/test_load_balancer_tree_minimal.py", line 44, in test_load_balancer_tree_minimal
    self._start_backend_httpd_processes('server1')
  File "/usr/lib/python2.7/site-packages/octavia/tests/tempest/v1/scenario/base.py", line 249, in _start_backend_httpd_processes
    httpd = self._build_static_httpd()
  File "/usr/lib/python2.7/site-packages/octavia/tests/tempest/v1/scenario/base.py", line 239, in _build_static_httpd
    'httpd.go', cwd=builddir)
  File "/usr/lib/python2.7/site-packages/octavia/tests/tempest/v1/scenario/base.py", line 826, in execute
    proc = subprocess.Popen(args, **subprocess_args)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Version-Release number of selected component (if applicable): openstack-octavia-housekeeping-0.10.0-6.el7ost.noarch


How reproducible: 100


Steps to Reproduce:
1. Deploy Director OSP 11 + Octavia
2. Run Octavia scenario tests

Actual results: Fail


Expected results: All tests passed successfully :)

Comment 2 Assaf Muller 2017-05-17 14:12:34 UTC
I think the test assumes that the 'go' binary is present on the test machine, and in our case it isn't?

Comment 4 Alexander Stafeyev 2017-05-17 15:05:16 UTC
*** Bug 1451789 has been marked as a duplicate of this bug. ***

Comment 5 Nir Magnezi 2017-05-18 12:49:21 UTC
(In reply to Assaf Muller from comment #2)
> I think the test assumes that the 'go' binary is present on the test
> machine, and in our case it isn't?

Looks like this is the case in u/s OpenStack Nodes, but indeed not in ours.
I've added this as a dependency for the Octavia tests package: https://review.rdoproject.org/r/#/c/6688/

Comment 23 errata-xmlrpc 2017-12-13 21:27:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:3462