openshift / puppet-openshift_origin

Puppet module to create OpenShift Brokers and Nodes. Can be used to create a full OpenShift Origin deployment.
http://forge.puppetlabs.com/openshift/openshift_origin
Other
45 stars 128 forks source link

Add syslog configuration #378

Closed Filirom1 closed 9 years ago

Filirom1 commented 9 years ago

Hi,

I wrote the puppet parts corresponding to this blog post https://blog.openshift.com/central-log-management-openshift-enterprise/ to send OpenShift logs to a central rsyslog server.

The following logs are forwarded:

BSN (mongodb, activemq) is not supported. Mongodb configuration is quite tricky to change.

I focused on OpenShift Enterprise 2.2, because the package rsyslog7-mmopenshift is not available on OpenShift Origin.

Cheers

sdodson commented 9 years ago

Looks good, do you mind putting a link to the blog post in the README.ascii and init.pp? Sorry about the duplication between the two.

Filirom1 commented 9 years ago

Done ;-)

sdodson commented 9 years ago

[test]

openshift-bot commented 9 years ago

Origin Test Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests/3247/)

Filirom1 commented 9 years ago

Do you have any idea why it failed ?

sdodson commented 9 years ago

Looks like perhaps we're affecting gear logging by default? The first failure I see is this

{"api_version":1.7,"data":null,"messages":[{"exit_code":157,"field":null,"index":null,"severity":"debug","text":"\n"},{"exit_code":157,"field":null,"index":null,"severity":"warning","text":"Starting MySQL 5.1 cartridge\nMySQL server failed to start:\n"},{"exit_code":157,"field":null,"index":null,"severity":"result","text":"\nMySQL 5.1 database added. Please make note of these credentials:\n\n Root User: admindaH4j28\n Root Password: IZVysiMwN3BU\n Database Name: app\n\nConnection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/\n\nYou can manage your new MySQL database by also embedding phpmyadmin.\nThe phpmyadmin username and password will be the same as the MySQL credentials above.\n"},{"exit_code":157,"field":null,"index":null,"severity":"error","text":"Failed to execute: 'control start' for /var/lib/openshift/54ae9b473d77ceee89000010/mysql\ncat: /var/lib/openshift/54ae9b473d77ceee89000010/app-root/logs//mysql.log: No such file or directory\n"}],"status":"unprocessable_entity","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7],"type":null,"version":"1.7"}

sdodson commented 9 years ago

[test]

openshift-bot commented 9 years ago

Evaluated for origin up to a79d2b953516aa4b710d23467232f2c02eb9369a

Filirom1 commented 9 years ago

Its worked, thanks ! :beers:

sdodson commented 9 years ago

:+1: