Project

General

Profile

Actions

Bug #6405

closed

Server roles overwritten regularly for unknown reason

Bug #6405: Server roles overwritten regularly for unknown reason

Added by Lionel Le Folgoc almost 11 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
1 (highest)
Assignee:
-
Category:
Server components
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Hi,

In a multiserver setup, the server roles are overwritten with data loss at some regular (?) interval.

Here's an excerpt of the script I use to init the rudderweb instance, based on the one from rudder-tools git repo:

## Inform Rudder about the various roles so installation can proceed successfully
mkdir -p /var/rudder/cfengine-community/inputs
cat >/var/rudder/cfengine-community/inputs/rudder-server-roles.conf <<EOF
rudder-ldap:rudderldap01
rudder-inventory-endpoint:rudderldap01
rudder-db:rudderdb
rudder-front:rudderrelaytop01
rudder-relay-top:rudderrelaytop01
rudder-webapp:rudderweb
rudder-web:rudderweb
EOF

## Install components
yum install -y rudder-agent rudder-webapp rudder-techniques rsyslog rsyslog-pgsql httpd httpd-tools

## Give more RAM to jetty
#<snip>

## Init DB (/opt/rudder/etc/postgresql/reportsSchema.sql from rudder-reports-3.0.2.release-1.EL.6.noarch)
#<snip, this performs the init our rds instance, set the proper psql password in the conf, etc>

## Initialize the server: hostname, demodata?, ldapreset?, initialpromisesreset?, allowednet
sed -i '/^Pause$/d' /opt/rudder/bin/rudder-init # ensure that it won't hang waiting for user input
/opt/rudder/bin/rudder-init yes <our networks>

After that, rudder seems to work fine for some time, at least the UI. But at some point we can't get any report.

Indeed, because /etc/rsyslog.d/rudder.conf contains:

:ompgsql:localhost,rudder,rudder,password;RudderReportsFormat

localhost instead of rudderdb!
rudder.jdbc.* keys in /opt/rudder/etc/rudder-web-properties have the proper values.

Now, if I look at /var/rudder/cfengine-community/inputs/rudder-server-roles.conf, it has been overwritten by something:

# This file contains, for each role, the list of nodes that have this role
# These roles are auto-detected by default, based on inventories of nodes that have role files in /opt/rudder/etc/server-roles.d/
# Format is the following
# role:hostname1,hostname2,hostname3
rudder-ldap:rudderldap01
rudder-inventory-endpoint:rudderldap01
rudder-relay-top:rudderrelaytop01

rudderdb is gone!

If I put it back and run cf-agent, then the rsyslog config is ok.

However, it's somehow overwritten again at some point, because I restored the proper value yesterday evening, and this morning it's broken again.

Thanks.


Related issues 2 (0 open2 closed)

Related to Rudder - User story #6411: Documentation doesn't explain how to configure Rudder in case of splitted arch, when the DB is on Amazon RDSRejectedActions
Related to Rudder - Architecture #8463: Server roles is a BIG mess causing inconsistencies and bugsRejectedActions

Updated by Nicolas CHARLES almost 11 years ago Actions #1

  • Category set to Server components
  • Status changed from New to Discussion
  • Assignee set to Lionel Le Folgoc

Hello Lionel,

I have several questions for you:
- which version of Rudder do you use ?
- in the file /opt/rudder/etc/rudder-web-properties, you can define roles there. Which role did you define ?
- do you have the package rudder-db installed on the serveur with the web interface ? if so, that may be the cause of your issue, as a new inventory is generated and reconfigure the roles

Updated by Lionel Le Folgoc almost 11 years ago Actions #2

  • Category deleted (Server components)
  • Status changed from Discussion to New
  • Assignee deleted (Lionel Le Folgoc)

Hi,

- Rudder 3.0.2

- See https://github.com/Normation/rudder-tools/blob/master/scripts/rudder-multiserver-setup/rudder-web.sh#L10 and http://www.rudder-project.org/rudder-doc-3.0/rudder-doc.html#multiserver-rudder, there's no mention of this file to set the roles...

- Nope: rudder-agent rudder-webapp rudder-techniques rsyslog rsyslog-pgsql httpd httpd-tools

But I guess the scripts and the documentation are incorrect and it'll work fine once I edit /opt/rudder/etc/rudder-web.properties. =)

Updated by Lionel Le Folgoc almost 11 years ago Actions #3

# ll /opt/rudder/etc/server-roles.d/
total 0
-rw-r--r-- 1 root root 0 Mar  9 16:06 rudder-jetty
-rw-r--r-- 1 root root 0 Mar  9 16:24 rudder-webapp

so if there's "rudder.server-roles.db=autodetect" in /opt/rudder/etc/rudder-web.properties it will put localhost as db server even when the localhost has not the db role...

Updated by Nicolas CHARLES almost 11 years ago Actions #4

  • Category set to Server components
  • Status changed from New to Discussion
  • Assignee set to Lionel Le Folgoc

"rudder.server-roles.db=autodetect" should be the right value

could you check, on the node with the rudder-db role, that you indeed have the file rudder-db in /opt/rudder/etc/server-roles.d ?

Just to be sure, it used to work correctly, and you have problems since the upgrade ?

Updated by Lionel Le Folgoc almost 11 years ago Actions #5

The db is on amazon rds, so I can't really set the role, so rudder does not "know" rudderdb. I guess this is why autodetection fails. So I think in this case forcing "rudder.server-roles.db=rudderdb" will make it work.

Updated by Nicolas CHARLES almost 11 years ago Actions #6

Indeed, if you don't have a node with the rudder-db role, you'll have to specifically define that the rudder-db is on a specific node in the rudder.server-roles.db value

Updated by François ARMAND almost 11 years ago Actions #7

  • Priority changed from N/A to 1 (highest)
  • Target version set to 2.11.9

Lionel,

Did changing the property in /opt/rudder/etc/rudder-web.properties make the role OK ?

If so, can I rename that ticket to: "Mis-documentation on server role configuration make them be regularly overwritten" so that we correct the documentation to handle your use case ?

Updated by Vincent MEMBRÉ almost 11 years ago Actions #8

  • Target version changed from 2.11.9 to 2.11.10

Updated by Vincent MEMBRÉ almost 11 years ago Actions #9

  • Target version changed from 2.11.10 to 2.11.11

Updated by Vincent MEMBRÉ almost 11 years ago Actions #10

  • Target version changed from 2.11.11 to 2.11.12

Updated by Vincent MEMBRÉ over 10 years ago Actions #11

  • Target version changed from 2.11.12 to 2.11.13

Updated by Vincent MEMBRÉ over 10 years ago Actions #12

  • Target version changed from 2.11.13 to 2.11.14

Updated by Vincent MEMBRÉ over 10 years ago Actions #13

  • Target version changed from 2.11.14 to 2.11.15

Updated by Vincent MEMBRÉ over 10 years ago Actions #14

  • Target version changed from 2.11.15 to 2.11.16

Updated by Vincent MEMBRÉ over 10 years ago Actions #15

  • Target version changed from 2.11.16 to 2.11.17

Updated by Vincent MEMBRÉ about 10 years ago Actions #16

  • Target version changed from 2.11.17 to 2.11.18

Updated by Vincent MEMBRÉ about 10 years ago Actions #17

  • Target version changed from 2.11.18 to 2.11.19

Updated by Vincent MEMBRÉ almost 10 years ago Actions #18

  • Target version changed from 2.11.19 to 2.11.20

Updated by Vincent MEMBRÉ almost 10 years ago Actions #19

  • Target version changed from 2.11.20 to 2.11.21

Updated by Vincent MEMBRÉ over 9 years ago Actions #20

  • Target version changed from 2.11.21 to 2.11.22

Updated by Vincent MEMBRÉ over 9 years ago Actions #21

  • Target version changed from 2.11.22 to 2.11.23

Updated by Vincent MEMBRÉ over 9 years ago Actions #22

  • Target version changed from 2.11.23 to 2.11.24

Updated by Vincent MEMBRÉ over 9 years ago Actions #23

  • Target version changed from 2.11.24 to 308

Updated by Vincent MEMBRÉ over 9 years ago Actions #24

  • Target version changed from 308 to 3.1.14

Updated by Vincent MEMBRÉ over 9 years ago Actions #25

  • Target version changed from 3.1.14 to 3.1.15

Updated by Vincent MEMBRÉ over 9 years ago Actions #26

  • Target version changed from 3.1.15 to 3.1.16

Updated by Vincent MEMBRÉ over 9 years ago Actions #27

  • Target version changed from 3.1.16 to 3.1.17

Updated by François ARMAND over 9 years ago Actions #28

  • Related to Architecture #8463: Server roles is a BIG mess causing inconsistencies and bugs added

Updated by Vincent MEMBRÉ about 9 years ago Actions #29

  • Target version changed from 3.1.17 to 3.1.18

Updated by Vincent MEMBRÉ about 9 years ago Actions #30

  • Target version changed from 3.1.18 to 3.1.19

Updated by Benoît PECCATTE almost 9 years ago Actions #31

  • Subject changed from Server roles overwritten regurlarly for unknown reason to Server roles overwritten regularly for unknown reason

Updated by Jonathan CLARKE almost 9 years ago Actions #32

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings

Updated by Benoît PECCATTE almost 9 years ago Actions #33

  • Priority set to 14

Updated by Vincent MEMBRÉ almost 9 years ago Actions #34

  • Target version changed from 3.1.19 to 3.1.20

Updated by Jonathan CLARKE almost 9 years ago Actions #35

  • Status changed from Discussion to New

Updated by Jonathan CLARKE almost 9 years ago Actions #36

  • Assignee deleted (Lionel Le Folgoc)

Updated by Vincent MEMBRÉ almost 9 years ago Actions #37

  • Target version changed from 3.1.20 to 3.1.21

Updated by Vincent MEMBRÉ over 8 years ago Actions #38

  • Target version changed from 3.1.21 to 3.1.22

Updated by Benoît PECCATTE over 8 years ago Actions #39

  • Priority changed from 14 to 27

Updated by Vincent MEMBRÉ over 8 years ago Actions #40

  • Target version changed from 3.1.22 to 3.1.23

Updated by Vincent MEMBRÉ over 8 years ago Actions #41

  • Target version changed from 3.1.23 to 3.1.24

Updated by Vincent MEMBRÉ over 8 years ago Actions #42

  • Target version changed from 3.1.24 to 3.1.25

Updated by Vincent MEMBRÉ about 8 years ago Actions #43

  • Target version changed from 3.1.25 to 387

Updated by Vincent MEMBRÉ about 8 years ago Actions #44

  • Target version changed from 387 to 4.1.10

Updated by Vincent MEMBRÉ almost 8 years ago Actions #45

  • Target version changed from 4.1.10 to 4.1.11

Updated by Vincent MEMBRÉ almost 8 years ago Actions #46

  • Target version changed from 4.1.11 to 4.1.12

Updated by Vincent MEMBRÉ almost 8 years ago Actions #47

  • Target version changed from 4.1.12 to 4.1.13
  • Priority changed from 27 to 28

Updated by Vincent MEMBRÉ over 7 years ago Actions #48

  • Target version changed from 4.1.13 to 4.1.14

Updated by Benoît PECCATTE over 7 years ago Actions #49

  • Target version changed from 4.1.14 to 4.1.15

Updated by Vincent MEMBRÉ over 7 years ago Actions #50

  • Target version changed from 4.1.15 to 4.1.16
  • Priority changed from 28 to 29

Updated by Vincent MEMBRÉ over 7 years ago Actions #51

  • Target version changed from 4.1.16 to 4.1.17

Updated by Vincent MEMBRÉ about 7 years ago Actions #52

  • Target version changed from 4.1.17 to 4.1.18
  • Priority changed from 29 to 0

Updated by Vincent MEMBRÉ about 7 years ago Actions #53

  • Target version changed from 4.1.18 to 4.1.19

Updated by Alexis Mousset about 7 years ago Actions #54

  • Target version changed from 4.1.19 to 4.1.20

Updated by François ARMAND almost 7 years ago Actions #55

  • Target version changed from 4.1.20 to 4.1.21

Updated by Vincent MEMBRÉ almost 7 years ago Actions #56

  • Target version changed from 4.1.21 to 4.1.22

Updated by Vincent MEMBRÉ almost 7 years ago Actions #57

  • Target version changed from 4.1.22 to 4.1.23

Updated by Vincent MEMBRÉ almost 7 years ago Actions #58

  • Target version changed from 4.1.23 to 4.1.24

Updated by Vincent MEMBRÉ over 6 years ago Actions #59

  • Target version changed from 4.1.24 to 588

Updated by Vincent MEMBRÉ over 6 years ago Actions #60

  • Target version changed from 588 to 5.0.13

Updated by Vincent MEMBRÉ over 6 years ago Actions #61

  • Target version changed from 5.0.13 to 5.0.14

Updated by Vincent MEMBRÉ over 6 years ago Actions #62

  • Target version changed from 5.0.14 to 5.0.15

Updated by François ARMAND over 6 years ago Actions #63

  • Status changed from New to Rejected

We are not allowing split installation in Rudder 6.0 as described here, I'm closing that ticket.

Updated by Benoît PECCATTE over 6 years ago Actions #64

We still allow separate DB installs.
But we removed rudder-init support.

Actions

Also available in: PDF Atom