[neutron-tempest-plugin] If paramiko SSH client connection fails because of authentication, cannot reconnect
Bug #1892861 reported by
Rodolfo Alonso
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Slawek Kaplonski |
Bug Description
In the VM boot process, cloud-init copies the SSH keys.
If the tempest test tries to connect to the VM before the SSH keys are copied, the SSH client will raise a paramiko.
If a bigger sleep time is added manually (to avoid this race condition: try to connect when the IP is available in the port but the SSH keys are still not present in the VM), the SSH client connects without any problem.
tags: | added: gate-failure |
Changed in neutron: | |
importance: | Undecided → High |
Changed in neutron: | |
status: | New → Incomplete |
Changed in neutron: | |
status: | Expired → Fix Committed |
assignee: | nobody → Slawek Kaplonski (slaweq) |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I'm not sure what am I missing here but I was trying to reproduce issue locally and I couldn't.
Here is what I did:
- I modifed cirros image and put "sleep 30" in https:/ /github. com/cirros- dev/cirros/ blob/359b5ebda0 b84db947b60c2b7 5e4d14feb900dc6 /src/sbin/ cirros- apply#L115 tempest_ plugin. scenario. test_basic. NetworkBasicTes t.test_ basic_instance
- using that modifed image I run neutron_
- in tempest logs I saw that it was trying to ssh to the instance few times but finally, when ssh key was added test passed successfully.