Deployment with ceph and ansible 2.4 fails with: "WorkflowTasks_Step2_Execution: ERROR" "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'. Host key verification failed."

Bug #1725224 reported by Marius Cornea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Emilien Macchi

Bug Description

Deployment with ceph fails with: "WorkflowTasks_Step2_Execution: ERROR" "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'. Host key verification failed."

Digging through mistral logs I see:
onnect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}]}
2017-10-19 17:56:37,061 p=23479 u=mistral | failed: [192.168.24.12] (item=192.168.24.22) => {"item": "192.168.24.22", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}
2017-10-19 17:56:37,113 p=23479 u=mistral | failed: [192.168.24.12] (item=192.168.24.6) => {"item": "192.168.24.6", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}
2017-10-19 17:56:37,113 p=23479 u=mistral | fatal: [192.168.24.12]: UNREACHABLE! => {"changed": false, "msg": "All items completed", "results": [{"_ansible_item_result": true, "item": "192.168.24.11", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}, {"_ansible_item_result": true, "item": "192.168.24.12", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}, {"_ansible_item_result": true, "item": "192.168.24.9", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}, {"_ansible_item_result": true, "item": "192.168.24.21", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}, {"_ansible_item_result": true, "item": "192.168.24.16", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}, {"_ansible_item_result": true, "item": "192.168.24.18", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}, {"_ansible_item_result": true, "item": "192.168.24.22", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}, {"_ansible_item_result": true, "item": "192.168.24.6", "msg": "Failed to connect to the host via ssh: Could not create directory '/home/mistral/.ssh'.\r\nHost key verification failed.\r\n", "unreachable": true}]}

The issue seems to be caused in ansible 2.4 reported in https://github.com/ansible/ansible/issues/30720

Changed in tripleo:
assignee: nobody → Marius Cornea (mcornea)
status: Confirmed → In Progress
Revision history for this message
Marius Cornea (mcornea) wrote :
Changed in tripleo:
importance: Undecided → High
milestone: none → queens-1
tags: added: pike-backport-potential workflows
Changed in tripleo:
milestone: queens-1 → queens-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/514584

wes hayutin (weshayutin)
tags: added: alert
Revision history for this message
wes hayutin (weshayutin) wrote :
tags: added: promotion-blocker
Changed in tripleo:
importance: High → Critical
Changed in tripleo:
assignee: Marius Cornea (mcornea) → Emilien Macchi (emilienm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/513701
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=09864037a7cdf149383d1c5ac5a8553b078d271a
Submitter: Zuul
Branch: master

commit 09864037a7cdf149383d1c5ac5a8553b078d271a
Author: Marius Cornea <email address hidden>
Date: Fri Oct 20 12:04:49 2017 +0200

    Use ANSIBLE_HOST_KEY_CHECKING var instead of ssh-common-args

    ssh-common-args get ignored in ansible 2.4 due to
    https://github.com/ansible/ansible/issues/30720
    This change adds the use of ANSIBLE_HOST_KEY_CHECKING env var as
    a replacement for the ssh-common-args cli option.

    Closes-bug: 1725224

    Change-Id: I398e93d57f6155b59c3f049558558b3a18f4762c

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/pike)

Reviewed: https://review.openstack.org/514584
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=6bef899ed13e0dcc5ba6a99bc1859fb77682bb4c
Submitter: Zuul
Branch: stable/pike

commit 6bef899ed13e0dcc5ba6a99bc1859fb77682bb4c
Author: Marius Cornea <email address hidden>
Date: Fri Oct 20 12:04:49 2017 +0200

    Use ANSIBLE_HOST_KEY_CHECKING var instead of ssh-common-args

    ssh-common-args get ignored in ansible 2.4 due to
    https://github.com/ansible/ansible/issues/30720
    This change adds the use of ANSIBLE_HOST_KEY_CHECKING env var as
    a replacement for the ssh-common-args cli option.

    Closes-bug: 1725224

    Change-Id: I398e93d57f6155b59c3f049558558b3a18f4762c
    (cherry picked from commit 87235537f791b99ba54a2d6ffd5c4d595e6d47c0)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 7.6.3

This issue was fixed in the openstack/tripleo-common 7.6.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 8.2.0

This issue was fixed in the openstack/tripleo-common 8.2.0 release.

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.