Issue #4131 has been updated by Steven Post.

Affected Puppet version deleted (3.2.1-rc1)

Hi,

I was investigating a failed mount (options => 'rw,bind') and stumbled on this 
bug, which may be related.
The error I'm seeing is:
        Error: Puppet::Util::FileType::FileTypeFlat could not read 
/var/app/web: Is a directory - /var/app/web
        Error: Could not prefetch mount provider 'parsed': 
Puppet::Util::FileType::FileTypeFlat could not read /var/app/web: Is a 
directory - /var/app/web

The manifest looks like this:
        file { '/appl/web':
                        ensure  => 'directory',
                        replace => false,
                        owner   => 'web',
                        group   => 'web',
                        mode    => '0664',
                        require => File['/appl']
        }
        ->
        file { '/var/app/web':
                        ensure  => 'directory',
                        owner   => 'web',
                        group   => 'web',
                        mode    => '0664',
        }
        ->
        mount { '/appl/web':
                        ensure  => 'mounted',
                        atboot  => true,
                        target  => '/var/app/web',
                        fstype  => 'none',
                        options => 'rw,bind',
        }

Can someone confirm or deny that this is the same/related bug?
Puppet version is 3.2.4, a side effect is that /etc/fstab gets hosed (not good).

I got this from the puppet agent with the --debug option turned on:
        Debug: Prefetching parsed resources for mount
        Error: Puppet::Util::FileType::FileTypeFlat could not read 
/var/app/web: Is a directory - /var/app/web
        Error: Could not prefetch mount provider 'parsed': 
Puppet::Util::FileType::FileTypeFlat could not read /var/app/web: Is a 
directory - /var/app/web
        Notice: 
/Stage[main]/Jboss_eap_standalone::Install/Mount[/var/log/jboss-eap-6.1-dpp]/ensure:
 defined 'ensure' as 'mounted'
        Debug: Flushing mount provider target /etc/fstab
        Debug: Finishing transaction 70363342174320


Other bind mounts which seem to be setup the same do work correctly.

Best regards,
Steven

----------------------------------------
Bug #4131: resources using parsedfile providers quietly move resources from 
default file to target with 'puppet resource'
https://projects.puppetlabs.com/issues/4131#change-101310

* Author: Dan Bode
* Status: Needs More Information
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
use the host resource and puppet resource:

I expect the following to fail:

<pre>
# puppet resource host test1 ensure=present target="/tmp/host" 
host_aliases=alias1
notice: /Host[test1]/ensure: created
err: /Host[test1]: Could not evaluate: ip is a required attribute for hosts
host { 'test1':
    host_aliases => ['alias1'],
    target => '/tmp/host',
    ensure => 'present'
}
</pre>

If there is already an entry for this host in /etc/hosts (the default target), 
puppet will use the ip address of that host and move it to the new target 
location.

<pre>
# echo '127.0.0.2 test1'> /etc/hosts
[root@puppet2 puppet_spec]# puppet resource host test1 ensure=present 
target="/tmp/host" host_aliases=alias1
notice: /Host[test1]/host_aliases: host_aliases changed '' to 'alias1'
notice: /Host[test1]/target: target changed '/etc/hosts' to '/tmp/host'
host { 'test1':
    host_aliases => ['alias1'],
    target => '/tmp/host',
    ensure => 'present'
}
</pre>




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to