Jira (PUP-10404) Puppet apply can no longer copy directories recursively from a 'puppet:///' file source

3 views
Skip to first unread message

Trevor Vaughan (Jira)

unread,
Mar 31, 2020, 8:56:04 PM3/31/20
to puppe...@googlegroups.com
Trevor Vaughan created an issue
 
Puppet / Bug PUP-10404
Puppet apply can no longer copy directories recursively from a 'puppet:///' file source
Issue Type: Bug Bug
Affects Versions: PUP 6.14.0
Assignee: Unassigned
Components: Catalog Application
Created: 2020/03/31 5:55 PM
Priority: Critical Critical
Reporter: Trevor Vaughan

Puppet Version: 6.14.0 (6.13 works)
Puppet Server Version: N/A
OS Name/Version: EL7

Recursive directory copies from modules no longer appear to function in 6.14.0.

Repeater:

mkdir -p testmod/{files,manifests}
mkdir testmod/files/test
echo 'one' > testmod/files/test/one
echo 'two' > testmod/files/test/two

Create `testmod/manifests/init.pp` with the following content:

class testmod {
  file { '/tmp/test':
    ensure => 'directory',
    force => true,
    recurse => true,
    source => "puppet:///modules/${module_name}/test"
  }
}

Run: puppet apply -e 'include testmod

Desired Behavior:

/tmp/test gets created with all of the files

Actual Behavior:

Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
Wrapped exception:
Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
Error: /Stage[main]/Testmod/File[/tmp/test/one]/ensure: change from 'absent' to 'file' failed: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
Wrapped exception:
Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
Error: /Stage[main]/Testmod/File[/tmp/test/two]/ensure: change from 'absent' to 'file' failed: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 31, 2020, 11:38:03 PM3/31/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10404
 
Re: Puppet apply can no longer copy directories recursively from a 'puppet:///' file source

This is fixed in nightly builds. You can also apply the patch in the linked ticket or wait until 6.15.0 is released in a few weeks.

Reply all
Reply to author
Forward
0 new messages