auth_method is not getting set during tempest run using stestr

Bug #1756262 reported by Puneet Arora on 2018-03-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Undecided
Unassigned

Bug Description

During below testcase execution, default value auth_method is not getting picked.

Testcase: tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops

By default auth_mehtod is set to keypair in below file as mentioned in tempest/config.py file:

cfg.StrOpt('auth_method',
               default='keypair',
               choices=['keypair'],
               help='Default authentication method to the instance. '
                    'Only ssh via keypair is supported for now. '
                    'Additional methods will be handled in a separate spec.'),

But during testcase execution the value of CONF.validation.auth_method is getting set to "None" due to this testcase always try to login to instance using "password" (if mentioned in validation section) instead of private key. But our requirement is to run testcase using private key only.

This is coming while running testcase using "stestr run tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops".

Even I set auth_method parameter in tempest.conf, still value of CONF.validation.auth_method is None.
e.g.:
[validation]
auth_method = keypair

Testcase should login to instance using private key instead of password.

Changed in tempest:
assignee: nobody → Manik Bindlish (manikbindlish)

Hi Puneet,

I have tried to run with stestr but I found "CONF.validation.auth_method" is getting keypair.
I also put print and trace at "https://github.com/openstack/tempest/blob/master/tempest/scenario/manager.py#L385"

Output was:
stack@control:~/tempest$ stestr run tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops
Value of CONF.validation.auth_method is: keypair
Value of CONF.validation.auth_method is: keypair
Value of CONF.validation.auth_method is: keypair
Value of CONF.validation.auth_method is: keypair
{0} tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops [85.337241s] ... ok

I have print: "Value of CONF.validation.auth_method is: CONF.validation.auth_method"

Could you please suggest, how to reproduce this issue?

Changed in tempest:
assignee: Manik Bindlish (manikbindlish19) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers