-
Type: Task
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Ansible, Build System, platform-install
-
Labels:None
-
Story Points:2
-
Sprint:QP Sprint #4
-
Epic Link:
Ansible fails with a message like this when doing a build:
TASK [copy-cord : Copy (sync) the cord directory to head node] ******************************************************************************** Friday 27 April 2018 00:10:43 -0600 (0:00:02.321) 0:00:02.365 ********** changed: [head1] TASK [copy-cord : Set ownership on CORD dir on head node] ************************************************************************************* Friday 27 April 2018 00:10:44 -0600 (0:00:01.051) 0:00:03.416 ********** fatal: [head1]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.121.204 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_GAyFzL/ansible_module_file.py\", line 473, in <module>\r\n main()\r\n File \"/tmp/ansible_GAyFzL/ansible_module_file.py\", line 350, in main\r\n changed |= recursive_set_attributes(module, to_bytes(file_args['path'], errors='surrogate_or_strict'), follow, file_args)\r\n File \"/tmp/ansible_GAyFzL/ansible_module_file.py\", line 172, in recursive_set_attributes\r\n changed |= module.set_fs_attributes_if_different(tmp_file_args, changed, expand=False)\r\n File \"/tmp/ansible_GAyFzL/ansible_modlib.zip/ansible/module_utils/basic.py\", line 1507, in set_fs_attributes_if_different\r\n File \"/tmp/ansible_GAyFzL/ansible_modlib.zip/ansible/module_utils/basic.py\", line 1164, in set_owner_if_different\r\n File \"/tmp/ansible_GAyFzL/ansible_modlib.zip/ansible/module_utils/basic.py\", line 1059, in user_and_group\r\nOSError: [Errno 2] No such file or directory: '/opt/cord/build/platform-install/.git/../../../.repo/projects/build/platform-install.git/shallow'\r\n", "msg": "MODULE FAILURE", "rc": 1} to retry, use: --limit @/users/zdw/cord/build/platform-install/copy-cord-playbook.retry
Issue is that Ansible changed a default value in the 2.5.2 patch:
https://github.com/ansible/ansible/issues/39456