[rudder-users] Rudder agent is not able to contact its server

Nicolas Perron nicolas.perron at normation.com
Fri Oct 5 16:30:32 CEST 2012


> Hello rudder community,
>
>
> I can not deploy a rules, i have always no answer
>
> Hier are the details
> Rudder is insttaled in debian squeeze, 
>
> Rudder version (server&client is 2.4)
>
> Hier is server message:
>
>
> # /var/rudder/cfengine-community/bin/cf-serverd --no-fork -vcf3> Cfengine
> - autonomous configuration engine - commence self-diagnostic prelude
> cf3>
> ------------------------------------------------------------------------
> cf3> Work directory is /var/rudder/cfengine-community
> cf3> Making sure that locks are private...
> cf3> Checking integrity of the state database
> cf3> Checking integrity of the module directory
> cf3> Checking integrity of the PKI directory
> cf3> Looking for a source of entropy in
> /var/rudder/cfengine-community/randseed
> cf3>  -> Loaded private key
> /var/rudder/cfengine-community/ppkeys/localhost.priv
> cf3>  -> Loaded public key
> /var/rudder/cfengine-community/ppkeys/localhost.pub
> cf3> Setting cfengine default port to 5308 = 5308
> cf3> Reference time set to Fri Oct  5 15:24:54 2012
> cf3> CFEngine Core 3.2.4
> cf3>
> ------------------------------------------------------------------------
> cf3> Host name is: rudder
> cf3> Operating System Type is linux
> cf3> Operating System Release is 2.6.32-5-amd64
> cf3> Architecture = x86_64
> cf3> Using internal soft-class linux for host rudder
> cf3> The time is now Fri Oct  5 15:24:54 2012
> cf3>
> ------------------------------------------------------------------------
> cf3> # Extended system discovery is only available in version Nova and
> above
> cf3> Additional hard class defined as: 64_bit
> cf3> Additional hard class defined as: linux_2_6_32_5_amd64
> cf3> Additional hard class defined as: linux_x86_64
> cf3> Additional hard class defined as: linux_x86_64_2_6_32_5_amd64
> cf3> GNU autoconf class from compile time: compiled_on_linux_gnu
> cf3> Address given by nameserver: 172.16.20.52
> cf3> Interface 1: lo
> cf3> Interface 2: eth0
> cf3> Adding alias rudder..
> cf3> Trying to locate my IPv6 address
> cf3> Looking for environment from cf-monitord...
> cf3> Unable to detect environment from cf-monitord
> cf3> This appears to be a debian system.
> cf3> Looking for Debian version...
> cf3> This appears to be a Debian 6.0 system.
> cf3> This system seems to have the aptitude package system
> cf3> ***********************************************************
> cf3>  Loading persistent classes
> cf3> ***********************************************************
> cf3>  Persistent class site_ok for 1 more minutes
> cf3>  Adding persistent class site_ok to heap
> cf3> ***********************************************************
> cf3>  Loaded persistent memory
> cf3> ***********************************************************
> cf3>  -> Found a policy server (hub) on 127.0.0.1
> cf3>  -> Policy is already validated
> cf3>   > Parsing file /var/rudder/cfengine-community/inputs/promises.cf
> cf3> Initiate variable convergence...
> cf3>  -> Checking common class promises...
> cf3>  ?> defining additional global class policy_server
> cf3>  ?> defining additional global class root_server
> cf3>  -> Checking common class promises...
> rudder>   > Parsing file
> /var/rudder/cfengine-community/inputs/common/1.0/cf-served.cf
> rudder> Initiate variable convergence...
> rudder>  -> Checking common class promises...
> rudder>  -> Checking common class promises...
> rudder> Unable to lookup hostname (lxldapagricollt1.eduter.local) or
> cfengine service: Name or service not known
> rudder> Unable to lookup hostname (lxldaptest) or cfengine service: Name
> or service not known
>
>
> And Rudder agent:
>
>
>
>
>
>  !! Duplicate selection of value for variable "execRun" in scope g
>  !! Rule from /var/rudder/cfengine-community/inputs/common/1.0/site.cf
> at/before line 58
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Password prompt: ENTER
>
> psql: fe_sendauth: no password supplied
> curl: (22) The requested URL returned error: 405
>  !! Duplicate selection of value for variable "execRun" in scope g
>  !! Rule from /var/rudder/cfengine-community/inputs/common/1.0/site.cf
> at/before line 58
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
> Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
> service: Name or service not known
>  >> Using command line specified bundlesequence
>  !! Error connecting to server (timeout)
>  !!! System error for connect: "Operation now in progress"
>  !! No server is responding on this port
> Unable to establish connection with 172.16.20.52
>  -> No suitable server responded to hail
> Promise (version not specified) belongs to bundle 'update' in file
> '/var/rudder/cfengine-community/inputs/common/1.0/update.cf' near line 88
>  !! Error connecting to server (timeout)
>  !!! System error for connect: "Operation now in progress"
>  !! No server is responding on this port
> Unable to establish connection with 172.16.20.52
>  -> No suitable server responded to hail
> Promise (version not specified) belongs to bundle 'update' in file
> '/var/rudder/cfengine-community/inputs/common/1.0/update.cf' near line 95
> R:
> @@Common@@result_error@@hasPolicyServer-root@@common-root@@00@@Update@@None@@2012-10-05
> 15:28:03+02:00##e01fdc2b-1a66-43e0-a9ea-5b27ebd442e2@#Cannot update node's
> policy (CFEngine promises)
> R: @@Common@@result_error@@hasPolicyServer-r
>

Hello Khalid,

I have created a new thread since the problem that you describe does not
seem to be related to the thread where you were posting.

I'm not sure about your problem but here are some thoughts:

  * About the agent:
      o The output about /%%POLICY_SERVER_HOSTNAME%%// / is "normal"
        since a bug has been fixed recently
        (http://www.rudder-project.org/redmine/issues/2729).

      o The messages will disappear when your node will be connected to
        its server !

  * About the server:
      o I could be wrong but it seems that the output of cf-serverd is
        splitted in two. Here is what seems to be linked with your problem:
          + As far as I can see, your server has some problems with its DNS:
              #

                rudder> Unable to lookup hostname (lxldapagricollt1.eduter.local) or
                cfengine service: Name or service not known

          + You will need to have a working DNS to use Rudder (or a
            least, to test, define nodes and server in the */etc/hosts*
            file).

      o The authorized IP in Rudder could not match the subnet of your node:
          +

            Unable to establish connection with 172.16.20.52

          + I can't be sure about that because we have to see the output
            of *cf-serverd* on the server-side at the same time.


Could you check that:

  * the authorized network match the subnet of your node ? (In Rudder
    WebUI: Administration => Policy Server => Configure allowed networks)
  * your DNS works on your server and your nodes ? or Set your
    */etc/hosts* file with the IP corresponding to them.

And be aware that we have an IRC Channel: *#rudder* on *freenode.net*
where we will be glad to help you !


Thanks

-- 
==========================================
Nicolas PERRON
------------------------------------------
Normation
87 rue de Turbigo, 75003 Paris, France
------------------------------------------
Telephone:  +33 (0)1 83 62 56 79
Mobile:     +33 (0)6 24 79 31 79
------------------------------------------
Web:        http://www.normation.com/
==========================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20121005/d23039b9/attachment-0001.html>


More information about the rudder-users mailing list