Fix openstack glance upload to compatible with grizzly and also

backward compatible