[Bug 855688] New: possible systemd bug: postfix & cifs dependency confiict
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c0 Summary: possible systemd bug: postfix & cifs dependency confiict Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: i586 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: clkennedy@netpipe.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0 I'm experiencing what I suspect is a systemd bug. I have two machines A & B in my test environment -- both running suse 12.3, Computer B, once in production will be a Windows box. On B I have an smb share called testshare that mounts on A quite happily. Life is good till B is shut off. If I reboot A while B is off line, obviously the share won't mount but, in addition, postfix won't start. Note: the hostname of computer A is util-x Here is the fstab of A: /dev/sda1 swap swap defaults 0 0 /dev/md0 / ext3 acl,user_xattr 1 1 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 //b/testshare /media/test cifs guest,uid=1000,gid=100 0 0 As I said above A is happy when B is alive. When B is down and I reboot A, postfix doesn't start: systemctl status postfix.service postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled) Active: inactive (dead) CGroup: name=systemd:/system/postfix.service Dec 16 05:44:33 util-x.pdc systemd[1]: Dependency failed for Postfix Mail Transport Agent. If I try to start postfix from the command line: systemctl start postfix.service A dependency job for postfix.service failed. See 'journalctl -n' for details. Viewing the journal: postfix start attempt at boot time Dec 16 05:44:33 util-x.pdc systemd[1]: Mounting /media/test... Dec 16 05:44:33 util-x.pdc mount[2196]: Unable to find suitable address. Dec 16 05:44:33 util-x.pdc kernel: CIFS VFS: Error connecting to socket. Aborting operation Dec 16 05:44:33 util-x.pdc systemd[1]: media-test.mount mount process exited, code=exited status=32 Dec 16 05:44:33 util-x.pdc kernel: CIFS VFS: cifs_mount failed w/return code = -111 Dec 16 05:44:33 util-x.pdc systemd[1]: Failed to mount /media/test. Dec 16 05:44:33 util-x.pdc systemd[1]: Dependency failed for Remote File Systems. Dec 16 05:44:33 util-x.pdc systemd[1]: Dependency failed for Postfix Mail Transport Agent. Dec 16 05:44:33 util-x.pdc systemd[1]: Job postfix.service/start failed with result 'dependency'. Dec 16 05:44:33 util-x.pdc systemd[1]: Job remote-fs.target/start failed with result 'dependency'. Dec 16 05:44:33 util-x.pdc systemd[1]: Unit media-test.mount entered failed state postfix start attempt from the command line Dec 16 05:44:55 util-x.pdc systemd[1]: Mounting /media/test... Dec 16 05:44:55 util-x.pdc mount[2204]: Unable to find suitable address. Dec 16 05:44:55 util-x.pdc systemd[1]: media-test.mount mount process exited, code=exited status=32 Dec 16 05:44:55 util-x.pdc kernel: CIFS VFS: Error connecting to socket. Aborting operation Dec 16 05:44:55 util-x.pdc kernel: CIFS VFS: cifs_mount failed w/return code = -111 Dec 16 05:44:55 util-x.pdc systemd[1]: Failed to mount /media/test. Dec 16 05:44:55 util-x.pdc systemd[1]: Dependency failed for Remote File Systems. Dec 16 05:44:55 util-x.pdc systemd[1]: Dependency failed for Postfix Mail Transport Agent. Dec 16 05:44:55 util-x.pdc systemd[1]: Job postfix.service/start failed with result 'dependency'. Dec 16 05:44:55 util-x.pdc systemd[1]: Job remote-fs.target/start failed with result 'dependency'. Dec 16 05:44:55 util-x.pdc systemd[1]: Unit media-test.mount entered failed state Reproducible: Always Steps to Reproduce: 1. Disconnect Server B above. 2. Reboot A (util-x) above 3. postfix fails to start Actual Results: see writeup above Expected Results: see writeup above This seems as though it's possibly related to bug report 838750 from last September. I have provided more details. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |systemd-maintainers@suse.de |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |lmuelle@suse.com, | |systemd-maintainers@suse.de | |, varkoly@suse.com, | |werner@suse.com InfoProvider| |clkennedy@netpipe.com --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2013-12-17 14:54:15 UTC --- Hmmm ... systemd is *reporting* wrong dependencies but not the cause (IMHO) therefore is very likly *not* a systemd bug! If the smb share is required for the final file system and this fails then the behaviour of systemd is correct. Please report the content your /etc/fstab Also please report the output of systemctl list-dependencies --before postfix.service and systemctl list-dependencies --after postfix.service -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c2 Clifford Kennedy <clkennedy@netpipe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|clkennedy@netpipe.com | --- Comment #2 from Clifford Kennedy <clkennedy@netpipe.com> 2013-12-18 00:25:06 UTC --- fstab is as it appears above: /dev/sda1 swap swap defaults 0 0 /dev/md0 / ext3 acl,user_xattr 1 1 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 //b/testshare /media/test cifs guest,uid=1000,gid=100 0 0 Interestingly, my version of systemctl doesn't seem to know about list-dependencies. systemctl list-dependencies --before postfix.service systemctl: unrecognized option '--before' systemctl list-dependencies --after postfix.service systemctl: unrecognized option '--after' systemctl list-dependencies postfix.service Unknown operation 'list-dependencies'. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c3 --- Comment #3 from Clifford Kennedy <clkennedy@netpipe.com> 2013-12-18 05:58:47 UTC --- OK. I did some hacking and removed remote-fs.target from the Requires and After lines in posfix.service. It now seems to work as I would expect -- postfix starts regardless of remote mount errors. I really don't know much about systemd yet so please advise me of any ill effects that my change might create. Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2013-12-18 07:45:09 UTC --- (In reply to comment #2) Hmmm ... strange linux /suse/werner> systemctl list-dependencies --before postfix.service postfix.service ├─cron.service ├─multi-user.target │ ├─systemd-update-utmp-runlevel.service │ └─graphical.target │ ├─systemd-readahead-done.service │ ├─systemd-readahead-done.timer │ └─systemd-update-utmp-runlevel.service └─shutdown.target linux /suse/werner> systemctl list-dependencies --after postfix.service postfix.service ├─amavis.service ├─cyrus.service ├─ldap.service ├─mysql.service ├─openslp.service ├─system.slice ├─systemd-journald.socket ├─var-run.mount ├─ypbind.service ├─basic.target │ ├─systemd-ask-password-plymouth.path │ ├─paths.target │ │ ├─cups.path │ │ └─systemd-ask-password-console.path │ ├─slices.target │ │ ├─-.slice │ │ ├─system.slice │ │ └─user.slice │ ├─sockets.target │ │ ├─avahi-daemon.socket │ │ ├─cups.socket │ │ ├─dbus.socket │ │ ├─pcscd.socket │ │ ├─rpcbind.socket │ │ ├─syslog.socket │ │ ├─systemd-initctl.socket │ │ ├─systemd-journald.socket │ │ ├─systemd-shutdownd.socket │ │ ├─systemd-udevd-control.socket │ │ └─systemd-udevd-kernel.socket │ ├─sysinit.target │ │ ├─apparmor.service │ │ ├─auditd.service │ │ ├─cycle.service │ │ ├─dev-hugepages.mount │ │ ├─dev-mqueue.mount │ │ ├─emergency.service │ │ ├─kmod-static-nodes.service │ │ ├─plymouth-read-write.service │ │ ├─proc-sys-fs-binfmt_misc.automount │ │ ├─sys-fs-fuse-connections.mount │ │ ├─sys-kernel-config.mount │ │ ├─sys-kernel-debug.mount │ │ ├─systemd-binfmt.service │ │ ├─systemd-journald.service │ │ ├─systemd-modules-load.service │ │ ├─systemd-random-seed.service │ │ ├─systemd-readahead-collect.service │ │ ├─systemd-readahead-replay.service │ │ ├─systemd-sysctl.service │ │ ├─systemd-tmpfiles-clean.service │ │ ├─systemd-tmpfiles-setup-dev.service │ │ ├─systemd-tmpfiles-setup.service │ │ ├─systemd-udev-settle.service │ │ ├─systemd-udev-trigger.service │ │ ├─systemd-udevd.service │ │ ├─systemd-update-utmp.service │ │ ├─systemd-vconsole-setup.service │ │ ├─cryptsetup.target │ │ │ └─lvm2-activation-early.service │ │ ├─emergency.target │ │ │ └─emergency.service │ │ ├─local-fs.target │ │ │ ├─-.mount │ │ │ ├─abuild-oscbuild-packagecache.mount │ │ │ ├─abuild.mount │ │ │ ├─lvm2-activation-early.service │ │ │ ├─lvm2-activation.service │ │ │ ├─systemd-fsck-root.service │ │ │ ├─systemd-remount-fs.service │ │ │ ├─usr-src-werner.mount │ │ │ ├─var-lib-nfs-rpc_pipefs.mount │ │ │ ├─var-lock.mount │ │ │ ├─var-run.mount │ │ │ └─local-fs-pre.target │ │ │ ├─dmraid.service │ │ │ ├─md.service │ │ │ ├─systemd-remount-fs.service │ │ │ └─systemd-tmpfiles-setup-dev.service │ │ └─swap.target │ │ ├─dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VBf2a6c046\x2d4d1601b6\x2dpart... │ │ ├─dev-disk-by\x2did-scsi\x2d1ATA_VBOX_HARDDISK_VBf2a6c046\x2d4d1601b6\x... │ │ ├─dev-disk-by\x2did-scsi\x2dSATA_VBOX_HARDDISK_VBf2a6c046\x2d4d1601b6\x... │ │ ├─dev-disk-by\x2dpath-pci\x2d0000:00:0d.0\x2dscsi\x2d0:0:0:0\x2dpart9.swap │ │ ├─dev-disk-by\x2duuid-c3368cd1\x2dfa46\x2d4a57\x2da447\x2d9e0bef7d649e.... │ │ └─dev-sda9.swap │ └─timers.target │ └─systemd-tmpfiles-clean.timer ├─network.target │ ├─network.service │ ├─NetworkManager.service │ └─wpa_supplicant.service ├─nss-lookup.target │ └─network.target │ ├─network.service │ ├─NetworkManager.service │ └─wpa_supplicant.service ├─remote-fs.target │ ├─mounts-machcd2.mount │ ├─mounts-work.mount │ ├─suse-werner.mount │ └─remote-fs-pre.target │ └─nfs.service └─time-sync.target └─ntp.service -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c5 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|systemd-maintainers@suse.de |varkoly@suse.com Severity|Major |Minor --- Comment #5 from Dr. Werner Fink <werner@suse.com> 2013-12-18 08:01:59 UTC --- (In reply to comment #3) IMHO your setup is somewhat broken anyway IMHO you should not try to automatically mount the cifs share if it fails that often but use the noauto mount option ... nevetheless the remote-fs.target is a old requirement for NFS /usr share which can not be fulfilled anymore these days as the libraries and tools for mounting /usr are located below /usr. I'll will change remote-fs.target to local-fs.target in sendmail as well and Peter as our postfix maintainer should do this as well for postfix.service ;) Nevertheless I suggest insistently to add the noauto option in /etc/fstab -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c6 --- Comment #6 from Clifford Kennedy <clkennedy@netpipe.com> 2013-12-18 14:36:33 UTC --- I don't expect the share to fail often but it is a scenario I need to plan for. This computer is destined to be an active gateway transferring data and images between several machines -- a mix of Server2008 & Linux boxes -- and will be replacing an existing machine running suse 11.1 that has been in service for several years. It is important that the MTA be active under all foreseeable conditions since this is a crucial component of its error reporting -- without the MTA it's mute. I reverted postfix.service back to its original state but, rather than add noauto to fstab, I moved the remote mounts to /etc/fstab.remote and added "mount -a --fstab /etc/fstab.remote" to crontab to run at boot time. This accomplishes the same thing but serves my purposes better. Questions: 1. This is a fresh, or nearly fresh, suse 12.3 install with all current updates and patches applied, why then is the list-dependencies option missing from systemctl? 2. If I were to remove remote-fs.target from postfix.service permanently, do you foresee any unintended consequences? 3. Should I change remote-fs.target to local.fs-target in postfix.service? Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c7 --- Comment #7 from Dr. Werner Fink <werner@suse.com> 2013-12-18 14:40:33 UTC --- (In reply to comment #6) to 1. ... this is new in sysytemd 208 and you see this with openSUSE 13.1 to 2. ... in your setup I see no unintended consequences to 3. ... Indeed yes -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c8 --- Comment #8 from Clifford Kennedy <clkennedy@netpipe.com> 2013-12-18 16:31:53 UTC --- I'll take a look at 13.1 at my first opportunity. Thank you for your help, Cliff -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=855688 https://bugzilla.novell.com/show_bug.cgi?id=855688#c9 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #9 from Peter Varkoly <varkoly@suse.com> 2014-06-10 13:46:45 UTC --- Fixed in Factory and SLE12 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com