Fixes restore from incremental backups for Percona

Restore from incremental backups is failing for percona. The root
cause is that the prepare starts running before the unpack is
finalized. This causes the prepare to fail when it cannot find
the xtrbackup_checkpoint file, which is obtained by unpacking the
decrypted file from swift. To fix it, i have moved the line that
checks for error in the stream to where child process is supposed
to finish. This will make sure that it will block until the
process is done. Since this line was moved, nothing special
occurs in __exit__. Since there is nothing special going on in
__enter__ either, i decided to remove it, thus removing the 'with'
keyword in backupagent.py.

Also 'self.process' and its pid doesnt need to be part of the
restore object. Due to the recursive behaviour of Restore, these
attributes didnt make sense. So i changed their visibility.

Change-Id: I234e0b2bb71ca90d53cfd8f9c51a159ddc2681c9
Closes-Bug: 1285291
simplify dns_ip_address code

'ips' would be False when it is None or empty

Closes-Bug: #1287086

Change-Id: I70d831865af16bfeee969b7927edd6ccc7d2aa11
Merge "simplify dns_ip_address code"
Initial support for single instance MongoDB support

This code adds ability to create/delete instance
with mongodb service type. No other operations are supported.

Implements: blueprint single-instance-mongodb-ga

Change-Id: I3d2992dce02dec22d09cedee6bbfbf51286b9b3b
Merge "Fixes restore from incremental backups for Percona"
Merge "Initial support for single instance MongoDB support"
Datastore Configuration Parameters stored in db

Changes:
Add datastore configuration paramters to configuration model
Add ability to CRUD configuration parameters

partially implements blueprint configuration-parameters-in-db

Change-Id: Ic3ffa1438423f211dfe641a07236f502b7ffe414
adding a manage cmd to import the config params
updated with rebase

Change-Id: Ifd266e16e615be0677b7c5914149a640553a2bfe