[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread Alberto Mardegan
*** This bug is a duplicate of bug 1966203 *** https://bugs.launchpad.net/bugs/1966203 Thanks Nick, indeed! I'm closing this since 1966203 was reported first. ** This bug has been marked a duplicate of bug 1966203 Syslog shows "systemd-udevd[2837]: nvme0n1: Process ... failed with exit

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread Alberto Mardegan
** Changed in: snapd (Ubuntu) Assignee: (unassigned) => Alberto Mardegan (mardy) -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title: systemd-udevd call unshare process

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread Nick Rosbrook
I think this a duplicate of, or closely related to bug 1966203. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title: systemd-udevd call unshare process when attaching nvme

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread vincent chen
Alberto, there don't see the error anymore after applying latest change. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title: systemd-udevd call unshare process when

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread Alberto Mardegan
Hi again Vincent :-) Please ignore the part about adding more attributes to the SystemCallFilter list; I don't think it's a road we want to follow. What would be more important for me to know, is whether things work if you change the RUN line to just RUN+="/usr/bin/snap auto-import

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread Alberto Mardegan
Thanks Vincent. I think I got some hints: I downloaded the package from Jammy, I unpacked it and then ran a diff on the systemd unit file for the udev service (since in the documentation of udev[1] it's written that programs are executed in a sandbox) from the version in Focal: == ---

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread korese
Alberto, I have exactly the same bug as Vincent on multiple Ubuntu 22.04 machines, so if there is anything I can provide you with to fix this issue let me know! -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-23 Thread vincent chen
Alberto, here it is # cat /tmp/set.log ACTION=add BASH=/bin/bash BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=()

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-20 Thread Alberto Mardegan
Mmm... I'm running out of ideas! Mayve it's something with the environment? Vincent, can you try changing the rule to RUN+="/bin/bash -c 'set > /tmp/set.log'" and attach set.log here? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-18 Thread vincent chen
root@e2e-l4-094051:~# cat /etc/os-release PRETTY_NAME="Ubuntu 22.04 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04 (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/; SUPPORT_URL="https://help.ubuntu.com/;

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-16 Thread Alberto Mardegan
Vincent, maybe the udev rules are running under a user lacking some privileges? Can you please try changing the rule to RUN+="/bin/bash -c 'id > /tmp/id.log'" and then paste here the output of id.log? (hopefully I didn't mess up the quoting in the command :-) ) -- You received this bug

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-16 Thread Maciej Borzecki
Can you attach the contents of /etc/os-release? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title: systemd-udevd call unshare process when attaching nvme volume Status in

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-16 Thread vincent chen
Maciej, please check the result. manually run the command has no problem. the exist code is 0. root@e2e-l4-094051:~# which unshare /usr/bin/unshare root@e2e-l4-094051:~# /usr/bin/unshare -m /bin/echo hello hello root@e2e-l4-094051:~# echo $? 0 -- You received this bug notification because

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-13 Thread Maciej Borzecki
For the record, does /usr/bin/unshare exist in your system? Can you run the command that Alberto provided in the console? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title:

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-13 Thread vincent chen
Alberto, there still have error. yes. the log report exist status 1. May 13 12:45:43 e2e-l4-094051 kernel: nvme nvme1: rescanning namespaces. May 13 12:45:44 e2e-l4-094051 kernel: nvme nvme4: rescanning namespaces. May 13 12:46:23 e2e-l4-094051 kernel: nvme nvme3: rescanning namespaces. May 13

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-13 Thread Alberto Mardegan
Hi Vincent, if I understand it correctly, this command scans the inserted media for snapd assertions and imports them. It's still not clear to me what's happening: even if you are running on a classic system, the "auto-import is disabled on classic" is just a notification and not an error: the

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-12 Thread vincent chen
Hi, Alberto, from the output below, auto-import is disabled. what this function is used for? # /usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/nvme0n10 auto-import is disabled on classic ** Changed in: snapd (Ubuntu) Status: Incomplete => In Progress -- You received this

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-11 Thread Alberto Mardegan
Hi Vincent, thanks for reporting this. There should be some message printed by the "snap auto-import" command when it fails. Can you please try to manually run (as root) the command /usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/nvme0n239 and paste here the output? ** Changed

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-11 Thread vincent chen
@snapd team, could someone take look at this issue? -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title: systemd-udevd call unshare process when attaching nvme volume

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-08 Thread vincent chen
Mauricio, you are right, there is no function issue. just concern about the annoying snap log entries -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title: systemd-udevd call

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-08 Thread Sujith Pandel
** Also affects: dellserver Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1971955 Title: systemd-udevd call unshare process when attaching

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-08 Thread Mauricio Faria de Oliveira
Reassigning to package snapd per ownership of rules file. $ grep -r 'snap auto-import' /lib/udev/rules.d/ /lib/udev/rules.d/66-snapd-autoimport.rules:3:RUN+="/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/%k" $ dpkg -S /lib/udev/rules.d/66-snapd-autoimport.rules snapd:

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-08 Thread Mauricio Faria de Oliveira
Hi Vincent, Thanks for the bug report. > when attaching new volume to host. systemd-udevd trigger > unshare process to run snap import command on new volumes and it fail. > volume finally map to host. it doesn't affect volume usage. > but some udev rule need to check for this strange behavior.

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-06 Thread vincent chen
apport information ** Tags added: apport-collected jammy uec-images ** Description changed: env: PRETTY_NAME="Ubuntu 22.04 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04 (Jammy Jellyfish)" VERSION_CODENAME=jammy # lsb_release -rd Description:Ubuntu 22.04 LTS

[Kernel-packages] [Bug 1971955] Re: systemd-udevd call unshare process when attaching nvme volume

2022-05-06 Thread vincent chen
** Attachment added: "sosreport-e2e-l4-094051-1971955-2022-05-06-kfcxcun.tar.xz" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1971955/+attachment/5587275/+files/sosreport-e2e-l4-094051-1971955-2022-05-06-kfcxcun.tar.xz -- You received this bug notification because you are a member of