[EDP] Extend savannaclient to allow extra args for job executions

Bug #1268695 reported by Trevor McKay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client library for Sahara
Fix Released
High
Trevor McKay

Bug Description

For Java job types, the job execution data includes additional key/value pairs beyond cluster id and configs:

main_class -- the main class identifier (required for oozie java actions)
java_opts -- optional jvm args

Additionally, input_id and output_id are not used by Java job types although they are used by other job types. However, these can be passed as 'None' for java types.

Extend the JobExecutionsManager.create() to allow setting additional options.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-savannaclient (master)

Reviewed: https://review.openstack.org/66398
Committed: https://git.openstack.org/cgit/openstack/python-savannaclient/commit/?id=d664a41e0305dbc170dbd9d9dc929a7638f1e5d1
Submitter: Jenkins
Branch: master

commit d664a41e0305dbc170dbd9d9dc929a7638f1e5d1
Author: Trevor McKay <email address hidden>
Date: Mon Jan 13 14:03:13 2014 -0500

    Allow passing extra args to JobExecutionsManager.create()

    Java job types require additional parameters beyond cluster_id and
    configs. Add an optional dictionary and an update call to allow
    for additional key/value settings.

    Closes-Bug: #1268695

    Change-Id: I995e648a939063170d1a2ac7040493351fb67f74

Changed in python-savannaclient:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-savannaclient (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-savannaclient (master)

Reviewed: https://review.openstack.org/66662
Committed: https://git.openstack.org/cgit/openstack/python-savannaclient/commit/?id=8b705687019f4c438500057ac2627ab532f084c2
Submitter: Jenkins
Branch: master

commit 8b705687019f4c438500057ac2627ab532f084c2
Author: Trevor McKay <email address hidden>
Date: Tue Jan 14 13:27:49 2014 -0500

    JobExecutionsManager.create() should handle input_id/output_id == None

    Input and output ids are not part of the Java workflow JSON schema. Including
    them, even set to None, causes an error. In order to maintain backward
    compatibility, leave input_id and output_id as required parameters but
    do not add them to the job exec data if they are None.

    Closes-Bug: #1268695
    Change-Id: I8df8cb86094f5d67ca16de7d6dd253af142eca25

Changed in python-savannaclient:
importance: Undecided → High
assignee: nobody → Trevor McKay (tmckay)
milestone: none → 0.4.1
Changed in python-savannaclient:
milestone: 0.4.1 → 0.5.0
Changed in python-savannaclient:
status: Fix Committed → Fix Released
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.