packaging: engin-setup - Drop DB before restore when upgrade fails (BZ#844341)
packaging: engin-setup - Drop DB before restore when upgrade fails (BZ#844341)

When the DB upgrade fails, the setup tries to restore the backed up DB.
In a specific case, when the upgrade succeeded, but engine-config
execution fails, the DB restore fails, since the DB already exists.

This patch fixes the restore flow, by adding a call to db drop method.
Also, it fixes the reason for the engine-config setup, and always
configure the db connection string and password.

Change-Id: Ic465815c683c0e4241f520960d4acc0dfa59f95a
Signed-off-by: Ofer Schreiber <3681fb3205baf680cd6a957dddfb09244e62ce7a@redhat.com>

weshayutin/packstack,radez/packstack,imcsk8/packstack,derekhiggins/packstack,openstack/packstack,larsks/packstack,stackforge/packstack,palmer159/openstack-test,spkane/packstack,derekhiggins/packstack,fr34k8/packstack,harveyzh/packstack,fr34k8/packstack,mahak/packstack,imcsk8/packstack,derekhiggins/packstack,pkilambi/packstack,bcrochet/packstack,radez/packstack,openstack/packstack,paramite/packstack,weshayutin/packstack,mahak/packstack,alincalinciuc/packstack,imcsk8/packstack,paramite/packstack,xbezdick/packstack,pkilambi/packstack,larsks/packstack,bcrochet/packstack,alincalinciuc/packstack,mahak/packstack,openstack/packstack,radez/packstack,harveyzh/packstack,weshayutin/packstack,palmer159/openstack-test,stackforge/packstack,larsks/packstack,xbezdick/packstack,spkane/packstack,spkane/packstack,pkilambi/packstack,bcrochet/packstack,palmer159/openstack-test,harveyzh/packstack,paramite/packstack,stackforge/packstack,alincalinciuc/packstack,xbezdick/packstack,fr34k8/packstack