Adding rsyslog support in server-manager

Adding the required support to parse cluster json inpur relavant to
rsyslog and populate the required rsyslog parameter to manifest.
Closes-Bug: #1385637
Change-Id: Id20be88e24e6184db0055e202bd666700a42c75d
Partial-Bug:#1390800 -- DHCP hook to trap DHCP requests and inform server manager
was broken. The payload sent in REST was incorrect and address of SM was hard-coded.

Change-Id: I27a7f6fa9f0e7064126893e94c18265bfe889fd1
Closes-Bug: #1389905 - Moved Monitoring Query to Server manager CLI
Partial-Bug: #1378454 - Adding monitoring feature to Server manager

1. Introduce a monitoring thread that polls all the servers in the Smgr DB for their environment info.
2. The thread sends this info to a cassandra DB hosted by a configured analytics node.
3. Extended server manager CLI to show environment info like fan speed, CPU temp, etc
4. Querying module handles CLI requests at Smgr side and sends REST API call to server manager cache and returns info.
5. If monitoring is not configured correctly, no polling happens.
6. User can use monitoring status command to check for config issues.
7. Smgr Client needs to be configured with an IPMI Introspect Port to talk to SMgr Cache

Implemented Changes in comments at : https://review.opencontrail.org/#/c/4285/

Change-Id: I96f0d8272e72a22bfd1bfb2860ea5610a5c2fd7a
Merge "Adding rsyslog support in server-manager"
Merge "Closes-Bug: #1389905 - Moved Monitoring Query to Server manager CLI Partial-Bug: #1378454 - Adding monitoring feature to Server manager"
Monitoring IPMItool Bug fix

- The username and password for ipmitool command needs to be taken from configuration in server JSON
- If not configured, default credentials used will be admin/admin

Change-Id: I99c7d91dde512b1b54f24605a7a584e396690021
[Server Manager: defaults ]
Partial-Bug: #1393507
Removed the sm-defaults.ini as defaults is moved to sm-config

Tetsting:
1)Made sure we are abel to add server with minimla data.
2)Re-image them
3)Add cluster with minimal data.
4)Provision the server with newly created cluster.

Change-Id: Ia4df2b0a10eb1a8a33ea8c0c7e7a55942a7261ac
Server Manager Monitoring Logging + Regex Bug Fixes

 - Was logging incorrectly - redirected to correct method call
 - Ignoring case in regex search pulls in invalid entries - need to refine regex pattern set instead

Change-Id: I47b7ebb59c4b4fca4927cce15fd42b30de59908b
[Adding server to server-manager database throws exception]

Closes-Bug: #1394959

Issue:
Tags defaults was set as "" instead of None as its a dict in
defaults.py,

Change-Id: I2ec007cb0c5631f6c8631ad03a0d2307b7e29434
[Server manager , Fix dynamic discovery]
Closes-Bug : #1395432

Testing:
1) See if dynamic server are discovered.
2) Delettion of server discovered dynamically with mac address.
3) Re-image and provision of server.

Change-Id: I344ffc0e7ee0d5efb35c88ba7afbbde2d5d7a6f1
Bug Fix: Handle case in monitoring where server doesn't have an ipmi address configured

- Monitoring moves on to other servers
- Changed the monitoring wildcards (based on .30.1 testing)

Change-Id: Icc80de402a52fa25e85e45f52655611e41e0a454
Changed the way xmltodict module is imported

- Import during REST call only.
- If module is not present, exception caught and reported on CLI

Change-Id: I699ff606d52251066f0acf19b34bc79211fafcbf
Merge "[Server manager , Fix dynamic discovery] Closes-Bug : #1395432"
Merge "Changed the way xmltodict module is imported"
[Server Manager: Make Server manager multi-tasking]
Closes-Bug: #1396864

Use gevent
Testing
Open multiple client and send requests to server.
All request should return response.

Change-Id: I85ec579818bd468e9d22bf338d1cb9801881270f
Closes-Bug: #1381894
Issue: Live migration through openstack UI works, when the host is not a
FQDN, i.e only hostname and doesnt have domain name with it.
Openstack-ui picks the list the from the hostname.

Remove the fix for Centos.
As its not populating domain name properly.

Change-Id: Ic11584a0164582df15099e281d1f18f4822342ac
Merge "Closes-Bug: #1381894 Issue: Live migration through openstack UI works, when the host is not a FQDN, i.e only hostname and doesnt have domain name with it. Openstack-ui picks the list the from the hostname."
Bug #1398219, Install biosdevname for trusty targets using kickstart file

Change-Id: I08560403d2b3551e932e8af8f8f5b31e38f7c03d
Bug #1396093, While adding image expects kickstart file at wrong location

Change-Id: I00533430231c1288e14657ca089bb0a9eed2caf2
Bug #1397219, Server-manager-WebUI: Reimage a cluster through WebUI is not closing notification window

Change-Id: I21b6e8057626781dfbaa89c8b8b561936ec887cc