Bug 1184522

Summary: launch_command.py missing
Product: [Community] RDO Reporter: Bastian Ballmann <bastian.ballmann>
Component: openstack-saharaAssignee: Elise Gafford <egafford>
Status: CLOSED CURRENTRELEASE QA Contact: Luigi Toscano <ltoscano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JunoCC: apevec, egafford
Target Milestone: ---Keywords: Upstream
Target Release: Juno   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-sahara-2014.2.2-4.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-14 17:18:46 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:

Description Bastian Ballmann 2015-01-21 15:39:11 UTC
Description of problem:
I tried to run the example Spark job from https://github.com/openstack/sahara/tree/master/etc/edp-examples and got the error

2015-01-21 14:03:55.102 22730 ERROR sahara.service.edp.job_manager [-] Can't run job execution 'a49eba00-d13e-4a06-a37f-cfee3d200925' (reason: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-package
s/sahara/service/edp/resources/launch_command.py')
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager Traceback (most recent call last):
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager   File "/usr/lib/python2.7/site-packages/sahara/service/edp/job_manager.py", line 118, in run_job
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager     _run_job(job_execution_id)
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager   File "/usr/lib/python2.7/site-packages/sahara/service/edp/job_manager.py", line 99, in _run_job
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager     jid, status, extra = eng.run_job(job_execution)
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager   File "/usr/lib/python2.7/site-packages/sahara/service/edp/spark/engine.py", line 174, in run_job
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager     r.write_file_to(launch, self._job_script())
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager   File "/usr/lib/python2.7/site-packages/sahara/service/edp/spark/engine.py", line 111, in _job_script
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager     return files.get_file_text(path)
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager   File "/usr/lib/python2.7/site-packages/sahara/utils/files.py", line 24, in get_file_text
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager     return open(full_name).read()
2015-01-21 14:03:55.102 22730 TRACE sahara.service.edp.job_manager IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/sahara/service/edp/resources/launch_command.py'


Version-Release number of selected component (if applicable):
openstack-sahara.noarch 2014.2.1-2.el7.centos
python-saharaclient.noarch 0.7.6-1.el7.centos


Steps to Reproduce:
1. Setup a Spark cluster with 1 namenode / master and 3 datanodes / slaves.
2. Run Spark examples from https://github.com/openstack/sahara/tree/master/etc/edp-examples

Comment 1 Elise Gafford 2015-02-05 19:55:30 UTC
Addressing upstream. See https://review.openstack.org/#/c/153352/

Comment 2 Alan Pevec 2015-02-09 08:41:00 UTC
> Keywords: Upstream

Please report in upstream bug tracker and link it here under External Trackers.

Comment 3 Elise Gafford 2015-02-09 16:44:29 UTC
apevec: Done; thanks.

Comment 4 Elise Gafford 2015-02-26 17:57:31 UTC
Patch merged upstream.

Comment 5 Elise Gafford 2015-03-23 21:24:02 UTC
Pushed to openstack-sahara-2014.1.3-3.fc21; currently in RDO update process.

Comment 6 Elise Gafford 2015-03-27 16:14:39 UTC
Incorrect version posted in last update. Fixed in openstack-sahara-2014.2.2-4.fc22.

Comment 7 Luigi Toscano 2015-09-17 22:25:19 UTC
This has been fixed for a while; both openstack-sahara-2014.2.2-4.el7 (Juno) and openstack-sahara-common-2015.1.1-1.el7 (Kilo) ships launch_command.py as part of edp resources.

Comment 8 Luigi Toscano 2016-03-14 17:18:46 UTC
I suspect it's better if I close it :)