Scenario tests fail on creating datasource with type "database"

Bug #1486469 reported by Evgeny Sikachev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client library for Sahara
Fix Released
Critical
Sergey Lukjanov

Bug Description

NOTE:

It's a very huge backward compatibility issue that was introduced by
implementing job interface support in client.
The only affected release is 0.10.0.

----------------------------

When we run scenario tests from master on stable/kilo sahara, we have next error:

Traceback (most recent call last):

      File "sahara/tests/scenario/base.py", line 62, in wrapper
        return fct(self, *args, **kwargs)

      File "sahara/tests/scenario/base.py", line 174, in check_run_jobs
        job_id = self._create_job(job['type'], main_libs, additional_libs)

      File "sahara/tests/scenario/base.py", line 240, in _create_job
        libs, '')

      File "sahara/tests/scenario/base.py", line 558, in __create_job
        id = self.sahara.create_job(*args, **kwargs)

      File "sahara/tests/scenario/clients.py", line 124, in create_job
        data = self.sahara_client.jobs.create(*args, **kwargs)

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/saharaclient/api/jobs.py", line 35, in create
        return self._create('/jobs', data, 'job')

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/saharaclient/api/base.py", line 100, in _create
        self._raise_api_exception(resp)

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/saharaclient/api/base.py", line 166, in _raise_api_exception
        error_message=error_data.get("error_message"))

    APIException: Additional properties are not allowed (u'interface' was unexpected)

Changed in python-saharaclient:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Sergey Lukjanov (slukjanov)
Changed in python-saharaclient:
milestone: none → next-liberty
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (master)

Reviewed: https://review.openstack.org/214388
Committed: https://git.openstack.org/cgit/openstack/python-saharaclient/commit/?id=1ad3f214c75ed3b445f66a5502e63696d9f479b1
Submitter: Jenkins
Branch: master

commit 1ad3f214c75ed3b445f66a5502e63696d9f479b1
Author: Sergey Lukjanov <email address hidden>
Date: Wed Aug 19 02:42:03 2015 +0300

    Fix backward compat issue for job interfaces

    Closes-bug: #1486469

    Change-Id: Ib7a930cfd1757c3b8cfd3c89a75856c25e7dcdda

Changed in python-saharaclient:
status: In Progress → Fix Committed
Changed in python-saharaclient:
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.