salt icon indicating copy to clipboard operation
salt copied to clipboard

Forced remount because options changed when no options changed (option=nointr) (2014.7)

Open RobertFach opened this issue 11 years ago • 7 comments

Hi, I have just tested 2014.7.1 (Helium) on Ubuntu and discovered some more issues with forced remount... patch follows...

The following issues I have discovered so far:

  • If the mount proto (e.g., udp, tcp) is specified without the proto=tcp or proto=udo option, that it is not detected correctly. Hence, that option has to be really specified with proto=XX
  • Option nointr is not part of mount_invisible_options...

RobertFach avatar Feb 19 '15 16:02 RobertFach

This is the fix for option nointr https://github.com/saltstack/salt/pull/20831

RobertFach avatar Feb 19 '15 16:02 RobertFach

Thanks for the report and for the fix @RobertFach! That's awesome! Was your fix only for the nointr section and more work needs to be done here, or did your fix clear everything up?

rallytime avatar Feb 20 '15 22:02 rallytime

My fix was only for the ''nointr'' issue. I might have a look at the mount and fstab documention and try to find out what other options might be allowed... However, I think that this might be the wrong approach for that problem, because there are hundreds of options, most are passed through to the underlying filesystem code. To catch everything correctly, a good testing framework would be necessary.

For the first issue, I was trying to find out if this is according to the documention of mount/nfs options or not. For that case, it looks like one should always specify with proto=[tcp|udp|xx].

As far as I understood, @jrgp will provide a patch for the loopback issue?!

Let me know what you think about the filesystem code/option handling... I might also have a closer look and try to find more issues... @rallytime

Cheers,

RobertFach avatar Feb 20 '15 22:02 RobertFach

@RobertFach I'm not too familiar with the filesystem code, but we'd definitely be happy to look over any fixes you submit. Also, I believe the pull request you're referring to from @jrgp is #20856.

rallytime avatar Feb 20 '15 23:02 rallytime

Hi, for 2015.5.3 it's still open for NFS mounts (hope this is the right issue to append the problem ^^)

I checked /usr/lib/python2.7/dist-packages/salt/states/mount.py as found in https://github.com/saltstack/salt/issues/22586 => patch https://github.com/saltstack/salt/commit/0682b1049e7e94b03482686fed5cd63370e5356f

but there are options missing for NFS mounts:

mount options without parameter:

  • hard

mount options with parameter (and default value as I know):

  • vers=3
  • sec=sys
  • local_lock=none
  • rsize=1048576 (depends on Kernel; here Debian Jessie)
  • wsize=1048576 (depends on Kernel; here Debian Jessie)
  • namlen=255
  • proto=udp
  • timeo=600
  • retrans=2

mount options set by / depending on mount address:

  • mountvers=3
  • addr=10.5.1.253
  • mountaddr=10.5.1.253
  • mountport=55125
  • mountproto=udp

Reiner030 avatar Oct 13 '15 12:10 Reiner030

Thanks for the update @Reiner030.

@garethgreenaway You might be interested in this one.

rallytime avatar Oct 13 '15 15:10 rallytime

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Jan 20 '18 16:01 stale[bot]