|
|
@ -1,8 +1,18 @@
|
|
|
|
# On NIC hogplug the delayed reconfiguration is triggered.
|
|
|
|
# NIC detach workaround for recontextualization on OpenNebula < 5.10.3
|
|
|
|
|
|
|
|
# https://github.com/OpenNebula/one/issues/4130
|
|
|
|
|
|
|
|
# https://github.com/OpenNebula/one/issues/4194
|
|
|
|
|
|
|
|
SUBSYSTEM=="net", ACTION=="remove", \
|
|
|
|
|
|
|
|
RUN+="/bin/sh -c 'test -f /var/run/one-context/context.sh.local && echo >> /var/run/one-context/context.sh.local; test -f /var/run/one-context/context.sh.network && echo >> /var/run/one-context/context.sh.network'"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# On NIC hotplug the delayed reconfiguration is triggered.
|
|
|
|
SUBSYSTEM=="net", ACTION=="add", \
|
|
|
|
SUBSYSTEM=="net", ACTION=="add", \
|
|
|
|
TAG+="systemd", ENV{SYSTEMD_WANTS}+="one-context-reconfigure-delayed.service", \
|
|
|
|
TAG+="systemd", ENV{SYSTEMD_WANTS}+="one-context-reconfigure-delayed.service", \
|
|
|
|
RUN+="/usr/bin/timeout 5 /usr/sbin/service one-context-reconfigure-delayed start"
|
|
|
|
RUN+="/usr/bin/timeout 5 /usr/sbin/service one-context-reconfigure-delayed start"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SUBSYSTEM=="net", ACTION=="remove", \
|
|
|
|
|
|
|
|
TAG+="systemd", ENV{SYSTEMD_WANTS}+="one-context-reconfigure-delayed.service", \
|
|
|
|
|
|
|
|
RUN+="/usr/bin/timeout 5 /usr/sbin/service one-context-reconfigure-delayed start"
|
|
|
|
|
|
|
|
|
|
|
|
# When CONTEXT CD-ROM is changed, it generates 2 events. This rule takes
|
|
|
|
# When CONTEXT CD-ROM is changed, it generates 2 events. This rule takes
|
|
|
|
# every second event and triggers systemd service one-context-reconfigure.
|
|
|
|
# every second event and triggers systemd service one-context-reconfigure.
|
|
|
|
# This service also stops any existing delayed reconfiguration.
|
|
|
|
# This service also stops any existing delayed reconfiguration.
|
|
|
|