Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with mounting #6522

Closed
jcollie opened this issue Aug 5, 2013 · 3 comments · Fixed by #6526
Closed

Problems with mounting #6522

jcollie opened this issue Aug 5, 2013 · 3 comments · Fixed by #6526
Assignees
Labels
Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists
Milestone

Comments

@jcollie
Copy link
Contributor

jcollie commented Aug 5, 2013

I have a fairly simple sls to mount a NFS volume from a NetApp:

nfs-utils:
   pkg.installed

 /srv:
   mount.mounted:
    - device: 10.6.16.72:/vol/Web09
    - fstype: nfs
    - opts: vers=3
    - persist: True
    - require:
       - pkg: nfs-utils

This worked fine until 0.16.2, now I get:

----------
    State: - mount
    Name:      /srv
    Function:  mounted
        Result:    False
        Comment:   An exception occurred in this state: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/state.py", line 1239, in call
    ret = self.states[cdata['full']](*cdata['args'])
   File "/usr/lib/python2.7/site-packages/salt/states/mount.py", line 109, in mounted
    if ret['changes']['mount']:
KeyError: 'mount'

        Changes:   

Seems likely that this is related to commit 0c9bcab

@terminalmage
Copy link
Contributor

@jcollie Thanks for the report. I've fixed this in #6526.

@jcollie
Copy link
Contributor Author

jcollie commented Aug 7, 2013

With the patch in dd1d075 the traceback is avoided, but there's still a problem:

----------
    State: - mount
    Name:      /srv
    Function:  mounted
        Result:    False
        Comment:   Target was already mounted. Unfortunately the file system didn't exist.
        Changes:   

As you can see the filesystem is mounted (correctly):

# mount | grep /srv
10.6.16.72:/vol/Web09 on /srv type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.6.16.72,mountvers=3,mountport=4046,mountproto=udp,local_lock=none,addr=10.6.16.72)

This should be backported to 0.16 as well once this is well and truly fixed.

@basepi
Copy link
Contributor

basepi commented Aug 8, 2013

This has now been fixed properly in #6566.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants