redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 96 forks source link

virsh plugin: checksum validation failing when fetching private key #397

Open venkataanil opened 3 years ago

venkataanil commented 3 years ago

This ansible task https://github.com/redhat-openstack/infrared/blob/master/plugins/virsh/prepare_hypervisor.yml#L129 is failing while fetching keys for multiple hypervisors when the deployment is using VMs on multi hypervisors for overcloud deployment.

TASK [copy server private key from hypervisor for SSH proxy] ***
^[[0;33mchanged: [hypervisor-0] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;31mfailed: [hypervisor-2] (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'}) => {"changed": false, "checksum": "c74a3864d18f392855f3b84903cf412aab14aba9", "dest": "/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa", "file": "/root/.ssh/id_rsa", "item": {"dest": "/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa", "src": "~/.ssh/id_rsa"}, "md5sum": "a1ed42f80ca7431144bdf35517c5c12b", "msg": "checksum mismatch", "remote_checksum": "2ed1379f87001727821da27967e826c43e08e937", "remote_md5sum": null}^[[0m
^[[0;33mchanged: [hypervisor-1] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-3] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-5] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-4] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-6] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-8] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-7] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-0] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-9] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa', u'src': u'~/.ssh/id_rsa'})^[[0m ^[[0;33mchanged: [hypervisor-2] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-3] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-1] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-5] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-4] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-6] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-8] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-7] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m ^[[0;33mchanged: [hypervisor-9] => (item={u'dest': u'/root/.infrared/.workspaces/workspace_2020-09-15_05-16-35/id_rsa.pub', u'src': u'~/.ssh/id_rsa.pub'})^[[0m