Ensure request_spec can be serialized.
Ensure request_spec can be serialized.

request_spec includes some objects that must be converted to primitive
types to ensure they can be serialized by any of the rpc drivers.  In
this case, it's the volume type.  It's a sqlalchemy model.
to_primitive() will ensure that it gets converted to a dict so that it
can be serialized for messaging.

I saw this error in a smokestack log that was running tempest with qpid.
You won't see this error if you're using rabbit with the kombu driver.
We have some magic with the kombu driver that will fix these problems
automatically if they are missed.

Change-Id: I9a1b7662bca7caa2acb61d1e3879ac2654d5b32e

nikesh-mahalka/cinder,leilihh/cinder,manojhirway/ExistingImagesOnNFS,cloudbau/cinder,j-griffith/cinder,petrutlucian94/cinder,Paul-Ezell/cinder-1,spring-week-topos/cinder-week,tlakshman26/cinder-bug-fix-volume-conversion-full,phenoxim/cinder,petrutlucian94/cinder,saeki-masaki/cinder,NeCTAR-RC/cinder,apporc/cinder,dims/cinder,hguemar/cinder,Paul-Ezell/cinder-1,maelnor/cinder,spring-week-topos/cinder-week,redhat-openstack/cinder,NetApp/cinder,Hybrid-Cloud/cinder,winndows/cinder,saeki-masaki/cinder,rakeshmi/cinder,eharney/cinder,NetApp/cinder,nikesh-mahalka/cinder,NeCTAR-RC/cinder,github-borat/cinder,citrix-openstack-build/cinder,cloudbau/cinder,takeshineshiro/cinder,rakeshmi/cinder,Akrog/cinder,nexusriot/cinder,JioCloud/cinder,tlakshman26/cinder-new-branch,dims/cinder,cloudbase/cinder,nexusriot/cinder,tlakshman26/cinder-https-changes,mahak/cinder,Thingee/cinder,citrix-openstack-build/cinder,Accelerite/cinder,hguemar/cinder,github-borat/cinder,Thingee/cinder,Akrog/cinder,winndows/cinder,Accelerite/cinder,mahak/cinder,alex8866/cinder,blueboxgroup/cinder,redhat-openstack/cinder,CloudServer/cinder,bswartz/cinder,scality/cinder,CloudServer/cinder,openstack/cinder,inkerra/cinder,rickerc/cinder_audit,julianwang/cinder,inkerra/cinder,Datera/cinder,eharney/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,Nexenta/cinder,ntt-sic/cinder,ge0rgi/cinder,alex8866/cinder,sasukeh/cinder,duhzecca/cinder,j-griffith/cinder,scottdangelo/RemoveVolumeMangerLocks,abusse/cinder,apporc/cinder,ntt-sic/cinder,sasukeh/cinder,scality/cinder,citrix-openstack-build/cinder,tlakshman26/cinder-https-changes,Hybrid-Cloud/cinder,cloudbase/cinder,duhzecca/cinder,manojhirway/ExistingImagesOnNFS,potsmaster/cinder,tlakshman26/cinder-new-branch,rickerc/cinder_audit,abusse/cinder,leilihh/cinder,scottdangelo/RemoveVolumeMangerLocks,openstack/cinder,phenoxim/cinder,blueboxgroup/cinder,JioCloud/cinder,maelnor/cinder,Thingee/cinder,potsmaster/cinder,Datera/cinder,bswartz/cinder,takeshineshiro/cinder,Nexenta/cinder,julianwang/cinder