Greetings.
Thanks a lot for the effort to create and maintain this code!
Who maintains the FAQ and how do we suggest new items?
I have a few items.
1 - What is the latest recommended jpuppet? jpuppet-ex-1.0R1.1.tgz
The FAQ is for 0.8B1.
2 - What is the minimun required software version for use with jpuppet-x.y.z 12.3R2 or newer within the 12.3 release.
It is stated in the release notes for jpuppet-ex-1.0R1.1.tgz but not in the other install guides, and I got an interesting error that took a bit to figure out. The error was basically: junos-package.xml fails to validate
Here is the output from the package add:
root> request system software add /var/tmp/jpuppet-ex-1.0R1.1.tgz no-validate
(note that it attempts to validate, in spite of the no-validate directive)
root> ... add /var/tmp/jpuppet-ex-1.0R1.1.tgz no-validate
Checking pending install on fpc0
fpc0:
+junos-package.xml:1: element bsb-name: Schemas validity error : Element 'bsb-name': This element is not expected. Expected is ( type ).
+junos-package.xml fails to validate
3 - What causes undefined method `downcase' for nil:NilClass (NoMethodError)? Your router needs to be able to resolve its own hostname.
% puppet agent -t --no-daemonize
/opt/sdk/juniper/lib/ruby/1.8/puppet/defaults.rb:226: undefined method `downcase' for nil:NilClass (NoMethodError)
from /opt/sdk/juniper/lib/ruby/1.8/puppet.rb:99:in `require'
from /opt/sdk/juniper/lib/ruby/1.8/puppet.rb:99
from /opt/sdk/juniper/lib/ruby/1.8/puppet/application.rb:272:in `require'
from /opt/sdk/juniper/lib/ruby/1.8/puppet/application.rb:272:in `initialize'
from /opt/sdk/juniper/lib/ruby/1.8/puppet/util/command_line.rb:60:in `new'
from /opt/sdk/juniper/lib/ruby/1.8/puppet/util/command_line.rb:60:in `execute'
from /opt/sdk/juniper/bin/puppet:4
I eventually found this on a google group:
!=== begin included text
On Jul 21, 2:59 pm, Bob wrote:
> Hi, I run puppetmaster on a machine accessible by both ipv4 and ipv6.
> bindaddress in puppet.conf is "::"
>
> Puppet version:
> Client (debian squeeze): 2.6.2-5
> Server (ubuntu 10.10): 2.6.1
>
> When I try to run puppetd --test from my IPv4 only client, I get the
> following error message:
>
> Could not retrieve hostname: getaddrinfo: Name or service not known
> Could not retrieve hostname: getaddrinfo: Name or service not known
> dnsdomainname: Name or service not known
> /usr/lib/ruby/1.8/puppet/defaults.rb:190: undefined method `downcase'
> for nil:NilClass (NoMethodError)
> from /usr/lib/ruby/1.8/puppet.rb:100:in `require'
> from /usr/lib/ruby/1.8/puppet.rb:100
> from /usr/lib/ruby/1.8/puppet/application.rb:278:in `require'
> from /usr/lib/ruby/1.8/puppet/application.rb:278:in `initialize'
> from /usr/lib/ruby/1.8/puppet/application.rb:222:in `new'
> from /usr/lib/ruby/1.8/puppet/application.rb:222:in `[]'
> from /usr/sbin/puppetd:4
>
> puppet.mydomain.com resolves to both an IPv4 and IPv6 address.
>
> I have tried everything I can think about, but it seems like I cannot
> get the client host to connect through IPv4 when the dns name resolves
> to both a IPv4 and IPv6 address.
It looks to me like the client cannot resolve its own name, or perhaps
can't reverse-resolve its own IP(v4) address. Try running 'hostname --
fqdn' from the command line: if I'm right, it will fail.
If indeed the client cannot resolve its own name, then the solution
depends on your resolver configuration. Adding the approrpiate entry
to /etc/hosts will often do the trick, but the resolver can be
configured to ignore that file.
!=== end included text
So anyway, I was thinking those questions might make nice candidates for an addition to the FAQ for 1.0R1.1
Cheers,
Elle Janet Plato