glance.pp overrides sql_connection for glance-api.conf also
glance.pp overrides sql_connection for glance-api.conf also

Previously, the sql_connection config was overridden for the
glance-registry.conf only, where in the glance-api.conf this
is left to default to a non-existent sqlite DB.

This causes an issue with the v2 API is used - in this case,
the glance-api service accesses the DB directly instead of
delegating to the registry service. Since the sqlite DB is
non-existent, such v2 API calls fail with 500 ServerError.

This is especially problematic with cinder, as it tries the
glance v2 API by default when creating a bootable volume from
an image, see:

  https://bugzilla.redhat.com/888241

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