Issue #3530 has been updated by Tony Garcia.

Similar situation on 0.24.8, my use case needs to mount an nfs share on /home 
but as the local partition is already mounted it is ignoring it.

Local partition mounted in the resource name "/home".
<pre>
$ mount |grep home
/dev/mapper/Sys-home on /home type ext3 (rw)
</pre>

fstab is ok, but as long as the old device is mounted it won't change.
<pre>
$ grep home /etc/fstab 
nfs.example.com:/vol/home       /home   nfs     rw,bg,hard,timeo=600    0       0
</pre>

Running with debug:
<pre>
$ puppetd -t environment=development --debug|grep mount
debug: Prefetching parsed resources for mount
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount'
</pre>

As the resource name is mounted it assumes everything is ok, it would be good 
to verify the mounting point by device after validating the resource name is 
mounted hence doing a umount/mount correctly.
----------------------------------------
Bug #3530: mount change did not umount/mount
http://projects.puppetlabs.com/issues/3530

Author: mark foster
Status: Accepted
Priority: High
Assigned to: 
Category: mount
Target version: 
Affected version: 0.24.8
Keywords: 
Branch: 


I don't know if this is a bug or not so thought I'd better report it.
I changed manifest mount to point to a different ISO (two of them actually) and 
upon applying the catalog the puppet client said:
Apr  9 10:43:49 sea-build-002 puppetd[715]: Starting catalog run
Apr  9 10:43:52 sea-build-002 puppetd[715]: 
(//Node[sea-build-002]/bp-build/Mount[/home/ftp/ubuntu-10.04-server-amd64]/device)
 device changed '/home/ftp/isos/ubuntu-10.04-beta1-server-amd64.iso' to 
'/home/ftp/isos/ubuntu-10.04-beta2-server-amd64.iso'
Apr  9 10:43:52 sea-build-002 puppetd[715]: 
(//Node[sea-build-002]/bp-build/Mount[/home/ftp/ubuntu-10.04-server-amd64]) 
Refreshing self
Apr  9 10:43:54 sea-build-002 puppetd[715]: 
(//Node[sea-build-002]/bp-build/Mount[/home/ftp/ubuntu-10.04-server-i386]/device)
 device changed '/home/ftp/isos/ubuntu-10.04-beta1-server-i386.iso' to 
'/home/ftp/isos/ubuntu-10.04-beta2-server-i386.iso'
Apr  9 10:43:54 sea-build-002 puppetd[715]: 
(//Node[sea-build-002]/bp-build/Mount[/home/ftp/ubuntu-10.04-server-i386]) 
Refreshing self
Apr  9 10:44:00 sea-build-002 puppetd[715]: Finished catalog run in 10.49 
seconds

However the underlying mount did not change!

mfos...@sea-build-002:~/work/packages$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/md1              227G  199G   28G  88% /
varrun                4.0G  1.5M  4.0G   1% /var/run
varlock               4.0G     0  4.0G   0% /var/lock
udev                  4.0G   44K  4.0G   1% /dev
devshm                4.0G     0  4.0G   0% /dev/shm
/home/ftp/isos/systemrescuecd-x86-1.3.5.iso
                      243M  243M     0 100% /home/ftp/systemrescuecd-x86-1.3.5
/home/ftp/isos/ubuntu-9.10-server-amd64.iso
                      655M  655M     0 100% /home/ftp/ubuntu-9.10-server-amd64
/home/ftp/isos/ubuntu-9.10-alternate-amd64.iso
                      697M  697M     0 100% 
/home/ftp/ubuntu-9.10-alternate-amd64
/home/ftp/isos/ubuntu-8.04.4-server-amd64.iso
                      567M  567M     0 100% /home/ftp/ubuntu-8.04.4-server-amd64
/home/ftp/isos/ubuntu-8.04.4-server-i386.iso
                      568M  568M     0 100% /home/ftp/ubuntu-8.04.4-server-i386
/home/ftp/isos/ubuntu-10.04-beta1-server-i386.iso
                      662M  662M     0 100% /home/ftp/ubuntu-10.04-server-i386
/home/ftp/isos/ubuntu-10.04-beta1-server-amd64.iso
                      679M  679M     0 100% /home/ftp/ubuntu-10.04-server-amd64

Here are the snippets from my manifest that are relevant to this report.
      #Lucid 10.04 (currently beta2)
      file {"/home/ftp/ubuntu-10.04-server-i386":
        ensure => directory, owner => root, group => root,
      }
      mount {"/home/ftp/ubuntu-10.04-server-i386":
        ensure => mounted, atboot => yes,
        device => "/home/ftp/isos/ubuntu-10.04-beta2-server-i386.iso",
        options => "loop,ro", fstype => "iso9660",
        dump => 0, pass => 0,
        require => File["/home/ftp/ubuntu-10.04-server-i386"],
      }
      file {"/home/ftp/ubuntu-10.04-server-amd64":
        ensure => directory, owner => root, group => root,
      }
      mount {"/home/ftp/ubuntu-10.04-server-amd64":
        ensure => mounted, atboot => yes,
        device => "/home/ftp/isos/ubuntu-10.04-beta2-server-amd64.iso",
        options => "loop,ro", fstype => "iso9660",
        dump => 0, pass => 0,
        require => File["/home/ftp/ubuntu-10.04-server-amd64"],
      }

Thank you.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to