Need to provide possibility to use custom credentials in get_slave_ip

Bug #1534789 reported by Egor Kotko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Egor Kotko

Bug Description

Need to provide possibility to use custom credentials in get_slave_ip

After changing password function get_slave_ip can not be executed:
https://github.com/openstack/fuel-devops/blob/master/devops/helpers/helpers.py#L166

https://ci.fuel-infra.org/job/master.fuel-ostf.pkgs.ubuntu.gate_ostf_update/12/consoleFull

2016-01-15 16:21:10,993 - ERROR decorators.py:112 -- Traceback (most recent call last):
  File "/home/jenkins/workspace/systest/master/fuelweb_test/helpers/decorators.py", line 83, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/systest/master/gates_tests/tests/test_review_in_ostf.py", line 54, in gate_ostf_ceph_ha
    self.env.d_env.nodes().slaves[:6])
  File "/home/jenkins/workspace/systest/master/fuelweb_test/models/environment.py", line 135, in bootstrap_nodes
    self.sync_time()
  File "/home/jenkins/workspace/systest/master/fuelweb_test/models/environment.py", line 147, in sync_time
    new_time = sync_time(self.d_env, nodes_names, skip_sync)
  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/ntp.py", line 35, in sync_time
    with GroupNtpSync(env, node_names) as g_ntp:
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/ntp.py", line 79, in __init__
    ntp = Ntp.get_ntp(get_node_remote(env, node_name),
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/helpers.py", line 156, in get_node_remote
    private_keys=get_private_keys(env))
  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 260, in connect
    password=self.password, pkey=private_key)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/client.py", line 283, in connect
    to_try = list(self._families_and_addresses(hostname, port))
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/paramiko/client.py", line 187, in _families_and_addresses
    addrinfos = socket.getaddrinfo(hostname, port, socket.AF_UNSPEC, socket.SOCK_STREAM)
gaierror: [Errno -2] Name or service not known

2016-01-15 16:21:10,993 - INFO decorators.py:113 -- <<<<<****************************************************************************************************>>>>>
ERROR

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

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

Changed in fuel:
status: New → In Progress
Maciej Relewicz (rlu)
tags: added: area-devops
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-devops (master)

Reviewed: https://review.openstack.org/268293
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=0aa43f3ea6c5c1c963f68cd374778ffc80dee66a
Submitter: Jenkins
Branch: master

commit 0aa43f3ea6c5c1c963f68cd374778ffc80dee66a
Author: Egor Kotko <email address hidden>
Date: Fri Jan 15 20:03:24 2016 +0100

    Custom credentials in get_slave_ip

    Add using credentials as the parameters
    in get_slave_ip

    Change-Id: I9ac42e8554ed5ccd90dee9fc0993c43b6405edd4
    Closes-bug: #1534789

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-devops (master)

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

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

Reviewed: https://review.openstack.org/269246
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=4272634972e10f71f6798577b9bb5ae4f3be8b1f
Submitter: Jenkins
Branch: master

commit 4272634972e10f71f6798577b9bb5ae4f3be8b1f
Author: Egor Kotko <email address hidden>
Date: Mon Jan 18 20:24:45 2016 +0100

    Workaround for #1535417

    Change ssh_credentials on
    keystone credentials

    Change-Id: I8133f7db2e2681afc6d0157c683b49ae44364ba2
    Closes-bug: #1534789

Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

Fix released in fuel-devops@2.9.17

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.