lb provisioning failure on a server with id lb-b7s18
Copy cert files onto container fails to copy cert file because "-" is missed out in the filename that is constructed from ansible_hosts
*******************************************************************************
*******************************************************************************
root@smb7s16:/opt/contrail/server_manager/ansible/playbooks/contrail_4_0_2_61_new/playbooks# grep -rn "Copy cert files onto container" -A5
roles/node/tasks/copy_ssl_certs.yml:14:- name: Copy cert files onto container
roles/node/tasks/copy_ssl_certs.yml-15- copy: src={{ item.src}} dest={{ item.dest }}
roles/node/tasks/copy_ssl_certs.yml-16- with_items:
roles/node/tasks/copy_ssl_certs.yml-17- - { src: "{{ ssl_certs_src_dir }}/{{ ansible_hostname|lower }}.pem", dest: "{{ ssl_cert_path }}"}
roles/node/tasks/copy_ssl_certs.yml-18- - { src: "{{ ssl_certs_src_dir }}/{{ ansible_hostname|lower }}-privkey.pem", dest: "{{ ssl_cert_key_path }}" }
roles/node/tasks/copy_ssl_certs.yml-19- when: ssl_certs_supplied
root@smb7s16:/opt/contrail/server_manager/ansible/playbooks/contrail_4_0_2_61_new/playbooks#
*******************************************************************************
*******************************************************************************
root@smb7s16:/opt/contrail/server_manager/ansible/playbooks/contrail_4_0_2_61_new/playbooks# ls -larth /etc/contrail_smgr/puppet/ssl/lbb7s18-privkey.pem
ls: cannot access '/etc/contrail_smgr/puppet/ssl/lbb7s18-privkey.pem': No such file or directory
root@smb7s16:/opt/contrail/server_manager/ansible/playbooks/contrail_4_0_2_61_new/playbooks# ls -larth /etc/contrail_smgr/puppet/ssl/lb-b7s18-privkey.pem
-rw-r--r-- 1 root root 1.7K Oct 5 02:50 /etc/contrail_smgr/puppet/ssl/lb-b7s18-privkey.pem
root@smb7s16:/opt/contrail/server_manager/ansible/playbooks/contrail_4_0_2_61_new/playbooks#
*******************************************************************************
*******************************************************************************
"2017-10-05 07:27:25,427-INFO-sm_ansible_callback.py:43-append(): TASK [node : Copy cert files onto container]"
"2017-10-05 07:27:25,698-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.62]"
"2017-10-05 07:27:25,792-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.66]"
"2017-10-05 07:27:25,938-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.70]"
"2017-10-05 07:27:26,029-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.63]"
"2017-10-05 07:27:26,145-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.71]"
"2017-10-05 07:27:26,223-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.64]"
"2017-10-05 07:27:26,335-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.67]"
"2017-10-05 07:27:26,450-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.72]"
"2017-10-05 07:27:26,554-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.68]"
"2017-10-05 07:27:26,675-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.12]"
"2017-10-05 07:27:26,701-INFO-sm_ansible_callback.py:43-append(): fatal: [10.84.29.73]: FAILED! => (item - None) {"changed": false, "failed": true, "msg": "One or more items failed"}"
"2017-10-05 07:27:26,718-INFO-sm_ansible_callback.py:43-append(): fatal: [10.84.29.73] (item={u'dest': u'/etc/contrailctl/ssl/server-privkey.pem', u'src': u'/etc/contrail_smgr/puppet/ssl/lbb7s18-privkey.pem'}) => {"failed": true, "item": {"dest": "/etc/contrailctl/ssl/server-privkey.pem", "src": "/etc/contrail_smgr/puppet/ssl/lbb7s18-privkey.pem"}, "msg": "Unable to find '/etc/contrail_smgr/puppet/ssl/lbb7s18-privkey.pem' in expected paths."}"
"2017-10-05 07:27:26,722-INFO-sm_ansible_callback.py:43-append(): fatal: [10.84.29.73] (item={u'dest': u'/etc/contrailctl/ssl/server.pem', u'src': u'/etc/contrail_smgr/puppet/ssl/lbb7s18.pem'}) => {"failed": true, "item": {"dest": "/etc/contrailctl/ssl/server.pem", "src": "/etc/contrail_smgr/puppet/ssl/lbb7s18.pem"}, "msg": "Unable to find '/etc/contrail_smgr/puppet/ssl/lbb7s18.pem' in expected paths."}"
"2017-10-05 07:27:26,762-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.13]"
"2017-10-05 07:27:26,808-INFO-sm_ansible_callback.py:43-append(): skipping: [10.84.29.14]"
Work around:-
copy the cert and key files with expected name without the "-" in the same path /etc/contrail_ smgr/puppet/ ssl/