Bug 1356092 - Tempest test failing for cinder, sahara and neutron in RHOS-9
Summary: Tempest test failing for cinder, sahara and neutron in RHOS-9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic
Version: 9.0 (Mitaka)
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ga
: 9.0 (Mitaka)
Assignee: Lucas Alvares Gomes
QA Contact: tkammer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-13 11:51 UTC by Poornima
Modified: 2016-08-15 07:19 UTC (History)
16 users (show)

Fixed In Version: openstack-ironic-5.1.2-3.el7ost
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2016-08-15 07:19:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1597 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 9 Release Candidate Advisory 2016-08-11 16:06:52 UTC

Description Poornima 2016-07-13 11:51:29 UTC
Description of problem:
Tempest is not able to discover cinder,neutron and sahara tests.
Certification team is using this tempest as primary tool for partners to certify hence this needs to be fixed for upcoming .


Version-Release number of selected component (if applicable):
openstack-nova-network-13.1.0-2.el7ost.noarch
openstack-nova-cert-13.1.0-2.el7ost.noarch
openstack-zaqar-2.0.1-0.20160621211345.9fdbcfc.el7ost.noarch
python-django-openstack-auth-2.2.0-1.el7ost.noarch
openstack-swift-plugin-swift3-1.10-1.el7ost.noarch
openstack-nova-common-13.1.0-2.el7ost.noarch
openstack-gnocchi-statsd-2.1.3-2.el7ost.noarch
openstack-sahara-common-4.0.1-2.el7ost.noarch
openstack-neutron-metering-agent-8.1.0-11.el7ost.noarch
openstack-keystone-9.0.0-1.el7ost.noarch
openstack-packstack-puppet-8.0.0-4.el7ost.noarch
openstack-swift-account-2.6.0-1.el7ost.noarch
openstack-gnocchi-metricd-2.1.3-2.el7ost.noarch
openstack-ceilometer-central-6.1.1-1.el7ost.noarch
openstack-aodh-api-2.0.1-3.el7ost.noarch
openstack-puppet-modules-8.1.2-1.el7ost.noarch
openstack-utils-2015.2-1.el7ost.noarch
openstack-packstack-8.0.0-4.el7ost.noarch
openstack-cinder-8.0.0-4.el7ost.noarch
openstack-glance-12.0.0-1.el7ost.noarch
openstack-ceilometer-compute-6.1.1-1.el7ost.noarch
openstack-nova-compute-13.1.0-2.el7ost.noarch
openstack-nova-novncproxy-13.1.0-2.el7ost.noarch
openstack-neutron-common-8.1.0-11.el7ost.noarch
openstack-ironic-common-5.1.2-2.el7ost.noarch
openstack-neutron-openvswitch-8.1.0-11.el7ost.noarch
openstack-dashboard-theme-9.0.1-1.el7ost.noarch
openstack-swift-container-2.6.0-1.el7ost.noarch
openstack-heat-common-6.0.0-7.el7ost.noarch
openstack-gnocchi-api-2.1.3-2.el7ost.noarch
openstack-aodh-evaluator-2.0.1-3.el7ost.noarch
openstack-sahara-api-4.0.1-2.el7ost.noarch
python-openstacksdk-0.8.3-1.el7ost.noarch
python-openstackclient-2.2.0-1.el7ost.noarch
openstack-nova-api-13.1.0-2.el7ost.noarch
openstack-ceilometer-common-6.1.1-1.el7ost.noarch
openstack-ceilometer-polling-6.1.1-1.el7ost.noarch
openstack-nova-console-13.1.0-2.el7ost.noarch
redhat-certification-openstack-1.5.0-1.el7.noarch
openstack-nova-13.1.0-2.el7ost.noarch
openstack-nova-conductor-13.1.0-2.el7ost.noarch
openstack-nova-scheduler-13.1.0-2.el7ost.noarch
openstack-rally-0.3.3-1.el7ost.noarch
openstack-dashboard-9.0.1-1.el7ost.noarch
openstack-swift-object-2.6.0-1.el7ost.noarch
openstack-heat-engine-6.0.0-7.el7ost.noarch
openstack-gnocchi-carbonara-2.1.3-2.el7ost.noarch
openstack-ceilometer-api-6.1.1-1.el7ost.noarch
openstack-aodh-notifier-2.0.1-3.el7ost.noarch
openstack-nova-cells-13.1.0-2.el7ost.noarch
openstack-sahara-4.0.1-2.el7ost.noarch
openstack-neutron-8.1.0-11.el7ost.noarch
openstack-neutron-ml2-8.1.0-11.el7ost.noarch
openstack-tempest-10.0.0-2.b4a056dgit.el7ost.noarch
openstack-swift-2.6.0-1.el7ost.noarch
openstack-heat-api-6.0.0-7.el7ost.noarch
openstack-gnocchi-common-2.1.3-2.el7ost.noarch
openstack-ceilometer-collector-6.1.1-1.el7ost.noarch
openstack-aodh-listener-2.0.1-3.el7ost.noarch
openstack-neutron-lbaas-8.0.0-1.el7ost.noarch
openstack-selinux-0.7.3-3.el7ost.noarch
openstack-swift-proxy-2.6.0-1.el7ost.noarch
openstack-gnocchi-indexer-sqlalchemy-2.1.3-2.el7ost.noarch
openstack-ceilometer-notification-6.1.1-1.el7ost.noarch
openstack-aodh-common-2.0.1-3.el7ost.noarch
openstack-sahara-engine-4.0.1-2.el7ost.noarch

How reproducible:
Always 

Steps to Reproduce:
1.Install openstack-tempest
2.cd /usr/share/openstack-tempest-10.0.0/
3.testr list-tests

Actual results:

testr list-tests
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list 
2016-07-13 07:17:23.018 28738 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
/usr/lib/python2.7/site-packages/tempest_lib/__init__.py:28: DeprecationWarning: tempest-lib is deprecated for future bug-fixes and code changes in favor of tempest. Please change your imports from tempest_lib to tempest.lib
  DeprecationWarning)
--- import errors ---
Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_api_discovery
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_api_discovery.py", line 15, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_chassis
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_chassis.py", line 19, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_drivers
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_drivers.py", line 18, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_nodes
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_nodes.py", line 19, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_nodestates
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_nodestates.py", line 19, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_ports
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_ports.py", line 18, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_ports_negative
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_ports_negative.py", line 17, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.scenario.test_baremetal_basic_ops
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/scenario/test_baremetal_basic_ops.py", line 21, in <module>
    from ironic_tempest_plugin.tests.scenario import baremetal_manager
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/scenario/baremetal_manager.py", line 23, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'
Non-zero exit code (2) from test listing.


Expected results:
Should lists the tempest tests

Additional info:

Comment 3 Steve Linabery 2016-07-13 14:04:59 UTC
I am able to reproduce this on a mitaka-based RDO tripleo-quickstart env.

I think this error is a result of
a) not having configured a local tempest directory
b) not having run the config_tempest.py script prior to 'testr list-tests'

The pattern I have seen for using tempest with RDO/OSP on undercloud is:
su - stack
mkdir ~/tempest
cd ~/tempest
/usr/share/openstack-tempest-*/tools/configure-tempest-directory
<run tools/config_tempest.py appropriately>
testr list-tests

This approach creates/uses ~/tempest/etc/tempest.conf and works for me. I don't think the error you are hitting is a bug with the tempest package.

Comment 6 Suman Guha 2016-07-13 14:27:59 UTC
Rohit, Poornima,

Provide Clarification that with Steve's suggested approach it works or not ? 

Regards,
Suman

Comment 7 Rohit vyas 2016-07-13 14:57:55 UTC
We are facing this issue in Packstack environment (In reply to Steve Linabery from comment #3)
> I am able to reproduce this on a mitaka-based RDO tripleo-quickstart env.
> 
> I think this error is a result of
> a) not having configured a local tempest directory
> b) not having run the config_tempest.py script prior to 'testr list-tests'
> 
> The pattern I have seen for using tempest with RDO/OSP on undercloud is:
> su - stack
> mkdir ~/tempest
> cd ~/tempest
> /usr/share/openstack-tempest-*/tools/configure-tempest-directory
> <run tools/config_tempest.py appropriately>
> testr list-tests
> 
> This approach creates/uses ~/tempest/etc/tempest.conf and works for me. I
> don't think the error you are hitting is a bug with the tempest package.

We are facing this issue in Packstack deployment, with earlier puddle[4th july] this used to work fine,but in this puddle we are facing issue while listing.

[root@dhcp207-39 tempest]# rpm -qa |grep -i tempest
python-tempest-lib-1.0.0-1.el7ost.noarch
openstack-tempest-10.0.0-2.b4a056dgit.el7ost.noarch

Comment 8 Poornima 2016-07-14 05:43:38 UTC
(In reply to Steve Linabery from comment #3)
> I am able to reproduce this on a mitaka-based RDO tripleo-quickstart env.
> 
> I think this error is a result of
> a) not having configured a local tempest directory
> b) not having run the config_tempest.py script prior to 'testr list-tests'
> 
> The pattern I have seen for using tempest with RDO/OSP on undercloud is:
> su - stack
> mkdir ~/tempest
> cd ~/tempest
> /usr/share/openstack-tempest-*/tools/configure-tempest-directory
> <run tools/config_tempest.py appropriately>
> testr list-tests
> 
> This approach creates/uses ~/tempest/etc/tempest.conf and works for me. I
> don't think the error you are hitting is a bug with the tempest package.

Hi Steve,

We have configured tempest.conf appropriately, as rohit mentioned this was working in previous puddle See below steps on the latest puddle OSP9 environment:

<snip>
#cd /usr/share/openstack-tempest-10.0.0/

[root@rhos9latest openstack-tempest-10.0.0]# pwd
/usr/share/openstack-tempest-10.0.0

[root@rhos9latest openstack-tempest-10.0.0]# ls
doc  HACKING.rst  openstack-common.conf  README.rst    REVIEWING.rst   run_tests.sh  setup.py   setup.pyo  tempest.egg-info  tox.ini
etc  LICENSE      README.rpm             releasenotes  run_tempest.sh  setup.cfg     setup.pyc  tempest    tools
[root@rhos9latest openstack-tempest-10.0.0]# ./run_tempest.sh -N -C /etc/redhat-certification-openstack/tempest.conf
/usr/lib/python2.7/site-packages/tempest_lib/__init__.py:28: DeprecationWarning: tempest-lib is deprecated for future bug-fixes and code changes in favor of tempest. Please change your imports from tempest_lib to tempest.lib
  DeprecationWarning)
Non-zero exit code (2) from test listing.
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list 
--- import errors ---
Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_api_discovery
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_api_discovery.py", line 15, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_chassis
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_chassis.py", line 19, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_drivers
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_drivers.py", line 18, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_nodes
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_nodes.py", line 19, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_nodestates
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_nodestates.py", line 19, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_ports
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_ports.py", line 18, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.api.admin.test_ports_negative
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/test_ports_negative.py", line 17, in <module>
    from ironic_tempest_plugin.tests.api.admin import base
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/api/admin/base.py", line 20, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'

Failed to import test module: ironic_tempest_plugin.tests.scenario.test_baremetal_basic_ops
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/scenario/test_baremetal_basic_ops.py", line 21, in <module>
    from ironic_tempest_plugin.tests.scenario import baremetal_manager
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/tests/scenario/baremetal_manager.py", line 23, in <module>
    from ironic_tempest_plugin import clients
  File "/usr/lib/python2.7/site-packages/ironic_tempest_plugin/clients.py", line 25, in <module>
    ADMIN_CREDS = common_creds.get_configured_admin_credentials()
AttributeError: 'module' object has no attribute 'get_configured_admin_credentials'
The test run didn't actually run any tests

</snip>

we have been running tempest like this without any issues and it works appropriately .

Just to add : We have checked code there is no method 
"get_configured_admin_credentials" as the errors points this method is missing and which is there in upstream .

Ref of changes in upstream:-
https://github.com/openstack/tempest/commit/bc0a7a6d8022c7240f5f1f80c0c93b43e9037ad4

This needs to be fixed on priority.

Let me know if you need any further details. 

Thanks
Poornima

Comment 9 Lucas Alvares Gomes 2016-07-14 09:56:22 UTC
@Poornima,

Why is this a bug in Ironic?

It sounds to me that the tempest repository in OSP9 should be rebased to include https://review.openstack.org/#/c/321805 not the other way around.

Comment 10 Poornima 2016-07-14 10:43:00 UTC
Hi Lucas
As the bug is due to ironic auth client this component was changed as per https://bugzilla.redhat.com/show_bug.cgi?id=1356092#c4, 
I have raised needinfo on daniel so that he can answer queries with respect to tempest.

Comment 14 Lucas Alvares Gomes 2016-07-14 14:26:29 UTC
I've posted a patch to Ironic making the tempest call to get the admin credentials backward-compatible

Comment 16 Steve Linabery 2016-07-15 16:04:36 UTC
Is this set of Requires insufficient?

[stack@undercloud ~]$ rpm -q --requires openstack-tempest | grep ironic
python-ironic-tests
python-ironicclient

Comment 22 errata-xmlrpc 2016-08-15 07:19:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-1597.html


Note You need to log in before you can comment on or make changes to this bug.