[Resolved] Failure on disk scheduler - set noop for every raw device

When running the kernel_tune task, it consistently fails on the 'set disk scheduler to noop for every raw device' component. I have to disable that in the disk_scheduler.yml to get it working.

Error:

TASK [kernel_tune : set disk scheduler to noop for every raw device] ***************************************************************************************
failed: [x.x.x.x] (item=sdb) => {"ansible_loop_var": "item", "changed": true, "item": "sdb", "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to x.x.x.x closed.\r\n", "stderr_lines": ["Shared connection to x.x.x.x closed."], "stdout": "\r\nsh: echo: I/O error\r\n", "stdout_lines": ["", "sh: echo: I/O error"]}
failed: [x.x.x.x] (item=sdc) => {"ansible_loop_var": "item", "changed": true, "item": "sdc", "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to x.x.x.x closed.\r\n", "stderr_lines": ["Shared connection to x.x.x.x closed."], "stdout": "\r\nsh: echo: I/O error\r\n", "stdout_lines": ["", "sh: echo: I/O error"]}
failed: [x.x.x.x] (item=sda) => {"ansible_loop_var": "item", "changed": true, "item": "sda", "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to x.x.x.x closed.\r\n", "stderr_lines": ["Shared connection to x.x.x.x closed."], "stdout": "\r\nsh: echo: I/O error\r\n", "stdout_lines": ["", "sh: echo: I/O error"]}

Updated disk_scheduler.yml:

#- name: set disk scheduler to noop for every raw device
#  raw: echo noop > /sys/block/{{ item }}/queue/scheduler
#  with_items: "{{ raw_disk_list }}"

This is on an Azure Ubuntu 18.04 VM

Hi @erobinson
This is currently a known issue that we are working on a fix for, and which should be merged in the next week or so. Your current workaround is correct. I can ping back here when we have updates.

Sorry for any inconvenience!

1 Like

No worries, thanks for the quick feedback @Farid_Rener

Hi @erobinson
We've merged a change that should fix this going forward: Remove obsolete kernel_tune ansible role by skodde · Pull Request #4863 · dimagi/commcare-cloud · GitHub
If you pull the latest version of commcare-cloud it should be working now.

1 Like

Thank you Farid! I will test and revert.
Ed