On 11/05/2020 20:35, Thomas HUMMEL wrote:
Hello,

Just to inform about what I think may be a bug in xcatdsklspost:

https://github.com/xcat2/xcat-core/issues/6704

Hello,

actually a co-worker did a fine tracing of what exactly happened (taken aside the xcatinfo quoting issue) :

When xcatpostinit1.service is added a Before=remote-fs-pre.target dependency (which seems legit in order to setup the network in its final form before mounting remote file systems) a temporary systemd dependecies deadlock happens :

As syncfiles uses ssh, even for root, a session has to be put in the user sessions slice. But the root slice is ordered after systemd-user-sessions.service (see /usr/lib/systemd/system/user-.slice.d/10-defaults.conf) which itself is ordered After remote-fs.target (so After remote-fs-pre.target)

Hence a pam_systemd timeout for a failure to create session.

However, ssh seems to have some bypass after the timeout, hence the deadlock ultimately, after a timeout resolved.

So basically, this is not a bug, neither from xCAT nor systemd but maybe the lack of some kind of exception for the root user (but I guess this is by design).

Thanks

--
Thomas HUMMEL


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to