Do you have SELinux enabled? Also, do you have 'all_squash' enabled on your NFS directories?
Trevor On Mon, Jan 2, 2017 at 5:51 PM, PK <p.karni...@gmail.com> wrote: > Hi All, > > I seem to be running into an issue when I try to use environments in my > test Puppet 4 setup. I am in the process of migrating from Puppet 3 to > Puppet 4. > > puppetserver version: 2.7.2 > puppet agent: 4.8.1 > Server is running CentOS Linux release 7.3.1611 > > If I create local directories > /etc/puppetlabs/code/environments/{dev,production} > and populate it with all my Puppet related files, everything works fine. > However, if I copy the same files over to a NFS share mounted at a > different location and then create a symlink from > /etc/puppetlabs/code/environments/dev > to that new location, puppet agent doesn't like it and errors out. > > [root] pwd > /etc/puppetlabs/code/environments > [root]# ll > lrwxrwxrwx 1 root root 23 Jan 2 14:21 dev -> /ln/systems/puppet4/dev > > Errors on the client while running puppet agent -t: > Error: Could not retrieve catalog from remote server: Find > /puppet/v3/catalog/hostname.com?environment=dev&facts_ > format=pson&facts=%257B%2522name%... resulted in 404 with the message: > {"message":"Not Found: Could not find environment > 'dev'","issue_kind":"RUNTIME_ERROR"} > > Puppetserver errors: > 2017-01-02 14:26:12,505 INFO [qtp1908253991-68] [puppetserver] Puppet Not > Found: Could not find environment 'dev' > > This same setup (symlink to a NFS share) works perfectly fine with our > current Puppet 3.7.5 > > I also tried mounting the NFS share directly at > /etc/puppetlabs/code/environments, > but that doesn't work either. > > Has someone seen this before? Am I missing something? > > Thanks! > PK > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/puppet-users/01451c04-cbb4-418a-a138-8a0b4ffa581b%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/01451c04-cbb4-418a-a138-8a0b4ffa581b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 x788 -- This account not approved for unencrypted proprietary information -- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANs%2BFoVWm59kHGexvAw-TvR-8xD9zrkgTc23btAqhhSUkm3p5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.