Create SolidFire Template account on init
Create SolidFire Template account on init

The standard flow in the SolidFire volume is to create
accounts dynamically as needed based on project id.
Unfortunately the clone_image method "forgot" about this
detail and calls the private clone_volume method without
a valid account resulting in an AccountNotFound
Exception.

The clone_image method is enabled using a specific account
provided via the configuration file.  Rather than worry
about dynamic account creation on clone_image call, this
patch just makes it part of the init phase.  We check to
see if template caching is enabled and if it is, just
go ahead and check/create the account on startup.

Change-Id: I41a8d400d3dfc0e185304f80efd419ebac9efdf6
Closes-Bug: #1414760

bswartz/cinder,ge0rgi/cinder,sasukeh/cinder,CloudServer/cinder,Paul-Ezell/cinder-1,petrutlucian94/cinder,leilihh/cinder,scality/cinder,NetApp/cinder,petrutlucian94/cinder,Hybrid-Cloud/cinder,NetApp/cinder,saeki-masaki/cinder,nikesh-mahalka/cinder,takeshineshiro/cinder,Akrog/cinder,nikesh-mahalka/cinder,Paul-Ezell/cinder-1,eharney/cinder,saeki-masaki/cinder,j-griffith/cinder,julianwang/cinder,rakeshmi/cinder,duhzecca/cinder,phenoxim/cinder,JioCloud/cinder,apporc/cinder,rakeshmi/cinder,potsmaster/cinder,j-griffith/cinder,scottdangelo/RemoveVolumeMangerLocks,eharney/cinder,potsmaster/cinder,winndows/cinder,mahak/cinder,tlakshman26/cinder-https-changes,winndows/cinder,tlakshman26/cinder-new-branch,Nexenta/cinder,leilihh/cinder,JioCloud/cinder,bswartz/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,tlakshman26/cinder-bug-fix-volume-conversion-full,abusse/cinder,Hybrid-Cloud/cinder,tlakshman26/cinder-https-changes,CloudServer/cinder,tlakshman26/cinder-new-branch,Nexenta/cinder,abusse/cinder,cloudbase/cinder,Akrog/cinder,sasukeh/cinder,manojhirway/ExistingImagesOnNFS,scottdangelo/RemoveVolumeMangerLocks,nexusriot/cinder,manojhirway/ExistingImagesOnNFS,dims/cinder,phenoxim/cinder,Datera/cinder,julianwang/cinder,dims/cinder,takeshineshiro/cinder,Datera/cinder,scality/cinder,openstack/cinder,mahak/cinder,nexusriot/cinder,openstack/cinder,cloudbase/cinder,duhzecca/cinder,apporc/cinder