Check that an image is active before spawning instances.
Check that an image is active before spawning instances.

Resolves bug/1054163.

Change-Id: I4095fcac300a161e6da93bdc14eb43257d4f1aee

citrix-openstack-build/oslo.versionedobjects,openstack/oslo.versionedobjects