[rudder-users] Bad timestam on rudder-server-root

Prestasit01 prestasit01 at ouest-france.fr
Fri Mar 21 12:39:13 CET 2014


Hello !

Issue resolved :)

Solution : add the servername and the url used on the /etc/hosts after 127.0.0.1

Now we have the inventory & the correct date !

thanks Vincent

BR

Cédric


De : Vincent Membré [mailto:vincent.membre at normation.com]
Envoyé : vendredi 21 mars 2014 12:07
À : Prestasit01; 'Nicolas Charles'
Cc : rudder-users at lists.rudder-project.org
Objet : Re: [rudder-users] Bad timestam on rudder-server-root

Hello,

The value used in here is not the one in /var/rudder/cfengine-community.dat

But it uses the value you entered as server hostname when you ran /opt/rudder/bin/rudder-init.sh

The value you used is : rudder.domain.fr

And it seems that your server is not resolving it as 127.0.0.1 (check /etc/hosts) and send the inventory to another server ( replacing values on the "root" inventory on that server )

Le 21/03/2014 11:04, Prestasit01 a écrit :
Hello,

We have many rudder server (for test and they are not linked together) BUT this is the one used in prod.

Info can't be sent to another because of :

cat /var/rudder/cfengine-community/policy_server.dat
127.0.0.1

So normally it must sent his information to himself. (selinux is disabled and there is no iptables)

It's the first time i encounter this problem.

BR

Cedric


De : Vincent Membré [mailto:vincent.membre at normation.com]
Envoyé : vendredi 21 mars 2014 10:35
À : Prestasit01; 'Nicolas Charles'
Cc : rudder-users at lists.rudder-project.org<mailto:rudder-users at lists.rudder-project.org>
Objet : Re: [rudder-users] Bad timestam on rudder-server-root

Hello Cédric,

I don't see in your agent run, the server sending it's inventory with send clean.sh ( 2nd step described by Nicolas ).

You should get some lines in cf-agent telling you:



R: @@DistributePolicy@@result_success@@root-DP@@root-distributePolicy@@41@@Check WebDAV credentials@@None@@2014-03-21 10:22:36+01:00##root@#The Rudder WebDAV user and password are OK

I: Transforming: /var/rudder/tools/send-clean.sh http://localhost:8080/endpoint/upload/ /var/rudder/inventories/accepted-nodes-updates/myserver-2012-07-31-00-30-31.ocs /var/rudder/inventories/received/

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  124k  100    55  100  124k    124   281k --:--:-- --:--:-- --:--:--  282k

Report correctly received and sent to report processor.

-> Transformer /var/rudder/inventories/accepted-nodes-updates/myserver-2012-07-31-00-30-31.ocs => /var/rudder/tools/send-clean.sh http://localhost:8080/endpoint/upload/ /var/rudder/inventories/accepted-nodes-updates/myserver-2012-07-31-00-30-31.ocs /var/rudder/inventories/received/ seemed to work ok

R: @@DistributePolicy@@result_success@@root-DP@@root-distributePolicy@@41@@Send inventories to CMDB@@None@@2014-03-21 10:22:36+01:00##root@#Incoming inventories were successfully added to Rudder

but you only got:

R: @@DistributePolicy@@result_success@@root-DP@@root-distributePolicy@@35@@Check WebDAV credentials@@None@@2014-03-20 17:35:13+01:00##root@#The Rudder WebDAV user and password are OK

R: @@DistributePolicy@@result_success@@root-DP@@root-distributePolicy@@35@@Send inventories to CMDB@@None@@2014-03-20 17:35:13+01:00##root@#Incoming inventories were successfully added to Rudder

Have you got multiple servers?

We can also see from your logs that the inventory was correctly sent

I: Transforming: /usr/bin/curl -f -s --proxy '' --user rudder:rudder -T /var/rudder/inventories/SERVERPROD.domain.fr-2014-02-12-14-23-20.ocs  http://rudder.domain.fr/inventory-updates/

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>201 Created</title>

</head><body>

<h1>Created</h1>

<p>Resource /inventory-updates/SERVERPROD.domain.fr-2014-02-12-14-23-20.ocs has been created.</p>

<hr />

<address>Apache/2.2.15 (CentOS) Server at rudder.domain.fr Port 80</address>

</body></html>

And as we never see it pass in webapp logs, i supose it is missing on your server and was send to another machine.



Le 21/03/2014 10:14, Prestasit01 a écrit :
Hello Nicolas,

There is no inventory for the root-server : No matching components detected on this node

[2014-03-20 16:34:18] INFO  net.liftweb.http.CometActor - The CometActor com.normation.rudder.web.comet.WorkflowInformation at 5d8da3e6<mailto:com.normation.rudder.web.comet.WorkflowInformation at 5d8da3e6> Received Shutdown
[2014-03-20 18:20:54] INFO  com.normation.rudder.services.servers.NodeConfigurationChangeDetectServiceImpl - Checking changes in node 95ddbe5a-560c-4453-87d7-dc3d6530c4df

There is no information between theses hours :(.

Cédric

De : Nicolas Charles [mailto:nicolas.charles at normation.com]
Envoyé : vendredi 21 mars 2014 09:03
À : Prestasit01; "Vincent Membré (vincent.membre at normation.com<mailto:vincent.membre at normation.com>)"
Cc : rudder-users at lists.rudder-project.org<mailto:rudder-users at lists.rudder-project.org>
Objet : Re: [rudder-users] Bad timestam on rudder-server-root

Hello Cédric,

Does the Inventory appears in the web interface (do you have details on the inventory of the server root) ?
If not, there may be something going on, that does not appear in this log.

The inventory is sent in to step:
1- the agent generate it, and send it to a folder on the policy server
2 - the agent on the policy server runs and send all the inventories to the Rudder endpoint, where it is processed

Do you have any error in the log /var/log/rudder/webapp/2014_03_20.stderrout.log , around 17:35 - 17:45 ?

Best regards,
Nicolas

On 20/03/2014 18:30, Prestasit01 wrote:
Hello,

I got a date issue :  When i check the node details of my rudder-server-root (on the web interface), It's mentionned :

Rudder information
Role: Rudder root server
Inventory date: 1969-12-31 23:00
Date inventory last received: 1969-12-31 23:00
Date first accepted in Rudder: 2014-02-12 14:23

Rules are well applied on the root server, and the OS date seems ok :

[root at SERVERPROD tmp]# date
jeu. mars 20 18:17:32 CET 2014

I tried to launch : /var/rudder/cfengine-community/bin/cf-agent -KID force_inventory
But there is no error (log in attachment)

I tried to restart the whole server (os+soft) but it don't change anything.

Any idea ???

BR

Cédric
-------------------------------------------------------------------------
Les informations ou pieces jointes contenues dans ce message sont confidentielles. Seul le destinataire expressement vise peut en prendre connaissance. Toute autre personne qui en divulguera, diffusera ou prendra des copies sera passible de poursuites. La societe Ouest-France decline en outre, toute responsabilite de quelque nature que ce soit au titre de ce message s'il a ete altere, deforme ou falsifie.





_______________________________________________

rudder-users mailing list

rudder-users at lists.rudder-project.org<mailto:rudder-users at lists.rudder-project.org>

http://www.rudder-project.org/mailman/listinfo/rudder-users






--

Nicolas CHARLES
-------------------------------------------------------------------------
Les informations ou pieces jointes contenues dans ce message sont confidentielles. Seul le destinataire expressement vise peut en prendre connaissance. Toute autre personne qui en divulguera, diffusera ou prendra des copies sera passible de poursuites. La societe Ouest-France decline en outre, toute responsabilite de quelque nature que ce soit au titre de ce message s'il a ete altere, deforme ou falsifie.

--
________________________________

[cid:image001.png at 01CF4502.906E42B0]Vincent Membré
Ingénieur R&D
Normation<http://www.normation.com>

________________________________

87 rue de Turbigo, 75003 Paris, France

Telephone:

+33 (0)1 84 16 06 00

Mobile:

+33 (0)6 10 14 76 78

________________________________


-------------------------------------------------------------------------
Les informations ou pieces jointes contenues dans ce message sont confidentielles. Seul le destinataire expressement vise peut en prendre connaissance. Toute autre personne qui en divulguera, diffusera ou prendra des copies sera passible de poursuites. La societe Ouest-France decline en outre, toute responsabilite de quelque nature que ce soit au titre de ce message s'il a ete altere, deforme ou falsifie.

--
________________________________

[cid:image003.png at 01CF4502.906E42B0]Vincent Membré
Ingénieur R&D
Normation<http://www.normation.com>

________________________________

87 rue de Turbigo, 75003 Paris, France

Telephone:

+33 (0)1 84 16 06 00

Mobile:

+33 (0)6 10 14 76 78

________________________________



-------------------------------------------------------------------------<br>
Les informations ou pieces jointes contenues dans ce message sont
confidentielles. Seul le destinataire expressement vise peut en prendre
connaissance. Toute autre personne qui en divulguera, diffusera ou prendra des copies sera passible de poursuites. La societe Ouest-France decline en outre, toute responsabilite de quelque nature que ce soit au titre de ce message s'il a ete altere, deforme ou falsifie.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20140321/350feacb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4103 bytes
Desc: image001.png
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20140321/350feacb/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3503 bytes
Desc: image002.png
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20140321/350feacb/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 4103 bytes
Desc: image003.png
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20140321/350feacb/attachment-0005.png>


More information about the rudder-users mailing list