Scenario tests failed on authorization in swiftclient

Bug #1484536 reported by Evgeny Sikachev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Evgeny Sikachev

Bug Description

Run scenario tests on MOS 7.0 for check EDP. On creating swift datasource we have next trace:

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 156, in check_run_jobs
        main_libs, additional_libs = self._create_job_binaries(job)

      File "sahara/tests/scenario/base.py", line 198, in _create_job_binaries
        main_libs.append(self._create_job_binary(job['main_lib']))

      File "sahara/tests/scenario/base.py", line 209, in _create_job_binary
        url = self._create_swift_data(job_binary['source'])

      File "sahara/tests/scenario/base.py", line 254, in _create_swift_data
        container = self._get_swift_container()

      File "sahara/tests/scenario/base.py", line 272, in _get_swift_container
        utils.rand_name('sahara-tests'))

      File "sahara/tests/scenario/base.py", line 551, in __create_container
        self.swift.create_container(container_name)

      File "sahara/tests/scenario/clients.py", line 213, in create_container
        return self.swift_client.put_container(container_name)

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/swiftclient/client.py", line 1378, in put_container
        response_dict=response_dict)

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/swiftclient/client.py", line 1294, in _retry
        self.url, self.token = self.get_auth()

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/swiftclient/client.py", line 1267, in get_auth
        timeout=self.timeout)

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/swiftclient/client.py", line 460, in get_auth
        auth_version=auth_version)

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/swiftclient/client.py", line 388, in get_auth_keystone
        raise ClientException('Authorization Failure. %s' % err)

      File "/Users/esikachev/sahara/.tox/scenario/lib/python2.7/site-packages/oslo_i18n/_message.py", line 208, in __str__
        raise UnicodeError(msg)

    UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.

Problem reproduced on all plugins. Yaml-files from https://github.com/openstack/sahara/tree/master/etc/scenario/sahara-ci
OS: ubuntu 14.04
scenario tests from sahara master

Need add ability disable ssl_verify for swift in scenario tests

Changed in sahara:
assignee: nobody → Evgeny Sikachev (esikachev)
Revision history for this message
Luigi Toscano (ltoscano) wrote :

Can you please add more details on the test? Which plugin are you testing? Which operating system?
How do you call the test runner, what are the scenario files that you use?
I guess MOS 7.0 means that it tracks Kilo.

description: updated
Revision history for this message
Luigi Toscano (ltoscano) wrote :

Do you run the tests manually? Do you use a localized version of OpenStack instead of English, or - if you run the client from your console - does your system use a non-latin language?

Revision history for this message
Evgeny Sikachev (esikachev) wrote :

i run tests with command: tox -e ~/etc/credentials.yaml ~/etc/edp.yaml ~/etc/spark-1.3.1.yaml

use English language everywhere

Revision history for this message
Michael McCune (mimccune) wrote :

i am having difficulty replicating this, i think we need more information about how you are structuring the test, and what data source you are using for the job. i'm guessing it's swift from the output, but i'd like to know how you are setting up the edp.yaml file.

Changed in sahara:
status: New → Incomplete
Revision history for this message
Evgeny Sikachev (esikachev) wrote :

i know how we can resolve this problem. in requirements.txt for stable/kilo we use python-swiftclient>=2.2.0,<2.5.0, but in master use python-swiftclient>=2.2.0

Changed in sahara:
milestone: none → liberty-3
summary: - Scenario tests fail with trace on creating datasources
+ Scenario tests failed on authorization in swiftclient
description: updated
Changed in sahara:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (master)

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

Changed in sahara:
importance: Undecided → Medium
Changed in sahara:
milestone: liberty-3 → liberty-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/217755
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=931c113b9788b0cb9f36a82e12e39abe530bc505
Submitter: Jenkins
Branch: master

commit 931c113b9788b0cb9f36a82e12e39abe530bc505
Author: Evgeny Sikachev <email address hidden>
Date: Thu Aug 27 18:01:03 2015 +0300

    Add missing ssl_verify for swift in scenario tests

    Add missing parameters for ssl in swift
    closes-bug: #1484536

    Change-Id: I2a5481af63d118522ec352a26909c986978be471

Changed in sahara:
status: In Progress → Fix Committed
Revision history for this message
Evgeny Sikachev (esikachev) wrote :

bug reproduced on current master branch

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

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

Changed in sahara:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/223256
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=ca0f2f2b0d917f430f71747bf407834bb21f0335
Submitter: Jenkins
Branch: master

commit ca0f2f2b0d917f430f71747bf407834bb21f0335
Author: Evgeny Sikachev <email address hidden>
Date: Mon Sep 14 21:29:31 2015 +0300

    Fix working scenario tests with swiftclient

    Value "insecure" in swiftclient should have
    inverse value of ssl_verify.
    Change-Id: Ieb6e46b8f5969bfc3b47ee293c346fb2977103c3
    Closes-bug: #1484536

Changed in sahara:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: liberty-rc1 → 3.0.0
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.