Allow floating IP pools to be deleted
Allow floating IP pools to be deleted

Fixes bug #1022237

If you delete all the floating IPs associated with a floating IP, the
pool still shows up in os-floating-ip-pools extension.

Fix this by using model_query() in the DB layer so that we ignore
deleted floating IPs.

Change-Id: I30d2e716e931400ca4b798b51bb26a73a7747808

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