Env deployment failed with AttributeError: 'TranslatorFactory' object has no attribute 'contextual_form'

Bug #1583991 reported by Anna Babich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
High
Anna Babich
Mitaka
Confirmed
High
Anna Babich
Newton
Confirmed
High
Anna Babich

Bug Description

Env deployment (ISO #372, fuel-devops release 2.9.20) via fuel-qa with the './utils/jenkins/system_tests.sh -t test -w $(pwd) -j fuelweb_test -i $ISO_PATH -o --group=setup -K' command failed with

/home/ababich/fuel-qa
Traceback (most recent call last):
  File "fuelweb_test/run_tests.py", line 197, in <module>
    import_tests()
  File "fuelweb_test/run_tests.py", line 74, in import_tests
    from tests import test_backup_restore # noqa
  File "/home/ababich/fuel-qa/fuelweb_test/tests/test_backup_restore.py", line 23, in <module>
    from fuelweb_test.helpers import os_actions
  File "/home/ababich/fuel-qa/fuelweb_test/helpers/os_actions.py", line 22, in <module>
    from fuelweb_test.helpers import common
  File "/home/ababich/fuel-qa/fuelweb_test/helpers/common.py", line 18, in <module>
    from cinderclient import client as cinderclient
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/client.py", line 39, in <module>
    from cinderclient import api_versions
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/api_versions.py", line 25, in <module>
    from cinderclient._i18n import _
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/_i18n.py", line 32, in <module>
    _C = _translators.contextual_form
AttributeError: 'TranslatorFactory' object has no attribute 'contextual_form'
ababich@srv63-bud:~$

After adding 'oslo.i18n>=2.1.0' to local copy of /fuel-qa/fuelweb_test/requirements.txt (https://bugs.launchpad.net/oslo.service/+bug/1525992) and rerun './utils/jenkins/system_tests.sh -t test -w $(pwd) -j fuelweb_test -i $ISO_PATH -o --group=setup -K', env deployment has been completed successfully

Tags: area-qa
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

the issue is in fuel-qa code, probably with some dependencies on the environment.

Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

What test group was executed?

Revision history for this message
Anna Babich (ababich) wrote :

./utils/jenkins/system_tests.sh -t test -w $(pwd) -j fuelweb_test -i $ISO_PATH -o --group=setup -K

Revision history for this message
Anna Babich (ababich) wrote :

With reference to https://bugs.launchpad.net/oslo.service/+bug/1525992 , the workaround for the issue is to add manually oslo.i18n>=2.1.0 to /fuel-qa/fuelweb_test/requirements.txt

Dmitry Klenov (dklenov)
tags: added: area-qa
tags: removed: need-info
Revision history for this message
Sergey Novikov (snovikov) wrote :

Please update description according to comments #3-5

Revision history for this message
Nastya Urlapova (aurlapova) wrote :

@Anna, I suggest you fix env settings, which you use for testing.

Anna Babich (ababich)
description: updated
description: updated
Revision history for this message
Dmitry Klenov (dklenov) wrote :

Description was updated with requested info. Moving to open state.

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.