[Puppet - Bug #2998] (Unreviewed) cannot specify root namespace with require function

0 views
Skip to first unread message

red...@reductivelabs.com

unread,
Dec 30, 2009, 5:15:14 PM12/30/09
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, puppe...@googlegroups.com
Issue #2998 has been reported by Dan Bode.

Bug #2998: cannot specify root namespace with require function

  • Author: Dan Bode
  • Status: Unreviewed
  • Priority: Normal
  • Assigned to:
  • Category:
  • Target version:
  • Affected version: 0.25.2rc2
  • Keywords:
  • Branch:

Here is a fun one :)

assume

#test/manifests/init.pp

class test{
  file{'/tmp/testdir':
    content => 'test',
  }
}

#test2/manifests/test.pp
class test2::test{
  require ::test
  file{'/tmp/test2test':
    content => 'blah',
  }
}

this does not work and produces the following output

Could not find dependency Class[::test] for Class[test2::test]

Just for a sanity check, I also tested the the below file which should be equivalent.

#test2/manifests/test.pp

class test2::test{
  include ::test
  file{'/tmp/test2test3':
    content => 'blah',
    require => Class['::test'],
  }
}

produces the expected output:

notice: //test/File[/tmp/testdir]/content: is absent, should be {md5}5a105e8b9d40e1329780d62ea2265d8a (noop)
notice: //test2::test/File[/tmp/test2test3]/content: is absent, should be {md5}6f1ed002ab5595859014ebf0951522d9 (noop)


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://reductivelabs.com/redmine/my/account

red...@reductivelabs.com

unread,
Dec 31, 2009, 2:02:40 AM12/31/09
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, Mar...@reality.com, puppe...@googlegroups.com
Issue #2998 has been updated by James Turnbull.
  • Category set to functions
  • Status changed from Unreviewed to Investigating
  • Assigned to set to Markus Roberts
  • Author: Dan Bode
  • Status: Investigating
  • Priority: Normal
  • Assigned to: Markus Roberts
  • Category: functions

red...@reductivelabs.com

unread,
Dec 31, 2009, 5:20:29 PM12/31/09
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, puppe...@googlegroups.com
Issue #2998 has been updated by Markus Roberts.
  • Status changed from Investigating to Needs more information
  • Assigned to changed from Markus Roberts to Dan Bode
  • Target version set to Puppet - 0.25.3

Could you please give a complete description of the configuration you're using to generate this? With either version (the include or the require) on 0.25.x I get an error:

err: Invalid tag "::test" at test2/manifests/init.pp:2 on node phage.home
  • Author: Dan Bode
  • Status: Needs more information
  • Priority: Normal
  • Assigned to: Dan Bode
  • Category: functions
  • Target version: 0.25.3

red...@reductivelabs.com

unread,
Jan 4, 2010, 1:18:57 PM1/4/10
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, puppe...@googlegroups.com
Issue #2998 has been updated by Dan Bode.
  • File modules.tgz added

here is the exact code that I used to validate this.

untar, cd into modules2, then run puppet --modulepath PATH/TO/modules2/ modules2/test.pp

  • Author: Dan Bode
  • Status: Needs more information
  • Priority: Normal
  • Assigned to: Dan Bode
  • Category: functions
  • Target version: 0.25.3

red...@reductivelabs.com

unread,
Jan 4, 2010, 1:19:51 PM1/4/10
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, Mar...@reality.com, puppe...@googlegroups.com
Issue #2998 has been updated by Dan Bode.
  • Assigned to changed from Dan Bode to Markus Roberts
  • Author: Dan Bode
  • Status: Needs more information
  • Priority: Normal
  • Assigned to: Markus Roberts
  • Category: functions
  • Target version: 0.25.3

red...@reductivelabs.com

unread,
Jan 4, 2010, 3:14:57 PM1/4/10
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, Mar...@reality.com, puppe...@googlegroups.com
Issue #2998 has been updated by Luke Kanies.
  • Status changed from Needs more information to Accepted

This is definitely a bug, and should be a pretty easy fix.

  • Author: Dan Bode
  • Status: Accepted
  • Priority: Normal
  • Assigned to: Markus Roberts
  • Category: functions
  • Target version: 0.25.3

red...@reductivelabs.com

unread,
Jan 7, 2010, 9:20:53 PM1/7/10
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, Mar...@reality.com, puppe...@googlegroups.com
Issue #2998 has been updated by Markus Roberts.
  • Target version changed from Puppet - 0.25.3 to Puppet - 0.25.4
  • Author: Dan Bode
  • Status: Accepted
  • Priority: Normal
  • Assigned to: Markus Roberts
  • Category: functions
  • Target version: 0.25.4

red...@reductivelabs.com

unread,
Jan 13, 2010, 10:09:57 PM1/13/10
to ja...@lovedthanlost.net, r...@devco.net, d...@reductivelabs.com, Mar...@reality.com, puppe...@googlegroups.com
Issue #2998 has been updated by James Turnbull.
  • Target version changed from Puppet - 0.25.4 to Puppet - 0.25.5
  • Author: Dan Bode
  • Status: Accepted
  • Priority: Normal
  • Assigned to: Markus Roberts
  • Category: functions
  • Target version: 0.25.5
Reply all
Reply to author
Forward
0 new messages