add configurable timeout for management mysql connection

Change-Id: Ie5134224b219e06b5780b949505b8c23036856f7
prevent mysql node from blocking in EM main loop

1. add client side timeout for mysql2 connection
2. move node routines into EM.defer

Change-Id: I60b2e16c7cc310d27afc0f1aed38928b6d1784f2
Memcached as a Service Support - Squashed patch

Memcached is a de fact standard in-memory caching system.
This patch provides Cloud Foundry with the provisioning,
unprovisioning Memcached instances

Some advices are given by:

Ken Robertson <ken _at_ invalidlogic.com>
Yohei Sasaki  <yssk22 _at_ gmail.com>
Ilya Grigorik <ilya _at_ igvita.com>

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: I2a5c94b4f702c45f98074c7ffc10ada0fefe41fe

memcached_node: added SASL support.

In PaaS environment, the authentication feature is required.
This patch provides MaaS with SASL support of memcached.

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: I3fe5c358054d8d92bb80a99b343466c587d0ae45

memcacehed_node: support to the stats of memcached instances

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: Ibf1c21df313c4b5a63d37bd584b8a3d156dd2f32

memcacehed_node: supported get_healthz

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: 5ecfe1e250fa3c777f01e8c6b6cfa6153d59d8b4

spec: added authentication tests.

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: I72adbf828aa5de2e3c4c3da7551a5b8bd8856e8c

tests: Passed all test cases.

There are several fixes including:
        1. avoiding instances leak.
        2. authentication supports.
        3. SASLAdmin's handling empty inputs.

For more detail, Please see the source codes under the spec directory.
Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: Id82f9a33af20cedbefef8ae36774a6d0c04e7ddf

memcached_node: deleted needless codes.

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: I3395ca6b12ff05497cdadf06adcc2723a8064aed

copyright: fixed copyrights.

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: Ie3b6011b58986d13111fa0697528a8328b3adff1

rspec: fixed typo and memcached instance leak

This commit includes 2 fixes:
1. Avoid memcached instance leak when running test cases.
2. Fixed some typo.

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: I62be137f2254f417788655803d692fdb2afed3a9

memcached_node:start instance in enable_instance()

Fixed to call start_instance() in enable_instance().
This change allows MaaS to work rebalancing correctly.

Signed-off-by: UEMURA Yuichi <y.uemura@ntt.com>
Change-Id: Ie7a6d1c97b9496f290f693cc51b159e8a50a4a08
Allow service broker token to be non-string

Change-Id: I0e57912ab301b6fcb4dfbaade79c10b66b55d7af
Merge "Memcached as a Service Support - Squashed patch"
Memcached as a service - Updates

 - Ensure MaaS up-to-date with latest vcap standard.
 - Ensure all unit tests and bvt passing for basic memcached
 - Added TODO file for potential improvements and tracking of issues
 - BVT and dev setup to be committed separately
 - Removed several white-spaces
 - Trimmed error code list
 - Removed node_score method from provisioner
 - Removed healthz, updated varz, updated unittests
 - Removed references to unused old_capacity
 - Fixed log rotate file name, cleanup

Change-Id: Ie9ca96a021856d4257ff37ea1c418b486cf05f48
Merge "Allow service broker token to be non-string"
Merge branch 'services-r11'

Conflicts:
	mysql/lib/mysql_service/mysql2_timeout.rb
	mysql/lib/mysql_service/node.rb
	mysql/lib/mysql_service/storage_quota.rb
	mysql/spec/mysql_node_spec.rb

Change-Id: I7a4c260affb05727289bc5544ca29c54406a689d
Merge branch 'master' into services-r12

Change-Id: Ie616418422d7ed59652870d8e682be94f4fd837e