Add a service enable/disable mechanism for upstart

Upstart doesn't have its own service enable/disable mechanism. We are in
need of a facility to enable/disable services without writing to /etc at
runtime to enable a readonly root for image based updates. This command
will be used by later changes to have a generic service enable/disable
mechanism for all init systems.

Change-Id: I931281988aa746f93de190794f68f4c9e628db19
Enable services with os-svc-enable

Split out the code which enables services to start on boot into
a new os-svc-enable script. This script is currently called by
os-svc-deamon so that services automatically start on first boot
(as is the case with os-svc-install)

The motivation here is to decouple service installation and enabling
so that we can eventually avoid starting services on first boot
until after they are configured. Auto starting services on boot like
we currently do is causing lots of log ERROR messages, etc.

Change-Id: I66d4660c169f5918e924eab1876134891c3a24a1
Call os-svc-enable in post-configure.d

Updates services which make use of os-refresh-config
post configuration to call os-svc-enable to enable
services to start on boot (after configuration).

Making this call here will allow us to avoid pre-enabling
services during installation and get rid of a bunch of
log ERRORs for various OpenStack services.

Change-Id: I32bf9d91723998d200806fda60b9b44fdfe0eb70
Enable some services after installing daemon's...

Update geard and nova-kvm to call os-svc-enable.

Now that we are decoupling service installation and
enabling we need to call os-svc-enable here at install
time.

Should either of these services begin to make use of
os-refresh-config's post install support we should move
the os-svc-enable calls there instead.

Change-Id: I79ee4b2405f81457497ad2591d1bdacda610a426
Don't enable services in os-svc-install

Now that we call os-svc-enable in the individual elements we
can drop the call here.

With this commit *most* services will no longer autostart on first boot
and will rely on post-configuration scripts in os-refresh-config
to enable services. This should clean up our first boot logs
quite a bit...

Change-Id: Ied3622a5e7fce4c3ac2fbd9a0e513ae877cafc5d
Consolidate rootwrap settings for neutron element

Moves the root_helper settings for the DHCP and OVS agents
into the common neutron.conf file.

This actually removes a deprecation WARNING from the dhcp agent
logs as well:

Deprecated: DEFAULT.root_helper is deprecated! Please move root_helper
configuration to [AGENT] section.

Change-Id: I79251984ab86b34590dc89139f3c7d02d6175714
Try to list heat overcloud stack events after run

Whether the deploy succeeds or fails we will gain some insight into what
happened from the stack event list.

Change-Id: I1011240808259b6c77fad0a62679586f107f74b3
Glance: make logging configurable...

Adds top level glance.debug and glance.verbose config parameters
to control Glance logging.

As part of this change we are also:

 - Dropping --debug from the service config files. This cause the
  previous Glance log configuration to always log at the DEBUG level.

 - Remove the logging.conf file. The previous log file was also set
  to log at a DEBUG level. To get the same effect you can now
  just enable verbose/debug.

 - Drop --log-config from the service config files. We do this because
  we are dropping logging.conf.

 - Remove log_file from glance-api.conf and glance-registry.conf. This
  gives us the same behaviour as before where Glance logged using the
  init system logger.

The motivation for this change is primarily two things:

1) Glance should log at the WARNING level by default in production.
 (Not DEBUG as it did previously)

2) When making use of this element for CI we may want to more easily
 control the log level (and default to DEBUG). Using the new
 glance.debug and glance.verbose element parameters will make this
 easier.

Change-Id: I20e83682af0a46e455ba8f216bbd5e2f1e04ec16
Glance: use upstream schema-image.json

No need to carry this in TripleO elements when we can just
use upstreams...

Change-Id: I9d67dfff5e2088b6115594f8b8714aaf986dac13
Use upstream policy.json for keystone.

Change-Id: I21a5dbcbd654c80c25469b9c268fbe7422875af5
Use upstream policy.json for cinder.

Change-Id: I53f8e2416011ae7b8cf08f130371c8f819395069
Use upstream policy.json for heat.

Change-Id: I77277a1240836fe7f68325e85c8fed683f5e19fe
Merge "Add a service enable/disable mechanism for upstart"
Merge "Enable services with os-svc-enable"
Merge "Call os-svc-enable in post-configure.d"
Merge "Enable some services after installing daemon's..."
Merge "Don't enable services in os-svc-install"
Merge "Use upstream policy.json for keystone."
Merge "Use upstream policy.json for cinder."
Merge "Use upstream policy.json for heat."