api/ec2/image: make block device mapping pass unit tests.
api/ec2/image: make block device mapping pass unit tests.

This patch makes pass unit tests which will follow later.

houshengbo/nova_vmware_compute_driver,petrutlucian94/nova_dev,alvarolopez/nova,tanglei528/nova,takeshineshiro/nova,OpenAcademy-OpenStack/nova-scheduler,usc-isi/nova,mikalstill/nova,belmiromoreira/nova,psiwczak/openstack,alexandrucoman/vbox-nova-driver,BeyondTheClouds/nova,berrange/nova,phenoxim/nova,LoHChina/nova,viggates/nova,double12gzh/nova,tanglei528/nova,plumgrid/plumgrid-nova,rahulunair/nova,Triv90/Nova,sebrandon1/nova,usc-isi/extra-specs,qwefi/nova,sridevikoushik31/openstack,whitepages/nova,Metaswitch/calico-nova,Stavitsky/nova,takeshineshiro/nova,sacharya/nova,rajalokan/nova,gooddata/openstack-nova,Yusuke1987/openstack_template,CCI-MOC/nova,mahak/nova,DirectXMan12/nova-hacking,cloudbase/nova-virtualbox,rahulunair/nova,maheshp/novatest,CloudServer/nova,paulmathews/nova,TwinkleChawla/nova,jianghuaw/nova,barnsnake351/nova,belmiromoreira/nova,akash1808/nova,double12gzh/nova,JianyuWang/nova,fajoy/nova,tudorvio/nova,iuliat/nova,citrix-openstack-build/nova,rickerc/nova_audit,Yuriy-Leonov/nova,eayunstack/nova,gooddata/openstack-nova,russellb/nova,imsplitbit/nova,mgagne/nova,paulmathews/nova,tianweizhang/nova,imsplitbit/nova,shahar-stratoscale/nova,klmitch/nova,tangfeixiong/nova,eneabio/nova,apporc/nova,KarimAllah/nova,eonpatapon/nova,paulmathews/nova,mandeepdhami/nova,fajoy/nova,OpenAcademy-OpenStack/nova-scheduler,Juniper/nova,saleemjaveds/https-github.com-openstack-nova,akash1808/nova_test_latest,SUSE-Cloud/nova,affo/nova,yrobla/nova,plumgrid/plumgrid-nova,scripnichenko/nova,eharney/nova,barnsnake351/nova,NewpTone/stacklab-nova,phenoxim/nova,petrutlucian94/nova,ntt-sic/nova,jeffrey4l/nova,rajalokan/nova,Francis-Liu/animated-broccoli,NewpTone/stacklab-nova,devendermishrajio/nova,whitepages/nova,mahak/nova,openstack/nova,angdraug/nova,iuliat/nova,virtualopensystems/nova,savi-dev/nova,BeyondTheClouds/nova,cloudbase/nova,devoid/nova,berrange/nova,rrader/nova-docker-plugin,fnordahl/nova,NoBodyCam/TftpPxeBootBareMetal,dawnpower/nova,rickerc/nova_audit,Yuriy-Leonov/nova,usc-isi/extra-specs,josephsuh/extra-specs,sridevikoushik31/openstack,tangfeixiong/nova,cloudbase/nova,viggates/nova,watonyweng/nova,TieWei/nova,ntt-sic/nova,noironetworks/nova,leilihh/novaha,dstroppa/openstack-smartos-nova-grizzly,devoid/nova,akash1808/nova_test_latest,devendermishrajio/nova_test_latest,apporc/nova,bgxavier/nova,spring-week-topos/nova-week,adelina-t/nova,CloudServer/nova,leilihh/novaha,sridevikoushik31/nova,mmnelemane/nova,vmturbo/nova,rahulunair/nova,tealover/nova,hanlind/nova,silenceli/nova,zhimin711/nova,maoy/zknova,CiscoSystems/nova,citrix-openstack-build/nova,dawnpower/nova,sridevikoushik31/nova,eharney/nova,bgxavier/nova,bclau/nova,bclau/nova,josephsuh/extra-specs,vmturbo/nova,klmitch/nova,russellb/nova,shootstar/novatest,cernops/nova,KarimAllah/nova,isyippee/nova,KarimAllah/nova,scripnichenko/nova,gooddata/openstack-nova,watonyweng/nova,sridevikoushik31/nova,dstroppa/openstack-smartos-nova-grizzly,leilihh/nova,vladikr/nova_drafts,DirectXMan12/nova-hacking,silenceli/nova,MountainWei/nova,Stavitsky/nova,j-carpentier/nova,varunarya10/nova_test_latest,yosshy/nova,TwinkleChawla/nova,devendermishrajio/nova_test_latest,savi-dev/nova,aristanetworks/arista-ovs-nova,badock/nova,j-carpentier/nova,gspilio/nova,rrader/nova-docker-plugin,fajoy/nova,josephsuh/extra-specs,luogangyi/bcec-nova,houshengbo/nova_vmware_compute_driver,Francis-Liu/animated-broccoli,nikesh-mahalka/nova,mikalstill/nova,sileht/deb-openstack-nova,nikesh-mahalka/nova,yrobla/nova,noironetworks/nova,Tehsmash/nova,luogangyi/bcec-nova,virtualopensystems/nova,projectcalico/calico-nova,salv-orlando/MyRepo,JioCloud/nova_test_latest,usc-isi/nova,varunarya10/nova_test_latest,SUSE-Cloud/nova,saleemjaveds/https-github.com-openstack-nova,leilihh/nova,sileht/deb-openstack-nova,redhat-openstack/nova,russellb/nova,qwefi/nova,affo/nova,tianweizhang/nova,spring-week-topos/nova-week,salv-orlando/MyRepo,JioCloud/nova,CiscoSystems/nova,savi-dev/nova,petrutlucian94/nova_dev,redhat-openstack/nova,zaina/nova,yosshy/nova,bigswitch/nova,TieWei/nova,NeCTAR-RC/nova,blueboxgroup/nova,edulramirez/nova,eneabio/nova,angdraug/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,rajalokan/nova,cyx1231st/nova,sebrandon1/nova,alvarolopez/nova,mahak/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,zhimin711/nova,Triv90/Nova,jianghuaw/nova,JioCloud/nova,hanlind/nova,Juniper/nova,alaski/nova,Metaswitch/calico-nova,akash1808/nova,shail2810/nova,psiwczak/openstack,alaski/nova,CCI-MOC/nova,dims/nova,fnordahl/nova,petrutlucian94/nova,cloudbase/nova-virtualbox,cloudbau/nova,maheshp/novatest,openstack/nova,blueboxgroup/nova,Juniper/nova,badock/nova,CEG-FYP-OpenStack/scheduler,klmitch/nova,maelnor/nova,ted-gould/nova,MountainWei/nova,yatinkumbhare/openstack-nova,vmturbo/nova,sileht/deb-openstack-nova,kimjaejoong/nova,cernops/nova,zzicewind/nova,zaina/nova,yrobla/nova,salv-orlando/MyRepo,CEG-FYP-OpenStack/scheduler,BeyondTheClouds/nova,sridevikoushik31/nova,Triv90/Nova,sridevikoushik31/openstack,sebrandon1/nova,edulramirez/nova,LoHChina/nova,eonpatapon/nova,Yusuke1987/openstack_template,projectcalico/calico-nova,kimjaejoong/nova,klmitch/nova,aristanetworks/arista-ovs-nova,shail2810/nova,shootstar/novatest,zzicewind/nova,cloudbase/nova,gspilio/nova,orbitfp7/nova,openstack/nova,NeCTAR-RC/nova,adelina-t/nova,jeffrey4l/nova,DirectXMan12/nova-hacking,thomasem/nova,devendermishrajio/nova,bigswitch/nova,sacharya/nova,mandeepdhami/nova,ewindisch/nova,cernops/nova,vmturbo/nova,JioCloud/nova_test_latest,ruslanloman/nova,felixma/nova,houshengbo/nova_vmware_compute_driver,felixma/nova,maoy/zknova,aristanetworks/arista-ovs-nova,joker946/nova,isyippee/nova,usc-isi/extra-specs,hanlind/nova,raildo/nova,rajalokan/nova,NoBodyCam/TftpPxeBootBareMetal,gspilio/nova,shahar-stratoscale/nova,jianghuaw/nova,tudorvio/nova,maheshp/novatest,vladikr/nova_drafts,raildo/nova,usc-isi/nova,joker946/nova,ted-gould/nova,NewpTone/stacklab-nova,alexandrucoman/vbox-nova-driver,eayunstack/nova,tealover/nova,dstroppa/openstack-smartos-nova-grizzly,yatinkumbhare/openstack-nova,NoBodyCam/TftpPxeBootBareMetal,cloudbau/nova,mgagne/nova,gooddata/openstack-nova,JianyuWang/nova,cyx1231st/nova,jianghuaw/nova,psiwczak/openstack,ewindisch/nova,dims/nova,orbitfp7/nova,ruslanloman/nova,maoy/zknova,mikalstill/nova,mmnelemane/nova,Tehsmash/nova,eneabio/nova,maelnor/nova,thomasem/nova,Juniper/nova