Bug #760
owner/group info not honored during creation time
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | 0.24.0 | |||
| Affected Puppet version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
During the creation of files/directories and symlinks, the ownership information (such as the group and owner) is not being set during the first run of puppet. The items are created but default to the root/root ownership. To enforce the ownership information, a second run of puppet on the same host would be required.
History
Updated by Anonymous over 4 years ago
We would like to know what platform and version of Ruby.
Updated by David Schmitt over 4 years ago
I can reproduce this on current sid with debian’s 0.23.2-13 as well as with the current HEAD
Updated by David Schmitt over 4 years ago
david@zion:~/Work/puppet/debian/puppet-0.23.2$ cat /tmp/test_symlinking.pp
file { "/tmp/target": content => "blubb\n", }
file { "/tmp/link": ensure => "/tmp/target", owner=>david, group=>david }
david@zion:~/Work/puppet/debian/puppet-0.23.2$ sudo bash -c 'RUBYLIB=./lib/ ./bin/puppet --trace --debug /tmp/test_symlinking.pp'
[...]
debug: //File[/tmp/link]: File does not exist
debug: //File[/tmp/link]: Changing ensure
debug: //File[/tmp/link]: 1 change(s)
debug: //File[/tmp/link]/ensure: setting link (currently absent)
notice: //File[/tmp/link]/ensure: created
debug: //File[/tmp/target]: File does not exist
debug: //File[/tmp/target]: Changing content
debug: //File[/tmp/target]: 1 change(s)
notice: //File[/tmp/target]/content: created file with contents {md5}01348f6576a9f58e1c7180a3ca729d95
debug: Finishing transaction -609998398 with 2 changes
debug: Storing state
debug: Stored state in 0.24 seconds
david@zion:~/Work/puppet/debian/puppet-0.23.2$ ls -la /tmp/{link,target}
lrwxrwxrwx 1 david root 11 2007-11-05 22:13 /tmp/link -> /tmp/target
-rw-r--r-- 1 root root 6 2007-11-05 22:13 /tmp/target
david@zion:~/Work/puppet/debian/puppet-0.23.2$ sudo bash -c 'RUBYLIB=./lib/ ./bin/puppet --trace --debug /tmp/test_symlinking.pp'
debug: Creating interpreter
[...]
debug: //File[/tmp/link]: Changing group
debug: //File[/tmp/link]: 1 change(s)
notice: //File[/tmp/link]/group: group changed 'root' to 'david'
debug: Finishing transaction -610140078 with 1 changes
debug: Storing state
debug: Stored state in 0.24 seconds
david@zion:~/Work/puppet/debian/puppet-0.23.2$ cat /tmp/test_symlinking.pp
Updated by David Schmitt over 4 years ago
A fix is available in the
misspiggy/fix-760branch of the repo at
git://git.black.co.at/puppet-bugfixes
Updated by Luke Kanies over 4 years ago
- Status changed from 1 to Closed
- 7 set to fixed
Fixed in commit:419452666e02d82c94450f92e3483b56a72fcd20 by DavidS and merged in commit:22b96e0a8ab07ef3fddea3d3602948dbf45c4dd7.