floating ip range unit tests
nova floating debug
Merge pull request #499 from Zipfer/floating_ip

Floating ip range unit tests
Merge pull request #361 from bogdando/fix_alllogs

Fix alllogs
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 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>
Fix logging class at bootstrab to rfc3339 timestamps

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix verbose/debug/syslog options

- Debug option should be passed to openstack::logging class
- Verbose & debug options must be configured at site.pp and cluster_*.pp as well.
- Debug == verbose == false is normal case
  (syslog_log_level would be used then to filter messages by its level)
- Both boolean or string values should be accepted and passed as boolean class varaibles
- Fix verbose, debug, syslog facilities and level for swift
  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>
Add missed corosync and syslog log to rotation plans

- Corosync does not provide log rotation after have been installed,
thus rotation should be provided by logging class as well.
- /var/log/syslog was initially added to size based rotaion plan (20-fuel.conf) only.
  Should be added to time based rotation plan (10-fuel.conf) as well.