Project

General

Custom queries

Profile

Actions

Bug #6405

closed

Server roles overwritten regularly for unknown reason

Added by Lionel Le Folgoc over 10 years ago. Updated over 5 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
#1

Updated by Nicolas CHARLES over 10 years ago

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

Updated by Lionel Le Folgoc over 10 years ago

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

Updated by Nicolas CHARLES over 10 years ago

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

Updated by François ARMAND over 10 years ago

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

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.11.9 to 2.11.10
#9

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.11.10 to 2.11.11
#10

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.11.11 to 2.11.12
#11

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.12 to 2.11.13
#12

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.13 to 2.11.14
#13

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.11.14 to 2.11.15
#14

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.15 to 2.11.16
#15

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.16 to 2.11.17
#16

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.17 to 2.11.18
#17

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.18 to 2.11.19
#18

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.11.19 to 2.11.20
#19

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.11.20 to 2.11.21
#20

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.11.21 to 2.11.22
#21

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.11.22 to 2.11.23
#22

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.11.23 to 2.11.24
#23

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.11.24 to 308
#24

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 308 to 3.1.14
#25

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.14 to 3.1.15
#26

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.15 to 3.1.16
#27

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.16 to 3.1.17
#28

Updated by François ARMAND over 8 years ago

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

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.17 to 3.1.18
#30

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.18 to 3.1.19
#31

Updated by Benoît PECCATTE over 8 years ago

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

Updated by Jonathan CLARKE over 8 years ago

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

Updated by Benoît PECCATTE about 8 years ago

  • Priority set to 14
#34

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.19 to 3.1.20
#35

Updated by Jonathan CLARKE about 8 years ago

  • Status changed from Discussion to New
#36

Updated by Jonathan CLARKE about 8 years ago

  • Assignee deleted (Lionel Le Folgoc)
#37

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.20 to 3.1.21
#38

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.21 to 3.1.22
#39

Updated by Benoît PECCATTE almost 8 years ago

  • Priority changed from 14 to 27
#40

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.22 to 3.1.23
#41

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.23 to 3.1.24
#42

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.24 to 3.1.25
#43

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.25 to 387
#44

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 387 to 4.1.10
#45

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.10 to 4.1.11
#46

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.1.11 to 4.1.12
#47

Updated by Vincent MEMBRÉ about 7 years ago

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

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.1.13 to 4.1.14
#49

Updated by Benoît PECCATTE almost 7 years ago

  • Target version changed from 4.1.14 to 4.1.15
#50

Updated by Vincent MEMBRÉ over 6 years ago

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

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.16 to 4.1.17
#52

Updated by Vincent MEMBRÉ over 6 years ago

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

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.18 to 4.1.19
#54

Updated by Alexis Mousset over 6 years ago

  • Target version changed from 4.1.19 to 4.1.20
#55

Updated by François ARMAND over 6 years ago

  • Target version changed from 4.1.20 to 4.1.21
#56

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.21 to 4.1.22
#57

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.22 to 4.1.23
#58

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.23 to 4.1.24
#59

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 4.1.24 to 588
#60

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 588 to 5.0.13
#61

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 5.0.13 to 5.0.14
#62

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.14 to 5.0.15
#63

Updated by François ARMAND over 5 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF