udev rules don't want to trigger on my environment variables when the action is change, it works just fine if the action is remove.
udevadm reports it can see the environment DM_VG_NAME.
Can not understand why my rule wont trigger for me?
Steps to Reproduce:
# activate / deactivate
time lvchange -ay /dev/iscsi/test001
time lvchange -an /dev/iscsi/test001
udevadm monitor --udev --kernel --property --subsystem-match=block
KERNEL[13932.358037] add /devices/virtual/block/dm-4 (block)
KERNEL[13932.359154] change /devices/virtual/block/dm-4 (block)
UDEV [13932.360666] add /devices/virtual/block/dm-4 (block)
UDEV [13932.846841] change /devices/virtual/block/dm-4 (block)
DEVLINKS=/dev/disk/by-id/dm-name-iscsi-test001 /dev/disk/by-id/dm-uuid-LVM-LKBw3nDAu8T0cVY1Db4zkrDSXtLA5TVBNCWBdEddLuRGxF1d0e7uB2Xtd4nnsh1v /dev/iscsi/test001 /dev/mapper/iscsi-test001
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.
(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)
More information and reason for this action is here:
udev is part of systemd, don't use udev component in bugzilla.
I'd guess that this is a question of ordering: DM_VG_NAME is set somewhere in this file and your rule is before it is set? dm-lvm-iscsi.rules sorts before dm-lvm.rules.
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.