Skip to content

udevadm: add --protected-tag=TAG option to 'info' command - #12149

Closed
yuwata wants to merge 1 commit into
systemd:masterfrom
yuwata:udevadm-protect-tag-for-11997
Closed

yuwata wants to merge 1 commit into
systemd:masterfrom
yuwata:udevadm-protect-tag-for-11997

Conversation

@yuwata

@yuwata yuwata commented Mar 29, 2019

Copy link
Copy Markdown
Member

When the option is specified with --cleanup-db option, then the udev database for the tagged devices are not removed.

Closes #11997.

@keszybz

keszybz commented Apr 2, 2019

Copy link
Copy Markdown
Member

This solution doesn't seem appealing to me. The main problem I see is that setting the systemd tag now suddenly gets a second meaning (that the device is not flushed out). This makes the whole thing more complicated, and ties together two unrelated concepts. If we are to redefine the semantics, I prefer to simplify things, as in #12148.

@keszybz keszybz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes look nice, but unfortunately this fails in exactly the same way as #12148. The device in question has TAGS=:systemd:... I'm afraid this one is not a option either.

Comment thread man/udevadm.xml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should say "This is only allowed when ..." because an error is thrown in other cases.

@keszybz

keszybz commented Apr 2, 2019

Copy link
Copy Markdown
Member

Please submit commit 2/4 separately.

@keszybz keszybz added the ci-fails/needs-rework 🔥 Please rework this, the CI noticed an issue with the PR label Apr 2, 2019
@yuwata
yuwata force-pushed the udevadm-protect-tag-for-11997 branch from 543079f to 0164289 Compare April 2, 2019 16:41
@yuwata

yuwata commented Apr 2, 2019

Copy link
Copy Markdown
Member Author

@keszybz Thank you for testing the PR. I've updated this. PTAL.

@keszybz keszybz removed the ci-fails/needs-rework 🔥 Please rework this, the CI noticed an issue with the PR label Apr 3, 2019
@keszybz

keszybz commented Apr 3, 2019

Copy link
Copy Markdown
Member

Hmm, the tests fail in TEST-30-ONCLOCKCHANGE, but I don't see the actual failure.
and it fails with a timeout:

Failed to set time zone: Failed to activate service 'org.freedesktop.timedate1': timed out (service_start_timeout=25000ms)

I guess that's just resource starvation during boot.

[  make: *** [run] Error 1
objdump: '/tmp/autopkgtest.DckeRV/build.L8b/systemd/test/TEST-31-DEVICE-ENUMERATION/systemd-journald': No such file

I can't figure out where this comes from. We call objdump in a few places, but with different paths.

centos-ci fails in networkd-test.py, bond-99 is missing.

@keszybz

keszybz commented Apr 3, 2019

Copy link
Copy Markdown
Member

I'm on the fence whether we should merge the --protected-tag= switch. Do we have an actual use case for this?

When the option is specified with --cleanup-db option, then
the udev database for the tagged devices are not removed.
@yuwata
yuwata force-pushed the udevadm-protect-tag-for-11997 branch from 0164289 to 18fe0dc Compare April 3, 2019 15:22
@yuwata yuwata changed the title udevadm: add --protected-tag=TAG option to 'info' command and use the option in initrd-udevadm-cleanup-db.service udevadm: add --protected-tag=TAG option to 'info' command Apr 3, 2019
@yuwata

yuwata commented Apr 3, 2019

Copy link
Copy Markdown
Member Author

OK. I think no one use this option, at least now. Let's close this.

@yuwata yuwata closed this Apr 3, 2019
@yuwata
yuwata deleted the udevadm-protect-tag-for-11997 branch April 3, 2019 15:35
@keszybz

keszybz commented Apr 3, 2019

Copy link
Copy Markdown
Member

Yeah, I think that's reasonable. If we want, we can always extract the patch from this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants