]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
orchestra/remote: add resolve_ip method
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Wed, 19 Mar 2025 13:49:51 +0000 (14:49 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Wed, 23 Jul 2025 11:37:42 +0000 (13:37 +0200)
commit8c5ce421eab7e5a4abd8e19ee8a8aba5abdefd99
tree0663fde37d15338a3d4348628624357505777d15
parent6fb25806e4fb7d7745c85caf53ca220d65a090d9
orchestra/remote: add resolve_ip method

Add utility method to resolve a hostname from within remote host.
This is useful to resolve ip address of the remote host itself,
because getting ip address from transport object of ssh is not
suitable because it may have only bastion host and port, which
is not relevant for the purpose of configuring a cluster.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/orchestra/remote.py
teuthology/orchestra/test/test_remote.py