Skip to content

Commit

Permalink
feat(kernel): advice re kernel upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Sep 11, 2019
1 parent 0fca2fa commit 77d3625
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions iscsi/initiator/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,14 @@ iscsi_initiator_service:
{%- if data.man5.kmodule %}
- unless: {{ iscsi.kernel.modquery }} {{ data.man5.kmodule }}
{%- endif %}
iscsi_initiator_service_running_failure_explanation:
test.show_notification:
- text: |
In certain circumstances the iscsi initiator service will not start.
One reason is your kernel version was upgraded and reboot is needed.
If that's the case then run command:
'systemctl enable {{ data.man5.svcname }}' && reboot
- onfail:
- service: iscsi_initiator_service
- unless: {{ grains.os_family in ('MacOS', 'Windows') }} #maybe not needed but no harm
11 changes: 11 additions & 0 deletions iscsi/target/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,14 @@ iscsi_target_service_running:
{%- if data.man5.kmodule %}
- unless: {{ iscsi.kernel.modquery }} {{ data.man5.kmodule }}
{%- endif %}
iscsi_target_service_running_failure_explanation:
test.show_notification:
- text: |
In certain circumstances the iscsi target service will not start.
One reason is your kernel version was upgraded but host not rebooted.
If that's the case then run command:
'systemctl enable {{ data.man5.svcname }}' && reboot
- onfail:
- service: iscsi_target_service_running
- unless: {{ grains.os_family in ('MacOS', 'Windows') }} #maybe not needed but no harm

0 comments on commit 77d3625

Please sign in to comment.