Redstack Integration tests fail to start reddwarf service

Bug #1084681 reported by Dan Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trove Integration
Triaged
Low
Dan Nguyen

Bug Description

Steps to reproduce:

1. navigate to reddwarf-integration/scripts
2. make sure the reddwarf services are not running
3. run $ ./redstack int-tests
4. watch the output from the console

Work Around:

run with step 2. above omitted (meaning run the tests with reddwarf service up)

Stacktrace:

======================================================================
ERROR: proboscis.case.FunctionTest (start_reddwarf_api)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/usr/local/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/ubuntu/reddwarf-integration/tests/integration/tests/initialize.py", line 172, in start_reddwarf_api
    conf_file_name="reddwarf_conf").run()
  File "/home/ubuntu/reddwarf-integration/tests/integration/tests/initialize.py", line 81, in run
    self.service.start()
  File "/home/ubuntu/reddwarf-integration/tests/integration/tests/util/services.py", line 233, in start
    ") never seemed to start.")
RuntimeError: Issued the command successfully but the service (['python', u'/opt/stack/reddwarf/bin/reddwarf-api', '--config-file=', '/tmp/reddwarf.conf']) never seemed to start.
-------------------- >> begin captured stdout << ---------------------
Looking for config value reddwarf_code_root...
/opt/stack/reddwarf
Path = /opt/stack/reddwarf/bin/reddwarf-api
Running cmds: ['python', u'/opt/stack/reddwarf/bin/reddwarf-api', '--config-file=', '/tmp/reddwarf.conf']
reddwarf-api
['/usr/bin/pgrep', '-f', u'reddwarf-api']

Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

This might be a misleading stacktrace. I will try to update this ticket with another one.

Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

Here is a better stacktrace I think.

======================================================================
ERROR: proboscis.case.FunctionTest (start_reddwarf_api)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/usr/local/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/ubuntu/reddwarf-integration/tests/integration/tests/initialize.py", line 172, in start_reddwarf_api
    conf_file_name="reddwarf_conf").run()
  File "/home/ubuntu/reddwarf-integration/tests/integration/tests/initialize.py", line 81, in run
    self.service.start()
  File "/home/ubuntu/reddwarf-integration/tests/integration/tests/util/services.py", line 233, in start
    ") never seemed to start.")
RuntimeError: Issued the command successfully but the service (['python', u'/opt/stack/reddwarf/bin/reddwarf-api', '--config-file=', '/tmp/reddwarf.conf']) never seemed to start.
-------------------- >> begin captured stdout << ---------------------
Looking for config value reddwarf_code_root...
/opt/stack/reddwarf
Path = /opt/stack/reddwarf/bin/reddwarf-api
Running cmds: ['python', u'/opt/stack/reddwarf/bin/reddwarf-api', '--config-file=', '/tmp/reddwarf.conf']
reddwarf-api
['/usr/bin/pgrep', '-f', u'reddwarf-api']

Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

These appear to be equivalent.

Revision history for this message
Nikhil Manchanda (slicknik) wrote :

Dan, can you please make sure that your reddwarf API service is running before you run the tests.
You can start it by './redstack start'

Please resolve if this is no longer an issue.

Thanks!
-Nikhil

Changed in reddwarf-integration:
assignee: nobody → Dan Nguyen (daniel-a-nguyen)
Changed in trove-integration:
status: New → Triaged
importance: Undecided → Wishlist
importance: Wishlist → Low
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.