Jira (PUP-10011) Tidy resource remove files even dependencies are failed

2019-09-17 Thread Henry Wang (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henry Wang commented on  PUP-10011  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Tidy resource remove files even dependencies are failed   
 

  
 
 
 
 

 
 The Tidy resource has shortcomings and likely not to be worked. Tidy resource in these examples can be replaced by an exec resource. As far as a technical reason, it is likely that the tidy resource does not pass the dependencies to the file resources that it generates.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.323802.1567763238000.103019.1568773380168%40Atlassian.JIRA.


Jira (PUP-10011) Tidy resource remove files even dependencies are failed

2019-09-12 Thread Jarret Lavallee (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jarret Lavallee updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10011  
 
 
  Tidy resource remove files even dependencies are failed   
 

  
 
 
 
 

 
Change By: 
 Jarret Lavallee  
 
 
CS Priority: 
 Minor Reviewed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.323802.1567763238000.96751.1568330700338%40Atlassian.JIRA.


Jira (PUP-10011) Tidy resource remove files even dependencies are failed

2019-09-12 Thread Jarret Lavallee (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jarret Lavallee updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10011  
 
 
  Tidy resource remove files even dependencies are failed   
 

  
 
 
 
 

 
Change By: 
 Jarret Lavallee  
 
 
CS Priority: 
 Needs Priority Minor  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.323802.1567763238000.96749.1568330700329%40Atlassian.JIRA.


Jira (PUP-10011) Tidy resource remove files even dependencies are failed

2019-09-06 Thread Patrick Grant (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Patrick Grant updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10011  
 
 
  Tidy resource remove files even dependencies are failed   
 

  
 
 
 
 

 
Change By: 
 Patrick Grant  
 
 
Team: 
 Coremunity  
 
 
Issue Type: 
 Task Bug  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.323802.1567763238000.88495.1567771080276%40Atlassian.JIRA.


Jira (PUP-10011) Tidy resource remove files even dependencies are failed

2019-09-06 Thread Patrick Grant (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Patrick Grant updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10011  
 
 
  Tidy resource remove files even dependencies are failed   
 

  
 
 
 
 

 
Change By: 
 Patrick Grant  
 
 
CS Priority: 
 Needs Priority  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.323802.1567763238000.88487.1567770360136%40Atlassian.JIRA.


Jira (PUP-10011) Tidy resource remove files even dependencies are failed

2019-09-06 Thread Henry Wang (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henry Wang created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10011  
 
 
  Tidy resource remove files even dependencies are failed   
 

  
 
 
 
 

 
Issue Type: 
  Task  
 
 
Affects Versions: 
 PUP 6.4.3  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2019/09/06 2:47 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Henry Wang  
 

  
 
 
 
 

 
 Hi team,   We got a problem regarding tidy resource. If we put a require => in tidy resource, for example require => Package['v'], if the package is failed to be absent, tidy will still remove files and then raise the Warning "Skipping because of failed depencies"   For example, I write a simple Puppet code and tried to apply it:   package  { 'v':  ensure => installed, } tidy  { 'cleanup /tmp/tidytest': require => Package['v'], path => '/tmp/tidytest', age => '0', recurse => 1, rmdirs => false, matches => ['*'], } file  { '/tmp/testfile.doc':  ensure => present,  require => Package['v'], }    Due to package will not be installed. Then the result is /tmp/testfile.doc will not be created but all files under /tmp/tidytest will be removed. Both resources will raise the "Skipping because of failed depencies" but apparantly, tidy is triggered.   Debug: Executing: '/bin/yum -d 0 -e 0 -y install v' Error: Execution of '/bin/yum -d 0 -e 0 -y install v' returned 1: Error: Nothing to do Error: /Stage[main]/Main/Package[v]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/yum -d 0 -e 0 -y install v' returned 1: Error: Nothing to do Debug: /Stage[main]/Main/File[/tmp/tidytest/2]: Removing existing file for replacement with absent Notice: /Stage[main]/Main/File[/tmp/tidytest/2]/ensure: removed Debug: /Stage[main]/Main/File[/tmp/tidytest/2]: The container Class[Main] will propagate my refresh event Debug: /Stage[main]/Main/File[/tmp/tidytest/1]: Removing existing file for replacement with absent Notice: /Stage[main]/Main/File[/tmp/tidytest/1]/ensure: removed Debug: /Stage[main]/Main/File[/tmp/tidytest/1]: The container Class[Main] will propagate my refresh event Notice: