Avoid unnecessary system_metadata db lookup
Avoid unnecessary system_metadata db lookup

The bittorrent code in the xenapi driver added a specific database
query for the instance_system_metadata. This query is unnecessary,
as the system_metadata is available in the instance object itself.
This patch removes the queries and adds the small amount of
format translation required.

Change-Id: If72593289e18d2c45db8e782972eb9051e10d740

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