public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] bringup: fix the soft iWARP bringup
@ 2024-01-26 16:56 Jeff Layton
  2024-01-26 17:20 ` Chuck Lever III
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2024-01-26 16:56 UTC (permalink / raw)
  To: kdevops; +Cc: chuck.lever

It seemed like this worked for me at some point, but today it was
failing to start for me. In any case, removing the ACTION= filter seemed
to fix it for me.

Also, after reloading the udev rules, trigger them to be run so the
siw interface is immediately started.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 playbooks/roles/siw/tasks/main.yml         | 2 +-
 playbooks/roles/siw/templates/udev-rule.j2 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/playbooks/roles/siw/tasks/main.yml b/playbooks/roles/siw/tasks/main.yml
index f6d3f56136ed..be5aeb70be2c 100644
--- a/playbooks/roles/siw/tasks/main.yml
+++ b/playbooks/roles/siw/tasks/main.yml
@@ -22,4 +22,4 @@
 - name: Force the target host to reload its udev ruleset
   become: yes
   become_method: sudo
-  ansible.builtin.command: "udevadm control --reload"
+  ansible.builtin.shell: "udevadm control --reload && udevadm trigger"
diff --git a/playbooks/roles/siw/templates/udev-rule.j2 b/playbooks/roles/siw/templates/udev-rule.j2
index 6fcaea6d1684..54f7beb6a764 100644
--- a/playbooks/roles/siw/templates/udev-rule.j2
+++ b/playbooks/roles/siw/templates/udev-rule.j2
@@ -1,2 +1,2 @@
-ACTION=="add", SUBSYSTEM=="net", KERNEL=="{{ ansible_default_ipv4.interface }}", \
+SUBSYSTEM=="net", KERNEL=="{{ ansible_default_ipv4.interface }}", \
    PROGRAM="/usr/sbin/rdma link add siw0 type siw netdev {{ ansible_default_ipv4.interface }}"
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-26 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 16:56 [PATCH] bringup: fix the soft iWARP bringup Jeff Layton
2024-01-26 17:20 ` Chuck Lever III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox