Jira (PUP-6683) Puppet agent 1.6.2 breaks defined()

2016-09-07 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6683 
 
 
 
  Puppet agent 1.6.2 breaks defined()  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 
 
 
 
 
 
 
 After upgrading puppet-agent to 1.6.2 on my puppet master this code no longer works as expected:if defined(Package[$php_package]) == false {  package { $php_package: ensure => present,  }}It always gives:Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Package[php-cli] is already declared in file /etc/puppetlabs/code/environments/dev/site/profile/manifests/php.pp:11; cannot redeclare at /etc/puppetlabs/code/environments/dev/modules/composer/manifests/init.pp:93 at /etc/puppetlabs/code/environments/dev/modules/composer/manifests/init.pp:93:5Reverting puppet-agent to 1.6.1 fixes this problem UPDATEThis problem is caused by not restarting Puppet Server after an upgrade of Puppet Agent. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6683) Puppet agent 1.6.2 breaks defined()

2016-09-06 Thread Nick Le Mouton (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nick Le Mouton commented on  PUP-6683 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet agent 1.6.2 breaks defined()  
 
 
 
 
 
 
 
 
 
 
Thanks, it looks like a restart fixes the problem after upgrading to puppet agent 1.6.2. I guess I just need to restart puppetserver when puppet agent gets updated. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6683) Puppet agent 1.6.2 breaks defined()

2016-09-06 Thread R.I.Pienaar (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 R.I.Pienaar commented on  PUP-6683 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet agent 1.6.2 breaks defined()  
 
 
 
 
 
 
 
 
 
 
yes exactly the same 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6683) Puppet agent 1.6.2 breaks defined()

2016-09-06 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-6683 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet agent 1.6.2 breaks defined()  
 
 
 
 
 
 
 
 
 
 
R.I.Pienaar did you have exactly the same problem "redfined resource" ? I have seen other errors caused by not restarting the server. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6683) Puppet agent 1.6.2 breaks defined()

2016-09-06 Thread R.I.Pienaar (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 R.I.Pienaar commented on  PUP-6683 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet agent 1.6.2 breaks defined()  
 
 
 
 
 
 
 
 
 
 
I had the same problem, restart fixed it. 
puppet-agent package should detect puppetserver and restart it or signal it somehow to kill its ruby workers and restart them I think 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6683) Puppet agent 1.6.2 breaks defined()

2016-09-06 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-6683 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet agent 1.6.2 breaks defined()  
 
 
 
 
 
 
 
 
 
 
Tweaking the above example to: 
 
 
 
 
 
 
notify { $a_title: message => the_message } 
 
 
 
 
if defined(Notify[$a_title]) == false { 
 
 
 
 
  notify { $a_title: message => the_message } 
 
 
 
 
}
 
 
 
 
 
 
 
Does not trigger the problem (that is, the defined function does indeed find the resource). And if it is change to this: 
 
 
 
 
 
 
notify { $a_title: message => the_message } 
 
 
 
 
if defined(Notify[$a_title]) != false { 
 
 
 
 
  notify { $a_title: message => the_message } 
 
 
 
 
}
 
 
 
 
 
 
 
It, as expected, errors with a duplicate resource. 
 

Jira (PUP-6683) Puppet agent 1.6.2 breaks defined()

2016-09-06 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg moved an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6683 
 
 
 
  Puppet agent 1.6.2 breaks defined()  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Affects Version/s:
 
 puppet-agent 1.6.2 
 
 
 

Affects Version/s:
 
 PUP 4.6.2 
 
 
 

Workflow:
 
 Release Engineering Scrum Teams  Workflow 
 
 
 

Key:
 
 PA PUP - 517 6683 
 
 
 

Project:
 
 Puppet  Agent 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this