Jira (PUP-1415) Mount resource error silently skipped at times when running as daemon

2014-05-06 Thread Marco De Vitis (JIRA)
Title: Message Title










 

 Marco De Vitis commented on an issue


















  Re: Mount resource error silently skipped at times when running as daemon 










Yes thanks, I also tested it now on the same machine after upgrading to Puppet 3.5.1, and every automatic run of Puppet correctly returns the error and does not apply the yumrepo resource. Ticket can be closed for me.












   

 Add Comment

























 Puppet /  PUP-1415



  Mount resource error silently skipped at times when running as daemon 







 I have a host where puppet is running as daemon, refreshing every 30 minutes as per default, and a custom class is applied.   The class contains:   # A file resource to ensure a directory is created.  # A package resource to ensure the nfs-utils RPM is installed.  # A mount resource to mount a NFS share into the directory created in 1 and add the ...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at 

Jira (PUP-1415) Mount resource error silently skipped at times when running as daemon

2014-05-05 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank assigned an issue to Felix Frank


















 Puppet /  PUP-1415



  Mount resource error silently skipped at times when running as daemon 










Change By:

 Felix Frank




Assignee:

 FelixFrank












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1415) Mount resource error silently skipped at times when running as daemon

2014-05-05 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Mount resource error silently skipped at times when running as daemon 










I didn't feel up to build an NFS test rig, so I simplified like this (I'm on Debian, so no yumrepo either):



class mount_oddness_pup_1415 {
file {  /tmp/mountpoint: ensure = directory }
package { openssh-server: ensure = present }
mount { /tmp/mountpoint:
ensure = mounted,
device = /tmp/mountme,
dump = 0,
pass = 0,
options = bind,rw,
require = [ File[/tmp/mountpoint], Package[openssh-server] ];
}
notify { i-am-a-yumrepo:
require = Mount[/tmp/mountpoint];
}
}



But with Puppet 3.5.1, I fail to reproduce the issue. The agent reliably yields the following



Notice: /Stage[main]/Mount_oddness_pup_1415/Mount[/tmp/mountpoint]/ensure: defined 'ensure' as 'mounted'
Error: /Stage[main]/Mount_oddness_pup_1415/Mount[/tmp/mountpoint]: Could not evaluate: Field 'device' is required
Notice: /Stage[main]/Mount_oddness_pup_1415/Notify[i-am-a-yumrepo]: Dependency Mount[/tmp/mountpoint] has failures: true
Warning: /Stage[main]/Mount_oddness_pup_1415/Notify[i-am-a-yumrepo]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.53 seconds



Agent 2.7.23 behaves similar to what you describe:



notice: /Stage[main]/Mount_oddness_pup_1415/Mount[/tmp/mountpoint]/ensure: defined 'ensure' as 'mounted'
err: /Stage[main]/Mount_oddness_pup_1415/Mount[/tmp/mountpoint]: Could not evaluate: Field 'device' is required
notice: /Stage[main]/Mount_oddness_pup_1415/Notify[i-am-a-yumrepo]: Dependency Mount[/tmp/mountpoint] has failures: true
warning: /Stage[main]/Mount_oddness_pup_1415/Notify[i-am-a-yumrepo]: Skipping because of failed dependencies
notice: Finished catalog run in 0.28 seconds

time passes

notice: i-am-a-yumrepo
notice: /Stage[main]/Mount_oddness_pup_1415/Notify[i-am-a-yumrepo]/message: defined 'message' as 'i-am-a-yumrepo'
notice: Finished catalog run in 0.27 seconds



No mention of the mount resource during the second run.
So whatever causes this behavior, it is apparently fixed in the current stable version. In the meantime, you can work around it by fixing your fstab, yes?
I am inclined to close this ticket. Marco De Vitis, do you feel that this is justified?












   

  

Jira (PUP-1415) Mount resource error silently skipped at times when running as daemon

2014-05-05 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank assigned an issue to Felix Frank


















 Puppet /  PUP-1415



  Mount resource error silently skipped at times when running as daemon 










Change By:

 Felix Frank




Assignee:

 FelixFrank












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1415) Mount resource error silently skipped at times when running as daemon

2014-01-10 Thread Marco De Vitis (JIRA)
Title: Message Title










 

 Marco De Vitis created an issue


















 Puppet /  PUP-1415



  Mount resource error silently skipped at times when running as daemon 










Issue Type:

  Bug




Affects Versions:


 2.7.23




Assignee:


 Unassigned




Attachments:


 debug.log




Components:


 Types and Providers




Created:


 10/Jan/14 7:10 AM




Environment:


CentOS 6.4 x64




Priority:

  Normal




Reporter:

 Marco De Vitis










I have a host where puppet is running as daemon, refreshing every 30 minutes as per default, and a custom class is applied.
The class contains:


A file resource to ensure a directory is created.