[FOLIO-3162] Updated Elasticsearch role breaks Vagrant build Created: 13/May/21  Updated: 19/May/21  Resolved: 19/May/21

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Wayne Schneider Assignee: Wayne Schneider
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to FOLIO-3161 Reference env elasticsearch container... Closed
Sprint: DevOps Sprint 114
Development Team: FOLIO DevOps

 Description   

After the updates to folio-ansible done as part of FOLIO-3161 Closed , the Vagrant box builds that use Elasticsearch are failing with the error:

snapshot: fatal: [default]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1620890530.67-7155-102905556749456/AnsiballZ_sysctl.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1620890530.67-7155-102905556749456/AnsiballZ_sysctl.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1620890530.67-7155-102905556749456/AnsiballZ_sysctl.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.system.sysctl', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib/python3.8/runpy.py\", line 207, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.8/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib/python3.8/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_sysctl_payload_jw7t6qkj/ansible_sysctl_payload.zip/ansible/modules/system/sysctl.py\", line 420, in <module>\n  File \"/tmp/ansible_sysctl_payload_jw7t6qkj/ansible_sysctl_payload.zip/ansible/modules/system/sysctl.py\", line 414, in main\n  File \"/tmp/ansible_sysctl_payload_jw7t6qkj/ansible_sysctl_payload.zip/ansible/modules/system/sysctl.py\", line 133, in __init__\n  File \"/tmp/ansible_sysctl_payload_jw7t6qkj/ansible_sysctl_payload.zip/ansible/modules/system/sysctl.py\", line 191, in process\n  File \"/tmp/ansible_sysctl_payload_jw7t6qkj/ansible_sysctl_payload.zip/ansible/modules/system/sysctl.py\", line 369, in write_sysctl\n  File \"/usr/lib/python3.8/tempfile.py\", line 471, in mkstemp\n    return _mkstemp_inner(dir, prefix, suffix, flags, output_type)\n  File \"/usr/lib/python3.8/tempfile.py\", line 389, in _mkstemp_inner\n    fd = _os.open(file, flags, 0o600)\nPermissionError: [Errno 13] Permission denied: '/etc/.ansible_m_sysctl_6stjfrr8.conf'\nShared connection to 127.0.0.1 closed.\r\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}


 Comments   
Comment by Wayne Schneider [ 19/May/21 ]

Finally a clean build verifies this fix.

Generated at Thu Feb 08 23:26:04 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.