[systest] Root password changing doesn't work in tests: 'AuthenticationException: Authentication failed.'

Bug #1525717 reported by Artem Panchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Artem Panchenko

Bug Description

It is possible to change default root password for Fuel master node in system tests:

https://github.com/openstack/fuel-qa/blob/master/fuelweb_test/settings.py#L484-L487

But currently that feature doesn't work, because tests are trying to log in to master node via SSH with new password, before credentials are changed:

2015-12-13 20:46:51,982 - DEBUG helpers.py:255 -- Connect to '10.109.10.2:22' as 'root:ceph1'
2015-12-13 20:46:51,994 - INFO transport.py:1545 -- Connected (version 2.0, client OpenSSH_6.6.1)
2015-12-13 20:46:54,279 - INFO transport.py:1545 -- Authentication (password) failed.

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/8.0.custom_system_test/fuelweb_test/helpers/decorators.py", line 80, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/8.0.custom_system_test/fuelweb_test/tests/base_test_case.py", line 132, in setup_master
    self.env.setup_environment()
  File "/home/jenkins/workspace/8.0.custom_system_test/fuelweb_test/models/environment.py", line 437, in setup_environment
    self.wait_for_external_config()
  File "/home/jenkins/workspace/8.0.custom_system_test/fuelweb_test/__init__.py", line 57, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/8.0.custom_system_test/fuelweb_test/models/environment.py", line 511, in wait_for_external_config
    with self.d_env.get_admin_remote() as remote:
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/models/environment.py", line 381, in get_admin_remote
    password=password)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/models/node.py", line 168, in remote
    password=password, private_keys=private_keys)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/helpers.py", line 230, in __init__
    self.reconnect()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/helpers.py", line 273, in reconnect
    self.connect()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/retry.py", line 27, in wrapper
    return func(*args, **kwargs)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/helpers.py", line 268, in connect
    password=self.password)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/client.py", line 367, in connect
    look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/client.py", line 584, in _auth
    raise saved_exception
AuthenticationException: Authentication failed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

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

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Panchenko (apanchenko-8)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/257070
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=0b5351158d5c83a7aedca6a310b38699f1ad53ec
Submitter: Jenkins
Branch: master

commit 0b5351158d5c83a7aedca6a310b38699f1ad53ec
Author: Artem Panchenko <email address hidden>
Date: Mon Dec 14 00:19:05 2015 +0200

    Fix root password changing feature in tests

    Change-Id: I035f110eef97f4edbb96ace989f8a1ec0f9718ef
    Closes-bug: #1525717

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