Fix openstack logging issues for debug, use stderr for default logging

- There are stdout logging related bugs exist in openstack services, thus
  as a workaround, stderr logging should be used for non syslog mode (option 1)
- Log config for stdout logging provided as well but now configured to be used
- Because of some issues with logdir/log_dir logfile/log_file typos, use both

TODO fix init scripts to redirect stderr to logfiles and
to not use explicit logfile/logdir/logconfig in daemon launch string

Implements (partially): #FUEL-835, Option 1

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>

Conflicts:
	deployment/puppet/quantum/manifests/init.pp

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Move debug/verbose above syslog section to evaluate it the right way

...If below, logging class would get $::debug option undef from top scope

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix openstack logging issues for debug, use stdout for default logging

- Log config for stdout logging provided as well but now configured to be used
- Because of some issues with logdir/log_dir logfile/log_file typos, use both

TODO fix init scripts for quantum & agents to redirect stderr to logfiles and
to not use explicit logfile/logdir/logconfig in daemon launch string

Implements (partially): #FUEL-835, Option 2

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>

Conflicts:
	deployment/puppet/quantum/files/ocf/quantum-agent-l3
	deployment/puppet/quantum/manifests/init.pp

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Use traditional timestamps, keep rotated files for 4 weeks at master

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Undo powerfull stderr debug for quantum

Cannot use stderr unless quantum & agents would
redirect their init & ocf output to stderr

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Ensure log_file is absent, if it should be, and log_dir is set for debug

To ensure services would use separate files for debug, log(_)dir options
should be used explicitly (except glance which have diff configs for api & registry)

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Dirty hack for quantum init scripts

Explicit --log-config option for daemon overrides config file options
and breaks logging (no logging configs should be used for quantum
because of message loss bug)

Poor workaround for #FUEL-842

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix exec, comments and rsyslog imfile templates for quantum

Workaround for #FUEL-843

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix rsyslog templates to honour rfc3164 & rfc5424 for all logs

Refactor templates to honour message formats

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix title to notify cinder services

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Syslog message format fuelweb compatibility fixes

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>

Conflicts:
	deployment/puppet/cinder/templates/logging.conf.erb
	deployment/puppet/glance/templates/logging.conf.erb
	deployment/puppet/keystone/templates/logging.conf.erb
	deployment/puppet/nova/templates/logging.conf.erb
	deployment/puppet/quantum/templates/logging.conf.erb

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Add openstack logging client to replace rsyslog::client

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix verbose, debug, syslog facilities and level

Those options should be passed to openstack & swift classes
to control debug/verbose mode and syslog settings as well

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix global scoped references for vars from site.pp

Fuel-lib's vars from top scope (site.pp) aren't top scoped
at fuel-web, thus, need to be passed to classes via its own vars

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Add verbose, debug, log_level for swift classes

Templates should not use global scoped params, thus, had fixed

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix logging class at bootstrab to rfc3339 timestamps

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix missing debug for logging class

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix missing debug for logging class at examples

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>

Conflicts:
	deployment/puppet/osnailyfacter/manifests/cluster_ha.pp
	deployment/puppet/osnailyfacter/manifests/cluster_simple.pp

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix syslog facilities for compute classes for naily

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix missed debug for nova controller

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>