Improve the detection of config file location

Change-Id: I4369c76e7bcb799070aa75f866e6efdb9241c02e
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Standardize library search path initialization

Make the code uniform. Put markers around the initialization in files
that are expected to be installed, so the installation process can
delete the initialization code if the standard system search path should
be used only.

Change-Id: I89013e6be48280d68d9304b42a149e72b4e031d9
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Drop the psycopg2 import from aqdb_migrate

It is part of the base AQDB dependencies for some time now, so no need
to duplicate it.

Change-Id: I3e24f6371bd12f1320d156c1f6ebe4f16092915f
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Move mako templates out from lib

The lib directory should contain Python sources only.

Change-Id: I11c0b20eace2aa0fb0e327da98ac305695086b7f
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Fix path of aq_notifyd

Use the same path the broker was started from. This is needed for
packaging the broker as an RPM.

Change-Id: If0547f17baab673569df2197f1776f6d05057e68
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Testsuite: fix the path of the broker script

It's mostly cosmetic, nothing uses the real script name, just the
directory.

Change-Id: I49a271e7611216c749cd9746da6384b0957a8247
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Drop unused code

Also drop the old AQDB test cases, since those were not working for
quite some time now.

Change-Id: I1754a3e321183093cac46a00134e0bede1d8a764
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Install the AQDB shell by default

It is an utility that's useful for debugging.

Change-Id: I701147b1502a3089bb5946f8e08190d9073bc27a
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Install aqdb_migrate by default

Change-Id: I9bf3e51f88bdd061b8d23c6a2cad60b37f48b283
Reviewed-by: Priya Joshi <Priya.Joshi@morganstanley.com>
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Add an aq_ prefix to man page names

This makes it easier to install the man pages at system locations
without conflicts.

Change-Id: Ia8accaa333a7858d5e836b0b0ac7e33e226c3a1a
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Revert "Fix DSDB comment propergation"

This reverts commit efae11f9eca76e7cf1083b57003f92994b2ab6f4.

Change-Id: I08154d40ef28c6b9af874c717574e5b62eba6085
Addresses-Issue: Jira/AQUILON-1382
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Enforce consistent variable nameing and comments for DSDB runner.

Change-Id: Ic2d3da2efc6ab64d86d3d500ae3ce211ea6bd318
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Refactoring snapshot_hw and update_host

Change-Id: I319db5ad0d5b368ce9b9bdc258161cb7c83cfaa3
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Refactor DSDB update internal calls

Change-Id: I69630a50213be6957cd3a58438bb73f78b1b60e1
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Add physical and logical network interface types.

Network devices can now define one of the following three interface types.
This replaces the default interface type 'oa' (On-board Administrator)
that was used for switches, and allows for other interfaces beyond
'loopback'.

Physical (NEW) - This refers to any physical port on the device; Ethernet0/0,
GigabitEthernet0/0, et. al.

Logical (NEW) - This is used to refer to any logical interface (excluding
loopback) on the device.  This covers a multitude of interfaces,
including VlanXXX interfaces et. al.

Loopback - Used for true loopback interfaces (sepecial case of logical).

Change-Id: If81f9540a994c3262b26bc3441348e9256ee09b9
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Creating the schema html files as part of the build procedure

Change-Id: Id5fe3d10df13f5124ab44db0eb95db60a064c9f7
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Prevent Created automatically comment propergation to DSDB

Change-Id: I7ad9a1ead907dc9766592ad52036417ee5fd8d42
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
More DocBook documentation

Change-Id: Ic8c316f36cfee28f22e26984c30b0ed3ef4d2d88
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Make update_cluster and update_metacluster self-healing

Allowing the update_* commands to refresh the plenaries even if there
was no DB change gives us a kind of self-healing behavior. There's no
reason the cluster update commands should behave differently.

Change-Id: Ida270ee0cd084bf1b02d32fa590f2236b0108438
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>
Streamline cluster parameter validation

Always Cluster.validate() after all the requested DB changes are done.
This avoids the need for parameter passing (which was mostly unused
anyway), and avoids having to repeat checks that the validation would
perform anyway.

Change-Id: I69e3cbbcc7ceb80b24a493f861be75424b49dc57
Reviewed-by: Dave Reeve <Dave.Reeve@morganstanley.com>