Jira (PUP-2718) Prefetching is prone to fail for eval_generated resources

3 views
Skip to first unread message

Russell Mull (JIRA)

unread,
May 16, 2017, 12:59:03 PM5/16/17
to puppe...@googlegroups.com
Russell Mull updated an issue
 
Puppet / Improvement PUP-2718
Prefetching is prone to fail for eval_generated resources
Change By: Russell Mull
Labels: triaged
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Branan Riley (JIRA)

unread,
May 16, 2017, 12:59:03 PM5/16/17
to puppe...@googlegroups.com
Branan Riley assigned an issue to Unassigned
Change By: Branan Riley
Assignee: Kylo Ginsberg

Branan Riley (JIRA)

unread,
May 16, 2017, 1:00:08 PM5/16/17
to puppe...@googlegroups.com

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:49:03 PM5/18/17
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Dec 9, 2021, 12:55:03 PM12/9/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Priority: Minor Normal
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 9, 2021, 7:58:02 PM12/9/21
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-2718
 
Re: Prefetching is prone to fail for eval_generated resources

We recently ran into this bug again when we tried to switch the user type to "eval_generate" when calculating ssh_authorized_keys to purge (see PUP-11320). So a simple manifest fails to purge the unmanaged authorized key:

# cat <<END > /tmp/authorized_keys
> ssh-rsa key comment
> END
 
# cat manifest.pp 
package { 'puppet-agent':
  ensure =>  present,
}
 
user { "root":
  purge_ssh_keys => '/tmp/authorized_keys',
}
 
# puppet apply manifest.pp 
Notice: Compiled catalog for XXX in environment production in 0.31 seconds
Notice: Applied catalog in 0.48 seconds
 
# cat /tmp/authorized_keys 
ssh-rsa key comment

Using 7.13.1 correctly purges the keys as expected:

# puppet apply manifest.pp 
Notice: Compiled catalog for XXX in environment production in 0.32 seconds
Notice: /Stage[main]/Main/Ssh_authorized_key[comment]/ensure: removed
Notice: Applied catalog in 0.17 seconds
 
# cat /tmp/authorized_keys 
# HEADER: This file was autogenerated at 2021-12-10 00:56:22 +0000
# HEADER: by puppet.  While it can still be managed manually, it
# HEADER: is definitely not recommended.

Reply all
Reply to author
Forward
0 new messages